Skip to main content

members

Overview

Namemembers
TypeResource
Idgoogleadmin.directory.members

Fields

NameDatatypeDescription
idstringThe unique ID of the group member. A member id can be used as a member request URI's memberKey.
delivery_settingsstringDefines mail delivery preferences of member. This field is only supported by insert, update, and get methods.
emailstringThe member's email address. A member can be a user or another group. This property is required when adding a member to a group. The email must be unique and cannot be an alias of another group. If the email address is changed, the API automatically reflects the email address changes.
etagstringETag of the resource.
kindstringThe type of the API resource. For Members resources, the value is admin#directory#member.
rolestringThe member's role in a group. The API returns an error for cycles in group memberships. For example, if group1 is a member of group2, group2 cannot be a member of group1. For more information about a member's role, see the administration help center.
statusstringStatus of member (Immutable)
typestringThe type of group member.

Methods

NameAccessible byRequired ParamsDescription
getSELECTgroupKey, memberKeyRetrieves a group member's properties.
listSELECTgroupKeyRetrieves a paginated list of all members in a group. This method times out after 60 minutes. For more information, see Troubleshoot error codes.
insertINSERTgroupKeyAdds a user to the specified group.
deleteDELETEgroupKey, memberKeyRemoves a member from a group.
_listEXECgroupKeyRetrieves a paginated list of all members in a group. This method times out after 60 minutes. For more information, see Troubleshoot error codes.
hasMemberEXECgroupKey, memberKeyChecks whether the given user is a member of the group. Membership can be direct or nested, but if nested, the memberKey and groupKey must be entities in the same domain or an Invalid input error is returned. To check for nested memberships that include entities outside of the group's domain, use the checkTransitiveMembership() method in the Cloud Identity Groups API.
patchEXECgroupKey, memberKeyUpdates the membership properties of a user in the specified group. This method supports patch semantics.
updateEXECgroupKey, memberKeyUpdates the membership of a user in the specified group.