azure-signalr icon indicating copy to clipboard operation
azure-signalr copied to clipboard

Adding REST API for delete user from groups

Open sffamily opened this issue 6 years ago • 2 comments

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.

sffamily avatar Feb 26 '19 08:02 sffamily

Are there updates on timeline?

joeuy avatar Apr 13 '19 05:04 joeuy

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.

wanlwanl avatar Aug 05 '19 07:08 wanlwanl