0
    
    
        
                    imranStem created
                    
                    
                    
                
                I am using the Microservice template. I want to get the current user's roles id and organization id in my product microservice.
- ABP Framework version: v7.4.2
- UI Type: Angular
- Database System: EF Core (SQL Server)
- Tiered (for MVC) or Auth Server Separated (for Angular): yes
- Exception message and full stack trace:
- Steps to reproduce the issue:
3 Answer(s)
- 
    0hi You can add the role id and organization id to principalhttps://docs.abp.io/en/abp/latest/Authorization#claims-principal-factory 
- 
    0That is the question, how can I get the Role id and organization id of user? 
- 
    0hi Add your ClaimsPrincipalContributorto theAuthServerproject.In the AuthServerproject, you can get theIdentityUserentity(UserManager).
 
                                