Hi @ipobeidi I am doing well, thanks. Hope you are well too.
You JSON code slightly worked (as now it returns only roles) but not fully (as it returns both dynamic and requestable roles) of the identities instead of only requested roles. I’ve tried the JSON below but still it doesn’t return only requested roles.
@nhassan , gald that worked, however if you want to query on more thing , you need to include inside the “query” object, so if you want the requestetable, that would be :
...
"query": "type:ROLE AND requestable:true",
.....
“requestable:true” worked fine but I found below differences in the real value when making API call to the two different endpoints i.e.
If I use search endpoint (POST) then I get ‘false’ value for all access (roles/access profiles) which is not correct. It means even if the roles/access profiles are requestable, still it returns false value.
But, if I use v3 or beta List Roles endpoint (GET), then I get the desired (actual) value of roles/access profiles.
In my case, I need to use search API to return the requestable roles or access profiles but as I said, it doesn’t return the correct value. Any thoughts on this?
How should I amend the JSON to also returns id and displayName of the identities along with their requested roles?