Skip to content

List all service users for a team

Request

OPA roles:
  • pam_admin
  • resource_admin
  • security_admin
  • delegated_resource_admin

Lists all service users for your team

Security
bearerAuth
Path
team_namestringrequired

The name of your team

Query
containsstring

Filter results to include only those that contain the specified value

countinteger, (int32)

The number of objects per page

descendingboolean

If true, results are listed in descending order. By default, results are listed in ascending order.

idArray of strings

Only returns results with the specified IDs

include_service_usersstring

Only return service users in the results

offsetstring

The offset value for pagination. The rel="next" and rel="prev" Link headers define the offset for subsequent or previous pages.

prevboolean

The direction of paging

starts_withstring

Only return users with a name that begins with the specified value

statusstring

Only return users with the specified status. Valid statuses: ACTIVE, DISABLED, and DELETED.

curl -i -X GET \
  'https://{org_name}.pam.okta.com/v1/teams/{team_name}/service_users?contains=string&count=0&descending=true&id=string&include_service_users=string&offset=string&prev=true&starts_with=string&status=string' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Headers
Bodyapplication/json
listArray of objects(User)
Response
{ "list": [ { … }, { … } ] }