The UserAdmin service has a method getRolePermissions that does exactly this.
WSO2 Identity Server Get role permissions
-
07-12-2021 - |
Question
I'm loading user claims using org.wso2.carbon.user.core.UserStoreManager. In the claim information i have the list of roles for the current user. Is there a way to programatically get the assigned permissions for each role?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow