REST Resource: groups
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ทรัพยากร: กลุ่ม
Google Groups ช่วยให้ผู้ใช้สามารถส่งข้อความถึงกลุ่มคนได้โดยใช้อีเมลของกลุ่ม ดูข้อมูลเพิ่มเติมเกี่ยวกับงานทั่วไปได้ในคู่มือนักพัฒนาซอฟต์แวร์
ดูข้อมูลเกี่ยวกับกลุ่มประเภทอื่นๆ ได้ที่เอกสารประกอบ Cloud Identity Groups API
หมายเหตุ: ผู้ใช้ที่เรียก API (หรือบัญชีบริการแอบอ้างเป็นผู้ใช้) ต้องมีบทบาทที่ได้รับมอบหมายซึ่งมีสิทธิ์กลุ่ม Admin API เช่น ผู้ดูแลระบบขั้นสูงหรือผู้ดูแลระบบกลุ่ม
การแสดง JSON |
{
"id": string,
"email": string,
"name": string,
"description": string,
"adminCreated": boolean,
"directMembersCount": string,
"kind": string,
"etag": string,
"aliases": [
string
],
"nonEditableAliases": [
string
]
} |
ช่อง |
id |
string
อ่านอย่างเดียว รหัสที่ไม่ซ้ำกันของกลุ่ม id ของกลุ่มสามารถใช้เป็น groupKey ของ URI คำขอของกลุ่มได้
|
email |
string
อีเมลของกลุ่ม หากบัญชีมีหลายโดเมน ให้เลือกโดเมนที่เหมาะสมสำหรับอีเมล email ต้องไม่ซ้ำกัน คุณต้องระบุพร็อพเพอร์ตี้นี้เมื่อสร้างกลุ่ม อีเมลกลุ่มต้องเป็นไปตามกฎการใช้อักขระเดียวกับชื่อผู้ใช้ โปรดดูรายละเอียดที่ศูนย์ช่วยเหลือ
|
name |
string
ชื่อที่แสดงของกลุ่ม
|
description |
string
คำอธิบายเพิ่มเติมเพื่อช่วยให้ผู้ใช้ระบุวัตถุประสงค์ของกลุ่ม เช่น คุณสามารถใส่ข้อมูลเกี่ยวกับผู้ที่ควรเข้าร่วมกลุ่ม ประเภทข้อความที่จะส่งไปยังกลุ่ม ลิงก์ไปยังคำถามที่พบบ่อยเกี่ยวกับกลุ่ม หรือกลุ่มที่เกี่ยวข้อง ความยาวสูงสุดคือ 4,096 อักขระ
|
adminCreated |
boolean
อ่านอย่างเดียว ค่าคือ true หากผู้ดูแลระบบเป็นผู้สร้างกลุ่มนี้ ไม่ใช่ผู้ใช้
|
directMembersCount |
string (int64 format)
จำนวนผู้ใช้ที่เป็นสมาชิกโดยตรงของกลุ่ม หากกลุ่มหนึ่งเป็นสมาชิก (กลุ่มย่อย) ของกลุ่มนี้ (กลุ่มหลัก) ระบบจะไม่นับสมาชิกของกลุ่มย่อยในพร็อพเพอร์ตี้ directMembersCount ของกลุ่มหลัก
|
kind |
string
ประเภทของทรัพยากร API สำหรับทรัพยากร Groups ค่าจะเป็น admin#directory#group
|
etag |
string
ETag ของทรัพยากร
|
aliases[] |
string
อ่านอย่างเดียว รายการอีเมลแทนของกลุ่ม หากต้องการเพิ่ม อัปเดต หรือนำอีเมลแทนของกลุ่มออก ให้ใช้วิธีการ groups.aliases หากแก้ไขในคําขอ POST หรือ PUT ของกลุ่ม ระบบจะไม่สนใจการแก้ไข
|
nonEditableAliases[] |
string
อ่านอย่างเดียว รายการอีเมลแทนของกลุ่มที่แก้ไขไม่ได้ซึ่งอยู่นอกโดเมนหลักหรือโดเมนย่อยของบัญชี อีเมลเหล่านี้เป็นอีเมลที่ใช้งานได้ซึ่งกลุ่มใช้ นี่เป็นพร็อพเพอร์ตี้ที่อ่านอย่างเดียวซึ่งแสดงในการตอบกลับของ API สําหรับกลุ่ม หากแก้ไขในคําขอ POST หรือ PUT ของกลุ่ม ระบบจะไม่สนใจการแก้ไข
|
เมธอด |
|
ลบกลุ่ม |
|
ดึงข้อมูลพร็อพเพอร์ตี้ของกลุ่ม |
|
สร้างกลุ่ม |
|
ดึงข้อมูลกลุ่มทั้งหมดของโดเมนหรือของผู้ใช้ที่ได้รับ userKey (แบ่งเป็นหน้า) |
|
อัปเดตพร็อพเพอร์ตี้ของกลุ่ม |
|
อัปเดตพร็อพเพอร์ตี้ของกลุ่ม |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-24 UTC
[null,null,["อัปเดตล่าสุด 2025-07-24 UTC"],[],[],null,["# REST Resource: groups\n\nResource: Group\n---------------\n\nGoogle Groups provide your users the ability to send messages to groups of people using the group's email address. For more information about common tasks, see the [Developer's Guide](https://developers.google.com/workspace/admin/directory/v1/guides/manage-groups).\n\nFor information about other types of groups, see the [Cloud Identity Groups API documentation](https://cloud.google.com/identity/docs/groups).\n\nNote: The user calling the API (or being impersonated by a service account) must have an assigned [role](https://developers.google.com/workspace/admin/directory/v1/guides/manage-roles) that includes Admin API Groups permissions, such as Super Admin or Groups Admin.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"email\": string, \"name\": string, \"description\": string, \"adminCreated\": boolean, \"directMembersCount\": string, \"kind\": string, \"etag\": string, \"aliases\": [ string ], \"nonEditableAliases\": [ string ] } ``` |\n\n| Fields ||\n|------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` Read-only. The unique ID of a group. A group `id` can be used as a group request URI's `groupKey`. |\n| `email` | `string` The group's email address. If your account has multiple domains, select the appropriate domain for the email address. The `email` must be unique. This property is required when creating a group. Group email addresses are subject to the same character usage rules as usernames, see the [help center](https://support.google.com/a/answer/9193374) for details. |\n| `name` | `string` The group's display name. |\n| `description` | `string` An extended description to help users determine the purpose of a group. For example, you can include information about who should join the group, the types of messages to send to the group, links to FAQs about the group, or related groups. Maximum length is `4,096` characters. |\n| `adminCreated` | `boolean` Read-only. Value is `true` if this group was created by an administrator rather than a user. |\n| `directMembersCount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The number of users that are direct members of the group. If a group is a member (child) of this group (the parent), members of the child group are not counted in the `directMembersCount` property of the parent group. |\n| `kind` | `string` The type of the API resource. For Groups resources, the value is `admin#directory#group`. |\n| `etag` | `string` ETag of the resource. |\n| `aliases[]` | `string` Read-only. The list of a group's alias email addresses. To add, update, or remove a group's aliases, use the `groups.aliases` methods. If edited in a group's POST or PUT request, the edit is ignored. |\n| `nonEditableAliases[]` | `string` Read-only. The list of the group's non-editable alias email addresses that are outside of the account's primary domain or subdomains. These are functioning email addresses used by the group. This is a read-only property returned in the API's response for a group. If edited in a group's POST or PUT request, the edit is ignored. |\n\n| Methods ------- ||\n|--------------------------------------------------------------------------|----------------------------------------------------------------------------|\n| ### [delete](/workspace/admin/directory/reference/rest/v1/groups/delete) | Deletes a group. |\n| ### [get](/workspace/admin/directory/reference/rest/v1/groups/get) | Retrieves a group's properties. |\n| ### [insert](/workspace/admin/directory/reference/rest/v1/groups/insert) | Creates a group. |\n| ### [list](/workspace/admin/directory/reference/rest/v1/groups/list) | Retrieves all groups of a domain or of a user given a userKey (paginated). |\n| ### [patch](/workspace/admin/directory/reference/rest/v1/groups/patch) | Updates a group's properties. |\n| ### [update](/workspace/admin/directory/reference/rest/v1/groups/update) | Updates a group's properties. |"]]