plta-permissions-api-cbz

Retrieve the roles a user belongs to

Retrieve the roles a user is a member of. Callable by manageRoles holders (unrestricted) or by the user themselves.

get
https://dev.api.sanofi.com/permissions/users/{userId}/roles

Path Parameters

userIdstringrequired

The id of the user (oid or preferred_username in JWT).

Response

application/json

Success

A named bundle of access and admin grants, scoped to an action and a resource. All of a role’s grants are always contained within this scope.

descriptionstring

A human-readable description of the role’s purpose.

roleNamestringrequired

The business identifier of the role.

Example:clintrials:study-reader

scopeActionstringrequired

The action (with its hierarchy) that bounds this role’s access and admin grants. Immutable once the role is created.

Example:read

scopeResourcestringrequired

The resource (with its hierarchy) that bounds this role’s access and admin grants. Immutable once the role is created.

Example:clintrials

get/users/{userId}/roles
 
application/json