Skip to content

List all application groups

Request

OAuth 2.0 scope:
  • okta.apps.read

Lists all app group assignments

Path
appIdstringrequired

Application ID

Example:0oafxqCAJWWGELFTYASJ
Query
qstring

Specifies a filter for a list of assigned groups returned based on their names. The value of q is matched against the group name. This filter only supports the startsWith operation that matches the q string against the beginning of the group name.

Example:q=test
afterstring

Specifies the pagination cursor for the next page of results. Treat this as an opaque value obtained through the next link relationship. See Pagination.

Example:after=16275000448691
limitinteger, (int32), [ 20 .. 200 ]

Specifies the number of objects to return per page. If there are multiple pages of results, the Link header contains a next link that you need to use as an opaque value (follow it, don't parse it). See Pagination.

Default:20
Examples:
Minimum limit value
limit=20
Sample limit value
limit=100
Maximum limit value
limit=200
expandstring

An optional query parameter to return the corresponding assigned group or the group assignment metadata details in the _embedded property.

Example:expand=metadata
Examples:
Embedded assigned group
expand=group
Embedded group assignment metadata
expand=metadata
curl -i -X GET \
  'https://subdomain.okta.com/api/v1/apps/0oafxqCAJWWGELFTYASJ/groups?q=test&after=16275000448691&limit=20&expand=group'

Responses

Success

Bodyapplication/json
Array [
idstringread-only

ID of the group

Example:"00g4hb1HChfUriNgW0g4"
lastUpdatedstring, (date-time)(lastUpdatedProperty)read-only

Timestamp when the object was last updated

Example:"2014-06-24T15:28:14.000Z"
priorityinteger

Priority assigned to the group. If an app has more than one group assigned to the same user, then the group with the higher priority has its profile applied to the application user. If a priority value isn't specified, then the next highest priority is assigned by default. See Assign attribute group priority and the sample priority use case.

Example:99
profileobject(GroupAssignmentProfile)

Specifies the profile properties applied to application users that are assigned to the app through group membership. Some reference properties are imported from the target app and can't be configured. See profile.

_embeddedobjectread-only

Embedded resource related to the Application Group using the JSON Hypertext Application Language specification. If the expand=group query parameter is specified, then the group object is embedded. If the expand=metadata query parameter is specified, then the group assignment metadata is embedded.

]
Response
[ { "id": "00g15acRUy0SYb9GT0g4", "priority": 0, "lastUpdated": "2024-06-02T13:17:57.000Z", "profile": { … }, "_links": { … }, "_embedded": { … } } ]