azure-signalr
azure-signalr copied to clipboard
Adding REST API for delete user from groups
To support some use case scenarios that at times customer want to have a clean start by ignoring all previous/existing user-group mappings, so that they can make sure no unwanted messages got sent.
request to implement the REST API with DELETE /v1/hubs/<hub_name>/users/<user_id> behavior will be remove all existing user-group map for user_id.
e.g. the sequence PUT /v1/hubs/h1/groups/g1/users/u1 PUT /v1/hubs/h1/groups/g2/users/u1 PUT /v1/hubs/h1/groups/g1/users/u2 DELETE /v1/hubs/h1/users/u1 PUT /v1/hubs/h1/groups/g3/users/u1
after this sequence, u1-g1 and u1-g2 will both be removed, so after all these, if send message to g1, only u2 will receive it.
This is a feature request from two large MS internal customers.
Are there updates on timeline?
Hi @joeuy We added an new REST API called remove-user-from-all-groups With this api, you can remove all previous/existing user-group mappings of the user.