Reference documentation and code samples for the Google Apps Chat V1 Client class MembershipRole.
Represents a user's permitted actions in a Chat space. More enum values might be added in the future.
Protobuf type google.chat.v1.Membership.MembershipRole
Namespace
Google \ Apps \ Chat \ V1 \ MembershipMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
MEMBERSHIP_ROLE_UNSPECIFIED
Value: 0Default value. For users: they aren't a member of the space, but can be invited. For Google Groups: they're always assigned this role (other enum values might be used in the future).
Generated from protobuf enum MEMBERSHIP_ROLE_UNSPECIFIED = 0;
ROLE_MEMBER
Value: 1A 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. In direct messages and unnamed group conversations, everyone has this role.
Generated from protobuf enum ROLE_MEMBER = 1;
ROLE_MANAGER
Value: 2A 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 (named spaces). To learn more, see Learn more about your role as a space owner or manager.
Generated from protobuf enum ROLE_MANAGER = 2;
ROLE_ASSISTANT_MANAGER
Value: 4A 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 (named spaces). To learn more, see Manage space settings.
Generated from protobuf enum ROLE_ASSISTANT_MANAGER = 4;