Method: spaces.members.create

Stay organized with collections Save and categorize content based on your preferences.

Creates a human membership or app membership for the calling app. Creating memberships for other apps is not supported. Requires user authentication and the chat.memberships (for human membership) or (for app membership) scope.

To specify the member to add, set the in the CreateMembershipRequest:

  • To add the calling app to the space, use users/app.

  • To add a human user, use users/{user}, where {user} is either the {person_id} for the person from the People API, or the id for the user in the Admin SDK Directory API. For example, if the People API Person resourceName is people/123456789, the user can be added to the space by setting the to users/123456789.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Required. The resource name of the space for which to create the membership.

Format: spaces/{space}

Request body

The request body contains an instance of Membership.

Response body

If successful, the response body contains a newly created instance of Membership.

Authorization Scopes

Requires one of the following OAuth scopes:


For more information, see the Authorization guide.