-
Task
-
Resolution: Unresolved
-
Normal
-
None
-
None
RBAC_V2 supports getting one workspace using the workspace_id but NOT using the IDs of multiple workspaces.
The endpoint should also provide the same support for parity as it did for RBAC_V1: Here is the signature what host-inventory has:
def get_groups_by_id( group_id_list, page=1, per_page=100, order_by=None, order_how=None, rbac_filter=None, )
With the current implementation, getting a workspace_by_id provides the followingl, which is just the group object:
{
"name": "third_group",
"id": "019a7a3f-00d7-7fe0-baa5-2c1f09b055a7",
"parent_id": "019a7a17-9491-7560-a5c6-4fb3ea9c4f5f",
"description": None,
"created": "2025-11-12T22:45:40.695345Z",
"modified": "2025-11-12T22:45:40.703161Z",
"type": "standard"
}
It should include meta data and links like it does for when "groups" response is received, which looks like:
{
"meta": {
"count": 3,
"limit": 50,
"offset": 0
},
"links": {
"first": "/api/rbac/v2/workspaces/?limit=50&offset=0&type=standard",
"next": None,
"previous": None,
"last": "/api/rbac/v2/workspaces/?limit=50&offset=0&type=standard"
},
"data": [
{
"name": "first_group",
"id": "019a7a35-ed3b-7dc0-8775-60f6fdace7d5",
"parent_id": "019a7a17-9491-7560-a5c6-4fb3ea9c4f5f",
"description": None,
"created": "2025-11-12T22:35:45.851273Z",
"modified": "2025-11-12T22:35:45.857488Z",
"type": "standard"
},
{
"name": "second_group",
"id": "019a7a3c-e890-7b80-838f-a895a1330b37",
"parent_id": "019a7a17-9491-7560-a5c6-4fb3ea9c4f5f",
"description": None,
"created": "2025-11-12T22:43:23.408961Z",
"modified": "2025-11-12T22:43:23.415289Z",
"type": "standard"
},
{
"name": "third_group",
"id": "019a7a3f-00d7-7fe0-baa5-2c1f09b055a7",
"parent_id": "019a7a17-9491-7560-a5c6-4fb3ea9c4f5f",
"description": None,
"created": "2025-11-12T22:45:40.695345Z",
"modified": "2025-11-12T22:45:40.703161Z",
"type": "standard"
}
]
}