v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1339117150.4 KB
groups

Searches direct groups of a member. Groups for which the actor does not have the permission to view memberships are silently filtered out.

get/v1/{+parent}/memberships:searchDirectGroups

Path parameters

parentstring required

Resource name of the group to search transitive memberships in. Format: groups/{group_id}, where group_id is always '-' as this API will search across all groups for a given member.

Query parameters

orderBystring

The ordering of membership relation for the display name or email in the response. The syntax for this field can be found at https://cloud.google.com/apis/design/design_patterns#sorting_order. Example: Sort by the ascending display name: order_by="group_name" or order_by="group_name asc". Sort by the descending display name: order_by="group_name desc". Sort by the ascending group key: order_by="group_key" or order_by="group_key asc". Sort by the descending group key: order_by="group_key desc".

pageSizeinteger

The default page size is 200 (max 1000).

pageTokenstring

The next_page_token value returned from a previous list request, if any

querystring

Required. A CEL expression that MUST include member specification AND label(s). Users can search on label attributes of groups. CONTAINS match ('in') is supported on labels. Identity-mapped groups are uniquely identified by both a member_key_id and a member_key_namespace, which requires an additional query input: member_key_namespace. Example query: member_key_id == 'member_key_id_value' && 'label_value' in labels

Response

Successful response