Role | Baack docs
Role
Endpoints
CreatePOST/n/v1/role/
Endpoint for managing roles with permissions for Role based access control. Roles can be associated with multiple identities and api clients to grant a role based permission set to associated resources
Baack allocates the URN and returns it in the response.
Request body: Role
Responses
ReadGET/n/v1/role/{urn}
Endpoint for managing roles with permissions for Role based access control. Roles can be associated with multiple identities and api clients to grant a role based permission set to associated resources
Notes
- While there are no specific limits on the number of identities or clients associated with a role, sensible limits should be used like hundreds of identities. If a role is to be used by a collection of people like 'all employees' consider using a membership group to associate the role with all identities in the group.
- Use the standard CRUD verbs to create a role then create associations by adding identities and clients to the associated collections which are merged on update
- The permission role assignment is currently under review as the list structure for role members is a limiting factor for the number of assignees. This is currently capped at 512 clients and 512 identities.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/role/{urn}UpdatePUT/n/v1/role/{urn}
Endpoint for managing roles with permissions for Role based access control. Roles can be associated with multiple identities and api clients to grant a role based permission set to associated resources
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Role
Responses
DeleteDELETE/n/v1/role/{urn}
Endpoint for managing roles with permissions for Role based access control. Roles can be associated with multiple identities and api clients to grant a role based permission set to associated resources
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 202
DELETE_SUCCESS
Webhook
POSTyour destination URL
Subject: ROLE
Webhook for updates related to a permission role for Role Based Access Control (RBAC)
Listen to updates to the permission role which include the assigned identities and clients which have the role.
A subject being assigned a role could also trigger other rich experiences like updating the content entity for an identity to inform others viewing their profile of their status.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| owner | Company | Required on create. . |
| identities | array of Identity | Ignored on update. |
| clients | array of API Client | Ignored on update. |
| name | string |
Used by: Search Item