Skip to content

Commit 0506ff4

Browse files
authored
feat: add multipass API to delete Users. (#96)
1 parent eb893bd commit 0506ff4

File tree

1 file changed

+13
-0
lines changed
  • libs/foundry-dev-tools/src/foundry_dev_tools/clients

1 file changed

+13
-0
lines changed

libs/foundry-dev-tools/src/foundry_dev_tools/clients/multipass.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,19 @@ def api_delete_group(self, group_id: api_types.GroupId, **kwargs) -> requests.Re
359359
**kwargs,
360360
)
361361

362+
def api_delete_user(self, user_id: api_types.UserId, **kwargs) -> requests.Response:
363+
"""Deletes multipass user.
364+
365+
Args:
366+
user_id: the identifier of the group which to delete
367+
**kwargs: gets passed to :py:meth:`APIClient.api_request`
368+
"""
369+
return self.api_request(
370+
"DELETE",
371+
f"administration/users/{user_id}",
372+
**kwargs,
373+
)
374+
362375
def api_get_group_manager_managers(
363376
self,
364377
group_id: api_types.GroupId,

0 commit comments

Comments
 (0)