Method: members.patch
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בקשת HTTP
PATCH https://admin.googleapis.com/admin/directory/v1/groups/{groupKey}/members/{memberKey}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
groupKey |
string
מזהה את הקבוצה בבקשת ה-API. הערך יכול להיות כתובת האימייל של הקבוצה, כתובת האימייל החלופית של הקבוצה או מזהה הקבוצה הייחודי.
|
memberKey |
string
מזהה את חבר הקבוצה בבקשת ה-API. חבר קבוצה יכול להיות משתמש או קבוצה אחרת. הערך יכול להיות כתובת האימייל הראשית, כתובת האימייל החלופית או המזהה הייחודי של החבר (קבוצה או משתמש).
|
גוף הבקשה
גוף הבקשה מכיל מופע של Member
.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של Member
.
היקפי הרשאה
נדרש אחד מהיקפי ההרשאות הבאים של OAuth:
https://apps-apis.google.com/a/feeds/groups/
https://www.googleapis.com/auth/admin.directory.group
https://www.googleapis.com/auth/admin.directory.group.member
מידע נוסף זמין במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],[],null,["# Method: members.patch\n\nUpdates the membership properties of a user in the specified group. This method supports [patch semantics](https://developers.google.com/workspace/admin/directory/v1/guides/performance#patch).\n\n### HTTP request\n\n`PATCH https://admin.googleapis.com/admin/directory/v1/groups/{groupKey}/members/{memberKey}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `groupKey` | `string` Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID. |\n| `memberKey` | `string` Identifies the group member in the API request. A group member can be a user or another group. The value can be the member's (group or user) primary email address, alias, or unique ID. |\n\n### Request body\n\nThe request body contains an instance of [Member](/workspace/admin/directory/reference/rest/v1/members#Member).\n\n### Response body\n\nIf successful, the response body contains an instance of [Member](/workspace/admin/directory/reference/rest/v1/members#Member).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://apps-apis.google.com/a/feeds/groups/`\n- `\n https://www.googleapis.com/auth/admin.directory.group`\n- `\n https://www.googleapis.com/auth/admin.directory.group.member`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]