Skip to content

List all groups for a team

Request

OPA roles:
  • pam_admin
  • resource_admin
  • security_admin
  • delegated_resource_admin

Lists all groups 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

ignorestring

Ignore groups with the specified names. This is case sensitive.

include_deletedboolean

If true, include deleted groups 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.

only_include_deletedboolean

If true, only return deleted groups in the results

prevboolean

The direction of paging

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

Responses

OK

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