0.34.0 (latest) 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.1 0.2.0 0.1.2 Reference documentation and code samples for the Google Chat V1 API module Google::Apps::Chat::V1::Membership::MembershipRole.

Represents a user's permitted actions in a Chat space. More enum values
might be added in the future.

## Constants

### MEMBERSHIP_ROLE_UNSPECIFIED

**value:** 0  
Default value. For [users](https://docs.cloud.google.com/ruby/docs/reference/google-apps-chat-v1/latest/Google-Apps-Chat-V1-Membership#Google__Apps__Chat__V1__Membership_member_instance_ "Google::Apps::Chat::V1::Membership#member (method)"): they
aren't a member of the space, but can be invited. For
[Google Groups](https://docs.cloud.google.com/ruby/docs/reference/google-apps-chat-v1/latest/Google-Apps-Chat-V1-Membership#Google__Apps__Chat__V1__Membership_group_member_instance_ "Google::Apps::Chat::V1::Membership#group_member (method)"): they're always
assigned this role (other enum values might be used in the future).

### ROLE_MEMBER

**value:** 1  
A member of the space. In the Chat UI, this role is called Member.


The user has basic permissions, like sending
messages to the space.
Managers and owners can grant members additional permissions in a space,
including:

- Add or remove members.
- Modify space details.
- Turn history on or off.
- Mention everyone in the space with `@all`.
- Manage Chat apps and webhooks installed in the space.

<br />

In direct messages and unnamed group conversations, everyone
has this role.

### ROLE_MANAGER

**value:** 2  
A space owner. In the Chat UI, this role is called Owner.


The user has the complete set of space permissions to manage the space,
including:

- Change the role of other members in the space to member, manager, or owner.
- Delete the space.

Only supported in
[SpaceType.SPACE](https://docs.cloud.google.com/ruby/docs/reference/google-apps-chat-v1/latest/Google-Apps-Chat-V1-Space-SpaceType "Google::Apps::Chat::V1::Space::SpaceType (module)") (named spaces).

<br />

To learn more, see
[Learn more about your role as a space
owner or manager](https://support.google.com/chat/answer/11833441).

### ROLE_ASSISTANT_MANAGER

**value:** 4  
A space manager. In the Chat UI, this role is called Manager.


The user has all basic permissions of `ROLE_MEMBER`,
and can be granted a subset of administrative permissions by an owner.
By default, managers have all the permissions of an owner except for the
ability to:

- Delete the space.
- Make another space member an owner.
- Change an owner's role.

By default, managers permissions include but aren't limited to:

- Make another member a manager.
- Delete messages in the space.
- Manage space permissions.
- Receive notifications for requests to join the space if the manager has the "manage members" permission in the space settings.
- Make a space discoverable.

Only supported in
[SpaceType.SPACE](https://docs.cloud.google.com/ruby/docs/reference/google-apps-chat-v1/latest/Google-Apps-Chat-V1-Space-SpaceType "Google::Apps::Chat::V1::Space::SpaceType (module)") (named spaces).

<br />

To learn more, see
[Manage space settings](https://support.google.com/chat/answer/13340792).