Closed oleaasbo closed 10 months ago
Hi @oleaasbo
Thank you for reporting this issue. I've reproduced the problem, and it seems that the error is happening because the extension is trying to delete a user when they're not part of any other tenants.
However, I'm not entirely certain if this is the expected behavior. There are cases where users might not be associated with any specific tenant, like for system-wide purposes. To fix the problem, I'll remove the user deletion during the membership removal process.
Still, I'd like to hear your thoughts on this. If you have any suggestions or insights, please share them.
Please take a look at the recent updates made to resolve this issue. If these changes resolve the problem for you, I'll create a new release version. Currently, I'll keep this issue open.
My issue has been resolved! I don't want the user to be deleted. I have none tenant users as well!
I get "Internal Server Error" when using the DELETE /tenants/${tenantId}/memberships/${memberId} endpoint on a fresh member.
Keycloak version 22.0.1 Keycloak-multi-tenancy version 22.0.0
Steps to reproduce:
The keycloak logs shows error log: