Download OpenAPI specification:Download
Roles can be organized into groups so you can more easily control access to your application. For example, you can add a role group to an organization for B2B scenarios so that their members can only be assigned roles that belong to this group. These APIs allow you to manage the role groups for your application. You can then use the Organizations APIs to add the relevant role groups to each organization and the Members API can be used to assign roles to their members.
Create a new role group for this application.
Required permissions: organizations:create
, roles:create
.
{- "role_ids": [
- "role1",
- "role2"
], - "name": "My Group",
- "description": "My Group's description",
- "display_name": "string"
}
{- "message": "string",
- "error_code": 0
}
Retrieve a list of all role groups created for this application.
Required permissions: organizations:read
, roles:read
, organizations:list
, roles:list
, orgs:read
.
{- "result": [
- {
- "group_id": "string",
- "name": "string",
- "description": "string",
- "roles": [
- {
- "role_id": "string",
- "role_name": "string",
- "permissions": [
- "string"
], - "app_id": "string",
- "description": "string",
- "display_name": "string"
}
], - "display_name": "string"
}
]
}
Update an existing role group for this application.
Required permissions: organizations:edit
, roles:edit
.
{- "name": "My Group",
- "description": "My Group's description",
- "display_name": "string",
- "role_ids": [
- "role1",
- "role2"
]
}
{- "message": "string",
- "error_code": 404
}
Delete role group.
Required permissions: organizations:delete
, roles:delete
.
{- "message": "string",
- "error_code": 404
}
Update the roles of an existing role group of your application. This will replace any existing set of roles of that group.
Required permissions: organizations:edit
, roles:edit
.
{- "role_ids": [
- "role1",
- "role2"
]
}