RoleVault error in IDM 4.5


Hi

After upgrading to IDM 4.5 some RoleVault functions behave differently.

I have a script which uses
RoleVault.getRolesToGroupAssignments(groupName) to get roles assigned to
the selected group.
The I use RoleVault.getRolesToRoleAssignments(roleDN) to get childroles
for the role returned.

I get the role assigned to the group, but getRolesToRoleAssignments
returns an error:
> 'Error: Error occured evaluating a RoleVault service, refer to embedded
> exception for further details.'


Sample code:
// get roles assigned to the group
roleobj = RoleVault.getRolesToGroupAssignments(groupDN);
// get first role and convert object to string
roleDN = roleobj.get(0).getTargetDn() "";
//get childroles of the role
childRole = RoleVault.getRolesToRoleAssignments(roleDN);

I could really use som help.

- martin


--
moldin
------------------------------------------------------------------------
moldin's Profile: https://forums.netiq.com/member.php?userid=118
View this thread: https://forums.netiq.com/showthread.php?t=53207

  • On 03/27/2015 11:07 AM, moldin wrote:
    >
    > Hi
    >
    > After upgrading to IDM 4.5 some RoleVault functions behave differently.
    >
    > I have a script which uses
    > RoleVault.getRolesToGroupAssignments(groupName) to get roles assigned to
    > the selected group.
    > The I use RoleVault.getRolesToRoleAssignments(roleDN) to get childroles
    > for the role returned.
    >
    > I get the role assigned to the group, but getRolesToRoleAssignments
    > returns an error:
    >> 'Error: Error occured evaluating a RoleVault service, refer to embedded
    >> exception for further details.'

    >
    > Sample code:
    > // get roles assigned to the group
    > roleobj = RoleVault.getRolesToGroupAssignments(groupDN);
    > // get first role and convert object to string
    > roleDN = roleobj.get(0).getTargetDn() "";
    > //get childroles of the role
    > childRole = RoleVault.getRolesToRoleAssignments(roleDN);
    >
    > I could really use som help.
    >
    > - martin
    >
    >

    Greetings Martin,
    What version did you upgrade from?

    --

    Sincerely,
    Steven Williams
    Lead Software Engineer
    NetIQ