Enum Role
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Role
ग्रुप में किसी उपयोगकर्ता की संभावित भूमिकाएं, जैसे कि मालिक या सामान्य सदस्य. किसी ग्रुप की सदस्यता लेने वाले उपयोगकर्ताओं के पास, उस ग्रुप में सिर्फ़ एक भूमिका होती है.
किसी enum को कॉल करने के लिए, आपको उसकी पैरंट क्लास, नाम, और प्रॉपर्टी को कॉल करना होगा. उदाहरण के लिए,
GroupsApp.Role.OWNER
.
इन्हें भी देखें
प्रॉपर्टी
प्रॉपर्टी | टाइप | ब्यौरा |
OWNER | Enum | ग्रुप का मालिक. |
MANAGER | Enum | ग्रुप का मैनेजर. |
MEMBER | Enum | वह उपयोगकर्ता जो इस ग्रुप का सदस्य है, लेकिन न तो मालिक है और न ही मैनेजर है. |
INVITED | Enum | ऐसा उपयोगकर्ता जिसे ग्रुप के मालिक या मैनेजर ने ग्रुप में शामिल होने का न्योता भेजा है, लेकिन उसने अब तक न्योता स्वीकार नहीं किया है. |
PENDING | Enum | वह उपयोगकर्ता जिसने ग्रुप में शामिल होने का अनुरोध किया है, लेकिन ग्रुप के मालिक या मैनेजर से अभी तक अनुमति नहीं मिली है. |
BANNED | Enum | ऐसा उपयोगकर्ता जिसे किसी ग्रुप से प्रतिबंधित किया गया है और वह उस ग्रुप में शामिल नहीं हो सकता. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eUsers within a group have one role, such as owner or member, impacting their permissions.\u003c/p\u003e\n"],["\u003cp\u003eRoles are defined using an enum structure, accessed with \u003ccode\u003eGroupsApp.Role.{roleName}\u003c/code\u003e (e.g., \u003ccode\u003eGroupsApp.Role.OWNER\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eAvailable roles include \u003ccode\u003eOWNER\u003c/code\u003e, \u003ccode\u003eMANAGER\u003c/code\u003e, \u003ccode\u003eMEMBER\u003c/code\u003e, \u003ccode\u003eINVITED\u003c/code\u003e, \u003ccode\u003ePENDING\u003c/code\u003e, and \u003ccode\u003eBANNED\u003c/code\u003e, each with specific implications for group interaction.\u003c/p\u003e\n"]]],[],null,["# Enum Role\n\nRole\n\nPossible roles of a user within a group, such as owner or ordinary member. Users subscribed to a\ngroup have exactly one role within the context of that group.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nGroupsApp.Role.OWNER`.\n\n#### See also\n\n- [Group.getRole(email)](/apps-script/reference/groups/group#getRole(String)) \n\n### Properties\n\n| Property | Type | Description |\n|-----------|--------|------------------------------------------------------------------------------------------------------------------------------|\n| `OWNER` | `Enum` | The owner of a group. |\n| `MANAGER` | `Enum` | The manager of a group. |\n| `MEMBER` | `Enum` | A user who is a member of this group but is neither an owner nor a manager. |\n| `INVITED` | `Enum` | A user who has been invited to join a group by an owner or manager of the group but who has not yet accepted the invitation. |\n| `PENDING` | `Enum` | A user who has requested to join a group but who has not yet been approved by an owner or manager. |\n| `BANNED` | `Enum` | A user who has been banned from a group and cannot attempt to join it. |"]]