Skip to content

Commit 52e9eb6

Browse files
1 parent f8c2430 commit 52e9eb6

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/HangoutsChat/Resource/SpacesMembers.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,21 @@ public function create($parent, Membership $postBody, $optParams = [])
9090
* authentication](https://developers.google.com/workspace/chat/authenticate-
9191
* authorize-chat-user) You can authenticate and authorize this method with
9292
* administrator privileges by setting the `use_admin_access` field in the
93-
* request. (members.delete)
93+
* request. To delete memberships for space managers, the requester must be a
94+
* space manager. If you're using [app
95+
* authentication](https://developers.google.com/workspace/chat/authenticate-
96+
* authorize-chat-app) the application must be the space creator.
97+
* (members.delete)
9498
*
9599
* @param string $name Required. Resource name of the membership to delete. Chat
96100
* apps can delete human users' or their own memberships. Chat apps can't delete
97101
* other apps' memberships. When deleting a human membership, requires the
98-
* `chat.memberships` scope and `spaces/{space}/members/{member}` format. You
99-
* can use the email as an alias for `{member}`. For example,
102+
* `chat.memberships` scope with [user
103+
* authentication](https://developers.google.com/workspace/chat/authenticate-
104+
* authorize-chat-user) or the `chat.memberships.app` scope with [app
105+
* authentication](https://developers.google.com/workspace/chat/authenticate-
106+
* authorize-chat-app) and the `spaces/{space}/members/{member}` format. You can
107+
* use the email as an alias for `{member}`. For example,
100108
* `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the
101109
* email of the Google Chat user. When deleting an app membership, requires the
102110
* `chat.memberships.app` scope and `spaces/{space}/members/app` format. Format:

0 commit comments

Comments
 (0)