Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

Done! The issue is #4156 with the title "Feature Request: Support Multi-Organization Tenancy for a Single User" .

I appreciate if you consider to implement it to allow this new behavior in Casdoor.

There is a requirement: a hospital A uses the services of a doctor. Hospital B also uses de services of the same doctor. The doctor can work for hospital A or B. Hospital A can send a invitation link to doctor to be part of it and Hospital B can do the same.

In Casdoor, the doctor can be part of a common Organization (Org Common), the Hospital A can be other organization (Org Hosp A) and Hospital B another organization (Org Hosp B).

¿ how a created user in organization A can be used also in organization B ?

Yes, i can confirm the fix is in the v2.50.0

Now, there is a properties map in the user claims. It only appears with the normal Jwt. When i used JwtCustom properties it doesn't appears in the token even if i specify the Properties attribute. 🤔

I found that the org id is been retrieved just in the case of grant_type 'password' , sending the client id and secret and user and password.

So , my previous question is been answered.

When i use /api/login/oauth/access_token with a application client_id and client_secret to get the access token , how to get the application's organization id?