Resource: Membership
A membership within the Cloud Identity Groups API.
A Membership defines a relationship between a Group and an entity belonging to that Group, referred to as a "member".
| JSON representation | 
|---|
{ "name": string, "memberKey": { object (  | 
              
| Fields | |
|---|---|
name | 
                
                   
 Output only. The resource name of the  Shall be of the form   | 
              
memberKey | 
                
                   
 Immutable. The  Either   | 
              
createTime | 
                
                   
 Output only. The time when the  Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:   | 
              
updateTime | 
                
                   
 Output only. The time when the  Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:   | 
              
roles[] | 
                
                   
 The  If unspecified, defaults to a single  Must not contain duplicate   | 
              
preferredMemberKey | 
                
                   
 Required. Immutable. The  Either   | 
              
type | 
                
                   
 Output only. The type of the membership.  | 
              
deliverySetting | 
                
                   
 Output only. Delivery setting associated with the membership.  | 
              
MembershipRole
A membership role within the Cloud Identity Groups API.
A MembershipRole defines the privileges granted to a Membership.
| JSON representation | 
|---|
{ "name": string, "expiryDetail": { object (  | 
              
| Fields | |
|---|---|
name | 
                
                   
 The name of the  Must be one of   | 
              
expiryDetail | 
                
                   
 The expiry details of the  Expiry details are only supported for  May be set if   | 
              
restrictionEvaluations | 
                
                   
 Evaluations of restrictions applied to parent group on this membership.  | 
              
ExpiryDetail
The MembershipRole expiry details.
| JSON representation | 
|---|
{ "expireTime": string }  | 
              
| Fields | |
|---|---|
expireTime | 
                
                   
 The time at which the  Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:   | 
              
RestrictionEvaluations
Evaluations of restrictions applied to parent group on this membership.
| JSON representation | 
|---|
{
  "memberRestrictionEvaluation": {
    object ( | 
              
| Fields | |
|---|---|
memberRestrictionEvaluation | 
                
                   
 Evaluation of the member restriction applied to this membership. Empty if the user lacks permission to view the restriction evaluation.  | 
              
RestrictionEvaluation
The evaluated state of this restriction.
| JSON representation | 
|---|
{
  "state": enum ( | 
              
| Fields | |
|---|---|
state | 
                
                   
 Output only. The current state of the restriction  | 
              
State
All possible states of a restriction.
| Enums | |
|---|---|
STATE_UNSPECIFIED | 
                Default. Should not be used. | 
COMPLIANT | 
                The member adheres to the parent group's restriction. | 
FORWARD_COMPLIANT | 
                The group-group membership might be currently violating some parent group's restriction but in future, it will never allow any new member in the child group which can violate parent group's restriction. | 
NON_COMPLIANT | 
                The member violates the parent group's restriction. | 
EVALUATING | 
                The state of the membership is under evaluation. | 
Type
| Enums | |
|---|---|
TYPE_UNSPECIFIED | 
                Default. Should not be used. | 
USER | 
                Represents user type. | 
SERVICE_ACCOUNT | 
                Represents service account type. | 
GROUP | 
                Represents group type. | 
SHARED_DRIVE | 
                Represents Shared drive. | 
CBCM_BROWSER | 
                Represents a CBCM-managed Chrome Browser type. | 
OTHER | 
                Represents other type. | 
DeliverySetting
Delivery setting associated with the membership.
| Enums | |
|---|---|
DELIVERY_SETTING_UNSPECIFIED | 
                Default. Should not be used. | 
ALL_MAIL | 
                Represents each mail should be delivered | 
DIGEST | 
                Represents 1 email for every 25 messages. | 
DAILY | 
                Represents daily summary of messages. | 
NONE | 
                Represents no delivery. | 
DISABLED | 
                Represents disabled state. | 
Methods | 
            |
|---|---|
                
 | 
              Check a potential member for membership in a group. | 
                
 | 
              
                Creates a Membership. | 
            
                
 | 
              
                Deletes a Membership. | 
            
                
 | 
              
                Retrieves a Membership. | 
            
                
 | 
              Get a membership graph of just a member or both a member and a group. | 
                
 | 
              
                Lists the Memberships within a Group. | 
            
                
 | 
              
                Looks up the resource name of a Membership by its EntityKey. | 
            
                
 | 
              
                Modifies the MembershipRoles of a Membership. | 
            
                
 | 
              Searches direct groups of a member. | 
                
 | 
              Search transitive groups of a member. | 
                
 | 
              Search transitive memberships of a group. |