Permissions endpoints
You assign permissions to user roles to manage user access
to objects. The permissions
endpoints
enable you to get information about available objects and the permissions that can be
constructed for those objects.
-
Permissions keys
The following keys are used with the RBAC v1 API’s permissions endpoints. The available values for these keys are available from the/types
endpoint (see below). -
GET /types
Lists the objects that integrate with RBAC and demonstrates the permissions that can be constructed by picking the appropriateobject_type
,action
, andinstance
triple. Authentication is required. -
POST /permitted
Checks an array of permissions for the subject identified by the submitted identifier. -
GET /permitted/<object-type>/<action>
Return an array of permitted instances for the givenobject-type
/action
pair based on the current user authentication context. -
GET /permitted/<object-type>/<action>/<uuid>
Return an array of permitted instances for the givenobject-type
/action
pair based on the user matching the supplieduuid
.