You can manage the roles assigned to specific users. When you assign a role to a user, you provide the attribute values required to identify the role and designate the role assignment scope for this user.
The sample shows the POST /environments/{environmentId}/users/{userId}/roleAssignments
operation to create the role assignment for the user in the specified environment resource.
The request URL identifies the environment ID and user ID. The request body specifies the role
ID and the scope
attribute values. The scope
attribute provides the resource ID and resource type to designate the role assignment scope associated with this actor. In this sample, the scope type
is ENVIRONMENT
and the specific environment to which the role assignment scope applies is specified in the id
value.