How can i get the current login user organization. I did not find an organizational acquisition method from the interface ICurrentUser. Are there any other places?
You can custom UserClaimsPrincipalFactory to add current user's organization to the claims when login. like this:
https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/AbpUserClaimsPrincipalFactory.cs
Then you can use FindClaimValue extension method to get current user's organization
Or use IdentityUserManager.GetOrganizationUnitsAsync method to query it (cache it if you need performance).
Most helpful comment
You can custom
UserClaimsPrincipalFactoryto add current user's organization to the claims when login. like this:https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/AbpUserClaimsPrincipalFactory.cs
Then you can use
FindClaimValueextension method to get current user's organization