Skip to main content
POST
Search Policy Users

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

id
string
required

The session policy whose applied users to search.

Body

application/json

SessionPolicyServiceSearchPolicyUsersRequest searches the users a policy applies to, one page at a time. This read is served from the asynchronously-replicated Postgres mirror of the binding store, so a just-made assignment may not appear immediately; the user-scoped reads (GetEffectiveSessionPolicy, ListUserPolicies) reflect current state.

pageSize
integer<int32>

The maximum number of users to return per page. The server clamps this to its own bounds (currently 5..100). Always follow next_page_token to complete the search.

pageToken
string

The page token from the previous response.

query
string

Fuzzy search on user display name and email. Empty matches all users the policy applies to. Applied in the query together with the source facet, so pages carry only matching rows.

source
enum<string>

When set, restrict results to this source. UNSPECIFIED returns all users.

Available options:
EFFECTIVE_SESSION_POLICY_SOURCE_FILTER_UNSPECIFIED,
EFFECTIVE_SESSION_POLICY_SOURCE_FILTER_DIRECT,
EFFECTIVE_SESSION_POLICY_SOURCE_FILTER_GROUP

Response

200 - application/json

SessionPolicyServiceSearchPolicyUsersResponse carries one page of the users a policy applies to.

SessionPolicyServiceSearchPolicyUsersResponse carries one page of the users a policy applies to.

nextPageToken
string

The token for the next page. Empty when this is the last page.

users
Policy User · object[] | null

The users on this page.