I’m trying to get list of roles in below structured format. But i’m unable to get groups using expression language. Can someone help me achieve this?
"group_access": {
"roles": [admin, consumer]
},
But I’m able to achieve below one were value is still null using this expression { "roles": appuser.role }
output :
"group_access": {
"roles": null
},
I tried appuser.roles, user.role, etc but nothing working. But when i use claim type group and use groups: matches regex .*
its works fine while the structure i want is not achieved. how can I achieve the required structure with proper values?
Thanks