GET /api/v1/users/{userId}/roles/{roleIdOrEncodedRoleId}/targets

Retrieves all role targets for an APP_ADMIN, USER_ADMIN, HELP_DESK_ADMIN, or GROUP_MEMBERSHIP_ADMIN role assignment to an admin user by user or group assignment type. If the role isn't scoped to specific group targets or any app targets, an empty array [] is returned.

Servers

Path parameters

Name Type Required Description
userId String Yes

ID of an existing Okta user

roleIdOrEncodedRoleId String Yes

The id of the role or Base32 encoded id of the role name

Query parameters

Name Type Required Description
limit Integer No

A limit on the number of objects to return

Default value: 20

assignmentType String No

Specifies the assignment type of the user

Valid values:

  • "GROUP"
  • "USER"
after String No

The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the Link response header. See Pagination and Link header.

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.