Kullanıcı kimlik doğrulaması İstekte useAdminAccess alanını ayarlayarak bu yöntemin kimliğini doğrulayabilir ve yönetici ayrıcalıklarıyla yetkilendirebilirsiniz.
Alan yöneticilerinin üyeliklerini silmek için istek sahibinin alan yöneticisi olması gerekir. Uygulama kimlik doğrulaması kullanıyorsanız alanı oluşturan uygulama olmalıdır.
Zorunlu. Silinecek üyeliğin kaynak adı. Sohbet uygulamaları, gerçek kullanıcıların veya kendi üyeliklerini silebilir. Sohbet uygulamaları, diğer uygulamaların üyeliklerini silemez.
Gerçek kullanıcı üyeliği silinirken chat.memberships kapsamı (kullanıcı kimlik doğrulaması) veya chat.memberships.app kapsamı (uygulama kimlik doğrulaması) ve spaces/{space}/members/{member} biçimi gerekir. E-postayı {member} için takma ad olarak kullanabilirsiniz. Örneğin, spaces/{space}/members/example@gmail.com (example@gmail.com, Google Chat kullanıcısının e-posta adresidir).
Bir uygulama üyeliğini silerken chat.memberships.app kapsamı ve spaces/{space}/members/app biçimi gerekir.
Biçim: spaces/{space}/members/{member} veya spaces/{space}/members/app.
Sorgu parametreleri
Parametreler
useAdminAccess
boolean
İsteğe bağlı. true olduğunda yöntem, kullanıcının Google Workspace yönetici ayrıcalıkları kullanılarak çalıştırılır.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-04-04 UTC."],[[["Deletes a specified membership from a Google Chat space, allowing removal of human users or Chat apps."],["Requires specific OAuth scopes depending on the type of membership being deleted and whether admin privileges are used."],["Supports app and user authentication, with an option for administrator approval in Developer Preview for app authentication."],["Uses a `DELETE` request with the membership's resource name specified in the path."],["Provides an optional `useAdminAccess` query parameter to utilize administrator privileges when deleting human memberships."]]],["This API action deletes a membership using a `DELETE` request to `https://chat.googleapis.com/v1/{name=spaces/*/members/*}`. It requires specifying the membership's resource name in the `name` path parameter. Deleting human memberships requires the `chat.memberships` scope, while deleting app memberships requires the `chat.memberships.app` scope. Administrators can use `useAdminAccess` query parameter to operate with elevated privileges. The request body should be empty, and a successful response returns a `Membership` instance. Necessary authorization scopes include `chat.app.memberships`, `chat.admin.memberships`, `chat.import`, `chat.memberships`, and `chat.memberships.app`.\n"]]