Assign a Role to a User
Roles determine what actions a user can perform. For example, to generate a client secret, a user must be assigned the Environment Admin role.
For permissions associated with each role, refer to PingOne Role Permissions.
Prerequisites
-
Get an access token from the worker application that you created in Create an admin Worker app connection. To get a token from a different worker application in an alternate sandbox environment, run the token request endpoint using the client ID and client secret of your chosen worker app to authenticate the request. For more information, refer to Get a PingOne admin access token.
-
An existing user to assign the role to.
Workflow order of operations
To assign a role to a user, complete the following tasks:
-
Make a
GETrequest to{{apiPath}}/environments/{{envID}}/usersto get the ID of the user. -
Make a
GETrequest to{{apiPath}}/rolesto return a list of all the PingOne built-in admin roles. -
Make a
POSTrequest to{{apiPath}}/environments/{{envID}}/users/{{userID}}/roleAssignmentsto assign the Environment Admin role. -
Make a
POSTrequest to{{apiPath}}/environments/{{envID}}/users/{{userID}}/roleAssignmentsto assign the Organization Admin role.
Click the Run in Postman button below to fork, or download and import, the Postman collection for this workflow to your workspace.