Create an approle
POST {{HOST}}/admin/v1/AppRoles
Create an AppRole.
Note: The attribute isUnmanaged
must be set to true when the App is created.
This attribue is immutable after the application is created.
You can't manage AppRoles for an App where isUnmanaged
is set to false.
Also, the isManaged
attribute can't be set to true when isUnmanaged
is also set to true. A validation error occurs.
Request Body
{"displayName"=>"AR Admin Role", "adminRole"=>true, "description"=>"Admin Role of HR App", "public"=>false, "app"=>{"value"=>"1729053f9c4043058501e9455e660cd8"}, "schemas"=>["urn:ietf:params:scim:schemas:oracle:idcs:AppRole"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |
RESPONSES
status: Created
{"displayName":"AR Admin Role","idcsLastModifiedBy":{"type":"App","value":"c4b20a6b16e24fec9e3e18322c997297","display":"Demo","$ref":"https://bravoe.identity.internal.oracle.com/admin/v1/Apps/c4b20a6b16e24fec9e3e18322c997297"},"description":"Admin Role of HR App","idcsCreatedBy":{"type":"App","display":"Demo","value":"c4b20a6b16e24fec9e3e18322c997297","$ref":"https://bravoe.identity.internal.oracle.com/admin/v1/Apps/c4b20a6b16e24fec9e3e18322c997297"},"public":false,"availableToClients":false,"id":"4a6be5c4c65045f68c98ed3bd250e984","meta":{"created":"2019-03-19T07:54:27.001Z","lastModified":"2019-03-19T07:54:27.001Z","resourceType":"AppRole","location":"https://bravoe.identity.internal.oracle.com/admin/v1/AppRoles/4a6be5c4c65045f68c98ed3bd250e984"},"adminRole":true,"availableToUsers":true,"availableToGroups":true,"app":{"value":"1729053f9c4043058501e9455e660cd8","name":"a192ad5a853149729ad12dacf76271ed","display":"IDCS Portal","$ref":"https://bravoe.identity.internal.oracle.com/admin/v1/Apps/1729053f9c4043058501e9455e660cd8"},"schemas":["urn:ietf:params:scim:schemas:oracle:idcs:AppRole"]}