Create User Application Role Assignment

POST {{apiPath}}/environments/{{envID}}/users/{{userID}}/applicationRoles

The POST /environments/{{envID}}/users/{{userID}}/applicationRoles operation assigns an application role specified by its ID in the request body to the user specified in the request URL.

Prerequisites

PropertyTypeRequired?
idStringRequired

See the User application role asignments data model for full property descriptions.

Request Body

{"id"=>"{{appRoleID}}"}

RESPONSES

status: OK

{"_links":{"self":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/users/5282e30d-6e05-499c-ae68-0069fba776f1/applicationRoles"},"environment":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"role":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/applicationRoles/f1d45fa4-0c94-45f9-8872-47a38d4c1b72"}},"environment":{"id":"abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"id":"f1d45fa4-0c94-45f9-8872-47a38d4c1b72","name":"CEO","description":"The CEO"}