how to get a role detail - using the RoleManager

classic Classic list List threaded Threaded
1 message Options
nick nick
Reply | Threaded
Open this post in threaded view
|

how to get a role detail - using the RoleManager

Trying out the OIM API. I am trying to get the details of a role that I see in the identity self console and in the UGP table (OIM table to store Roles).

<<Did not include code initialization of the OimClient object.>>

roleManager = oimClient.getService (RoleManager.class);HashSet mySet = new HashSet();

mySet.add ("KEY");
Role role = roleManager.getDetails ("NAME", "NickRole", mySet);

However, I am getting the exception that the role does not exist.

I tried the same code with minor modifications as shown below but with the same result, any idea?

HashSet mySet = new HashSet();
mySet.add ("UGP_KEY");
Role role = roleManager.getDetails ("UGP_NAME", "NickRole", mySet);


The exception that I am getting is

oracle.iam.identity.exception.NoSuchRoleException: IAM-3056140:Cannot find a role for the criteria: NAME-NickRole.:NAME:NickRole