Stay organized with collections
Save and categorize content based on your preferences.
Get a membership graph of just a member or both a member and a group.
Note: This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts.
Given a member, the response will contain all membership paths from the member. Given both a group and a member, the response will contain all membership paths between the group and the member.
HTTP request
GET https://cloudidentity.googleapis.com/v1beta1/{parent=groups/*}/memberships:getMembershipGraph
Required. Resource name of the group to search transitive memberships in.
Format: groups/{group_id}, where group_id is the unique ID assigned to the Group to which the Membership belongs to. group_id can be a wildcard collection id "-".
When group_id is specified, the membership graph will be constrained to paths between the member (defined in the query) and the parent. If a wildcard collection is provided, all membership paths connected to the member will be returned.
Query parameters
Parameters
query
string
Required. A CEL expression that MUST include member specification AND label(s).
Certain 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
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Operation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[[["This API provides a membership graph for a specified member, or between a member and a group, detailing all membership paths."],["Access to this feature requires a Google Workspace Enterprise Standard, Enterprise Plus, or Enterprise for Education; or Cloud Identity Premium account."],["The API utilizes a GET request to the specified URL, including the parent group ID as a path parameter and member information in a query."],["The required query parameter uses a CEL expression to define member specification and label(s), including 'member_key_id' and 'member_key_namespace' when necessary."],["Successful requests return an `Operation` instance, and authorization requires one of the specified OAuth scopes for access."]]],[]]