General discussion

  • Creator
    Topic
  • #2140683

    HOW DO WE GET THE RIGHTS OF A USER IN SAILPOINT?

    by priyasony ·

    Tags: 

    I’m trying to write a policy violation in Sailpoint. But I don’t know how to get the rights of the user who is asking a new right. I’ve tried this:

    List links1 = null;

    IdentityService service = new IdentityService(context);

    Application app1 = context.getObjectByName(Application.class, “Autres”);

    try { links1 = service.getLinks(identity, app1);

    } catch (Exception e) { System.out.println(e.getMessage());

    e.printStackTrace();

    } List DUList1 = new ArrayList();

    if(links1.size() != 0){ Object DUObj = links1.get(0).getAttribute(“DU”);

    if(DUObj != null){ if (DUObj instanceof String) DUList1.add((String) DUObj);

    else DUList1.addAll((List) DUObj);

    } }

    It was supposed to return the list of the rights that the user has and the rights that he is asking. But it doesn’t work.

You are posting a reply to: HOW DO WE GET THE RIGHTS OF A USER IN SAILPOINT?

The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our Community FAQs for details. All submitted content is subject to our Terms of Use.

All Comments

  • Author
    Replies
Viewing 0 reply threads