Repository navigation
Deleting a user from a group seem not to be working through API #15698
|
Hi,
So as I understand, here we delete a user from a group by IDs. It does not seem to work, the user has always the same groups after deletion. Also I raise the point about the API Doc; As you can see: Some endpoints don't have a description contrary to the others: Can someone confirm the API ? Thanks a lot |
Replies: 2 comments
|
The Admin console uses that particular API endpoint when you are on a specific user and do a (In general every single endpoint that is offered by Keycloak is used in some form or another in the Admin. When I'm unsure about certain API endpoints I F12 the next best Feature in the Admin that does the same thing as I want to do and use that as a sanity check/example) I tried it on Keycloak 20 in the UI manually and also programmatically and can confirm that it does indeed work. |
|
my bad. it does work. probably my Uri was incorrect or my client js code. |
The Admin console uses that particular API endpoint when you are on a specific user and do a
Leaveon any group on theirGroupstab.(In general every single endpoint that is offered by Keycloak is used in some form or another in the Admin. When I'm unsure about certain API endpoints I F12 the next best Feature in the Admin that does the same thing as I want to do and use that as a sanity check/example)
I tried it on Keycloak 20 in the UI manually and also programmatically and can confirm that it does indeed work.
Also the endpoint would return 400/500 range status codes when: userId cannot be found, group id cannot be found and if the authenticated thingy doesn't have the necessary realm…