Step 11: Create user role assignment

POST {{apiPath}}/environments/{{envID}}/users/{{usecaseAdminUserID}}/roleAssignments

The POST /environments/{{envID}}/users/{{userID}}/roleAssignments operation assigns an administrator role (or roles) to the user specified in the request URL. In this use case, the request body specifies an Environment Admin role as the role value and the current environment as the scope value.

Request Body

{"role"=>{"id"=>"{{envAdmRoleID}}"}, "scope"=>{"id"=>"{{envID}}", "type"=>"ENVIRONMENT"}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring