anarsultanov / keycloak-multi-tenancy

Keycloak extension for creating multi-tenant IAM for B2B SaaS applications.
Apache License 2.0
103 stars 11 forks source link

Problem trying to remove tenant #4

Closed jbergesn closed 9 months ago

jbergesn commented 10 months ago

Hi @anarsultanov, I am having problems when I try to delete a created tenant. The error seems to be caused by the existing relationships between the tables, and when trying to delete a tenant it tells me that there are relationships with other tables on the record that I am trying to delete due to the foreign key constraint.

I attach an image where you can see the error it is giving me. image

Do you know if I'm doing something wrong?

Thank you very much in advance

anarsultanov commented 10 months ago

Hi @jbergesn,

It seems your issue may be related to https://github.com/anarsultanov/keycloak-multi-tenancy/issues/2.

To potentially fix it, please try rebuilding the extension from the latest main branch or use the most recent release. Please let me know if it resolves your problem.