POST /api/v1/users/{userId}/roles

Assigns a standard role to a User.

You can also assign a custom role to a User, but the preferred method to assign a custom role to a User is to create a binding between the Custom Role, the Resource Set, and the User. See Create a Role Resource Set Binding.

Notes:

Servers

Path parameters

Name Type Required Description
userId String Yes

ID of an existing Okta user

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Query parameters

Name Type Required Description
disableNotifications Boolean No

Setting this to true grants the User third-party admin status

Default value: false

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.