List the tenant's provisioned groups with their mapped roles and member counts — the operator's view of what the IdP pushed and what each group confers
const url = 'https://example.com/v1/groups';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/groups \ --header 'Authorization: Bearer <token>'Lists the tenant’s provisioned groups with their mapped roles and member counts: the operator’s view of what the IdP pushed and what each group confers, including the effective-role provenance an admin needs when a member’s direct and acting roles differ.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “ Header Parameters ”Target tenant id; required when the principal can act in more than one tenant.
Responses
Section titled “ Responses ”OK
object
object
The group’s id in the provisioning IdP.
The role the group’s members are elevated to; empty when unmapped.
The group’s member count.
The parent group’s id; empty when the group is top-level.
The workspace where the group is placed; empty when unplaced or concealed from a workspace-confined caller.
Example generated
{ "groups": [ { "display_name": "example", "external_id": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "mapped_role": "example", "members": 1, "parent_group_id": "example", "provisioned_by": "example", "workspace_id": "example" } ]}Bad request
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Unauthenticated
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Forbidden
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Not found
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Conflict / setup required
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Rate limited
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}