Skip to content

Commit 5481b29

Browse files
committed
Add deactivate method
1 parent dd50858 commit 5481b29

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/SynapseAdminHttpApi.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,16 @@ public function registerUser(string $registrationSharedSecret, string $username,
160160
return json_decode($response->getBody()->getContents(), TRUE);
161161
}
162162

163+
/**
164+
* Deactivate a user.
165+
*
166+
* @param string $userId
167+
* User ID.
168+
*/
169+
public function deactivateUser(string $userId): void {
170+
$this->send('POST', "v1/deactivate/$userId");
171+
}
172+
163173
/**
164174
* Query user information.
165175
*

0 commit comments

Comments
 (0)