How t get user Permission in the user Profile using a custom SPI #29187
Unanswered
taru-j-a-i-n
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Do you want any user to see what permissions they have? If so, what are you trying to accomplish with this custom SPI? Because "retrieving user permissions" doesn't make much sense unless you're strictly using role-based policies: just imagine a resource you can only accessed at a certain time of the day. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I want to see the User permission in the user profile of the user but there is no direct method to do so please provide the direct method or the solution to get User permissions .
the output must have the Pwrmissions as not null and not empty currently it is coming as an empty list as shown below: {"id":"094073fb-0f5e-419f-a582-d25b8b5b5903","email":"admin@admin.com","firstName":"Admin","lastName":"listener","userRoles":["default-roles-portal-realm","create-client","uma_protection","read-token","view-profile","view-groups","view-consent","view-applications","manage-consent","manage-account-links","delete-account"],"userPermissions":[],"claims":null}
**I tried this method but it is not giving the solution: **
public List getPermissions(UserModel user) {
Beta Was this translation helpful? Give feedback.
All reactions