Create Application Role Assignments
POST {{apiPath}}/environments/{{envID}}/applications/{{appID}}/roleAssignments
You can manage the roles assigned to specific applications. When you assign a role to an application, you provide the attribute values required to identify the role and designate the role assignment scope for this application.
The sample shows the POST /environments/{{envID}}/applications/{{appID}}/roleAssignments
operation to create the role assignment for the application in the specified environment resource.
The request URL identifies the environment ID and application 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 application. In this sample, the scope type
is ORGANIZATION
and the specific organization to which the role assignment scope applies is specified in the id
value.
Prerequisites
See Application Role Assignments for important overview information.
Create an application to get an
appID
. See Application Operations.Read all roles to get a
roleID
. See Read All Roles.
See the Applications role assignments data model for complete descriptions.
Property | Type | Required? |
---|---|---|
readOnly | Boolean | Optional |
role.id | String | Required |
scope.id | String | Required |
scope.type | String | Required |
Request Body
{"role"=>{"id"=>"{{roleID}}"}, "scope"=>{"id"=>"{{envID}}", "type"=>"ENVIRONMENT"}}