REST Resource: groups
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
リソース: Group
Google グループを使用すると、ユーザーはグループのメールアドレスを使用してグループにメッセージを送信できます。一般的なタスクの詳細については、デベロッパー ガイドをご覧ください。
他のタイプのグループについては、Cloud Identity Groups API のドキュメントをご覧ください。
注: API を呼び出すユーザー(またはサービス アカウントによって権限を委任されているユーザー)には、Admin API Groups の権限(特権管理者やグループ管理者など)を含むロールが割り当てられている必要があります。
JSON 表現 |
{
"id": string,
"email": string,
"name": string,
"description": string,
"adminCreated": boolean,
"directMembersCount": string,
"kind": string,
"etag": string,
"aliases": [
string
],
"nonEditableAliases": [
string
]
} |
フィールド |
id |
string
読み取り専用。グループの一意の ID。グループ id は、グループ リクエスト URI の groupKey として使用できます。
|
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 リクエストで編集した場合、編集は無視されます。
|
メソッド |
|
グループを削除する |
|
グループのプロパティを取得します。 |
|
グループを作成します。 |
|
ドメインまたはユーザーキーを指定して、そのドメインまたはユーザーのすべてのグループを取得します(ページネーションあり)。 |
|
グループのプロパティを更新します。 |
|
グループのプロパティを更新します。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 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. |"]]