Skip to content

Retrieve the memberships for the given identity source group

Request

OAuth 2.0 scope:
  • okta.identitySources.read

Retrieves the group memberships for the given identity source group in the given identity source instance

Path
identitySourceIdstringrequired

The ID of the identity source for which the session is created

Example:0oa3l6l6WK6h0R0QW0g4
groupOrExternalIdstringrequired

The Okta group ID or external ID of the identity source group

Example:00gsl4xM9ys8TdnbZ0g4 or GROUPEXT123456784C2IF
Query
afterstring

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.

limitinteger, (int32), <= 1000

Specifies the number of group membership results in a page. Okta recommends using a specific value other than the default or maximum. If your request times out, retry your request with a smaller limit and page the results.

curl -i -X GET \
  'https://subdomain.okta.com/api/v1/identity-sources/0oa3l6l6WK6h0R0QW0g4/groups/00gsl4xM9ys8TdnbZ0g4 or GROUPEXT123456784C2IF/membership?after=string&limit=1000'

Responses

Success

Bodyapplication/json
memberExternalIdsArray of strings

A list of app user external IDs that are members of the group in Okta

Response
{ "memberExternalIds": [ "USEREXT123456784C2IFA", "USEREXT123456784C3IFB", "USEREXT123456784C4IFC" ] }