Enum Role

  • A user has exactly one role within a group they are subscribed to.

  • Roles in a group can be OWNER, MANAGER, MEMBER, INVITED, PENDING, or BANNED.

  • To call an enum representing a role, use the formatGroupsApp.Role.ROLE_NAME.

Role

Possible roles of a user within a group, such as owner or ordinary member. Users subscribed to agroup have exactly one role within the context of that group.

To call an enum, you call its parent class, name, and property. For example,GroupsApp.Role.OWNER.

See also

Properties

PropertyTypeDescription
OWNEREnumThe owner of a group.
MANAGEREnumThe manager of a group.
MEMBEREnumA user who is a member of this group but is neither an owner nor a manager.
INVITEDEnumA user who has been invited to join a group by an owner or manager of the group but who has notyet accepted the invitation.
PENDINGEnumA user who has requested to join a group but who has not yet been approved by an owner ormanager.
BANNEDEnumA user who has been banned from a group and cannot attempt to join it.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-11 UTC.