Getting OIM Admin Roles for a user using API

Using below code module, we can get list of admin roles assigned to an User in OIM :

@Parameter userKey : Strictly user key. Passing userId may not result / locate user.

protected List getUserAdminRoles(String userKey)
AdminRoleService adminRoleService = oimClient.getService(AdminRoleService.class);
List adminRoles = adminRoleService.getAdminRolesForUser(userKey, null);

return adminRoles;

Method Desciption :


java.util.List getAdminRolesForUser(java.lang.String userId,
java.util.Map paramsMap)
Get the list of admin roles for passed userId
userId –
– List of AdminRoles for the passed user.

Leave a Reply

Your email address will not be published. Required fields are marked *