Skip to main content
POST
SearchCohortUsers

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Path Parameters

suggestion_id
string
required

The ID of the suggestion whose cohort to search within.

Body

application/json

The SearchCohortUsersRequest message.

accessScope
Access Scope · object | null

AccessScope narrows a cohort to the users who hold a grant. It is combined with any ProfileFilters using AND logic, and is a complete cohort definition on its own.

This message contains a oneof named scope. Only a single field of the following list may be set at a time:

  • appId
  • entitlement
pageSize
integer<int32>

Maximum number of users to return per page.

pageToken
string

Pagination token from a previous response.

profileFilters
Profile Filter · object[] | null

Additional profile filters to narrow the cohort user search.

selectedEntitlements
Entitlement Ref · object[] | null
deprecated

Deprecated. This endpoint no longer computes per-user coverage and ignores this field.

Response

200 - application/json

Successful response

The SearchCohortUsersResponse message.

list
User · object[] | null

The list of users matching the cohort and optional filters.

nextPageToken
string

Token to retrieve the next page of results, empty if no more results.

totalCount
string<int64> | null

Best-effort current number of enabled users matching the cohort filters. Directory updates may race the paged search. Present on the first page only so subsequent pages do not repeat the count query.

usersWithCoverage
Cohort User With Coverage · object[] | null
deprecated

Deprecated. This endpoint no longer computes per-user coverage; this list is always empty.