Class GroupsResource.MembershipsResource
The "memberships" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudIdentity.v1
Assembly: Google.Apis.CloudIdentity.v1.dll
Syntax
public class GroupsResource.MembershipsResource
Constructors
MembershipsResource(IClientService)
Constructs a new resource.
Declaration
public MembershipsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
CheckTransitiveMembership(string)
Check a potential member for membership in a group. Note: This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. If the account of the member is not one of these, a 403 (PERMISSION_DENIED) HTTP status code will be returned. A member has membership to a group as long as there is a single viewable transitive membership between the group and the member. The actor must have view permissions to at least one transitive membership between the member and group.
Declaration
public virtual GroupsResource.MembershipsResource.CheckTransitiveMembershipRequest CheckTransitiveMembership(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Resource name of the group to check the
transitive membership in. Format: |
Returns
Type | Description |
---|---|
GroupsResource.MembershipsResource.CheckTransitiveMembershipRequest |
Create(Membership, string)
Creates a Membership
.
Declaration
public virtual GroupsResource.MembershipsResource.CreateRequest Create(Membership body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Membership | body | The body of the request. |
string | parent | Required. The parent |
Returns
Type | Description |
---|---|
GroupsResource.MembershipsResource.CreateRequest |
Delete(string)
Deletes a Membership
.
Declaration
public virtual GroupsResource.MembershipsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the |
Returns
Type | Description |
---|---|
GroupsResource.MembershipsResource.DeleteRequest |
Get(string)
Retrieves a Membership
.
Declaration
public virtual GroupsResource.MembershipsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the |
Returns
Type | Description |
---|---|
GroupsResource.MembershipsResource.GetRequest |
GetMembershipGraph(string)
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. If the account of the member is not one of these, a 403 (PERMISSION_DENIED) HTTP status code will be returned. 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.
Declaration
public virtual GroupsResource.MembershipsResource.GetMembershipGraphRequest GetMembershipGraph(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Resource name of the group to search
transitive memberships in. Format: |
Returns
Type | Description |
---|---|
GroupsResource.MembershipsResource.GetMembershipGraphRequest |
List(string)
Lists the Membership
s within a Group
.
Declaration
public virtual GroupsResource.MembershipsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent |
Returns
Type | Description |
---|---|
GroupsResource.MembershipsResource.ListRequest |
Lookup(string)
Looks up the resource name of a Membership
by
its EntityKey
.
Declaration
public virtual GroupsResource.MembershipsResource.LookupRequest Lookup(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent |
Returns
Type | Description |
---|---|
GroupsResource.MembershipsResource.LookupRequest |
ModifyMembershipRoles(ModifyMembershipRolesRequest, string)
Modifies the MembershipRole
s of a Membership
.
Declaration
public virtual GroupsResource.MembershipsResource.ModifyMembershipRolesRequest ModifyMembershipRoles(ModifyMembershipRolesRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
ModifyMembershipRolesRequest | body | The body of the request. |
string | name | Required. The resource name of the |
Returns
Type | Description |
---|---|
GroupsResource.MembershipsResource.ModifyMembershipRolesRequest |
SearchDirectGroups(string)
Searches direct groups of a member.
Declaration
public virtual GroupsResource.MembershipsResource.SearchDirectGroupsRequest SearchDirectGroups(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | 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. |
Returns
Type | Description |
---|---|
GroupsResource.MembershipsResource.SearchDirectGroupsRequest |
SearchTransitiveGroups(string)
Search transitive groups of a member. Note: This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. If the account of the member is not one of these, a 403 (PERMISSION_DENIED) HTTP status code will be returned. A transitive group is any group that has a direct or indirect membership to the member. Actor must have view permissions all transitive groups.
Declaration
public virtual GroupsResource.MembershipsResource.SearchTransitiveGroupsRequest SearchTransitiveGroups(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Resource name of the group to search transitive
memberships in. Format: |
Returns
Type | Description |
---|---|
GroupsResource.MembershipsResource.SearchTransitiveGroupsRequest |
SearchTransitiveMemberships(string)
Search transitive memberships of a group. Note: This feature is only available to Google Workspace Enterprise Standard, Enterprise Plus, and Enterprise for Education; and Cloud Identity Premium accounts. If the account of the group is not one of these, a 403 (PERMISSION_DENIED) HTTP status code will be returned. A transitive membership is any direct or indirect membership of a group. Actor must have view permissions to all transitive memberships.
Declaration
public virtual GroupsResource.MembershipsResource.SearchTransitiveMembershipsRequest SearchTransitiveMemberships(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Resource name of the group to search transitive
memberships in. Format: |
Returns
Type | Description |
---|---|
GroupsResource.MembershipsResource.SearchTransitiveMembershipsRequest |