REST Resource: spaces.members

Resource: Membership

Represents a membership relation in Google Chat, such as whether a user or Chat app is invited to, part of, or absent from a space.

JSON representation
{
  "name": string,
  "state": enum (MembershipState),
  "createTime": string,
  "member": {
    object (User)
  }
}
Fields
name

string

Resource name of the membership.

Format: spaces/{space}/members/{member}

state

enum (MembershipState)

Output only. State of the membership.

createTime

string (Timestamp format)

Output only. The creation time of the membership, such as when a member joined or was invited to join a space.

member

object (User)

A Google Chat user or app.

Format: users/{user} or users/app

When users/{user}, represents a person in the People API or a user in the Admin SDK Directory API.

When users/app, represents a Chat app creating membership for itself.

MembershipState

Specifies the member's relationship with a space.

Enums
MEMBERSHIP_STATE_UNSPECIFIED Default, do not use.
JOINED The user has joined the space.
INVITED The user has been invited, is able to join the space, but currently has not joined.
NOT_A_MEMBER The user is not a member of the space, has not been invited and is not able to join the space.

Methods

create

Creates a human membership or app membership for the calling app.

get

Returns a membership.

list

Lists human memberships in a space.