Role members on Web UI and in "Get a Role" API call

Hello

I open IdentityNow → Admin → Access → Role,

there I search specific role,  and I see role has 509 members.

When I do API call “Get a Role” for that role I get empty list of members, here is fragment from rAPI responce

“membership”: {

“type”:“IDENTITY_LIST”,       “criteria”:null,       “identities”: []    }, Why it happens? Is it temporary error? or known issue?

Hi  @sergiyshpak ,

'Get a role’will give you the details of a specific role when you provide the ID of a specific role in the below end point.

{{baseUrl}}/roles/:id

I am assuming you are trying retrieve the users who are assigned to a specific role.

To do that you have to use 'Identities assigned a Role’by hitting the below end point:

{{baseUrl}}/roles/id/assigned-identitieswhere id =ID of a role

This will give you a list of users who are assigned with a specific role in the below format:

{
“id”: “50864acb7dfgdfg4564390b5f2b32d262a”,
“name”: “John Doe”,
“aliasName”: “john.doe”,
“email”: “john.doe@demo.com”,
“roleAssignmentSource”: “ROLE_MEMBERSHIP”
},
{
“id”: “b563a38d15aerdter353562c9e023c786”,
“name”: “Mike Smith”,
“aliasName”: “mike.smith”,
“email”: “mike.smith@demo.com”,
“roleAssignmentSource”: “ACCESS_REQUEST”
}

Thanks,

Abhi

THANKS!!!

is there a similar API call to get people assigned to Entitlement?

like Person has AD account,

and AD aggregation collects AD entitlements for person,

can I get list of that entitlements with API