How do we get the rights of a user in Sailpoint? | Community
Skip to main content
October 16, 2020
Solved

How do we get the rights of a user in Sailpoint?

  • October 16, 2020
  • 2 replies
  • 920 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by BrianKasingli

Please refer to the SailPoint Java Docs, https://developer.sailpoint.com/docs/extensibility/rules/java-docs/

 

Authentication More docs here: https://developer.sailpoint.com/docs/api/authentication/
Authorization More docs here: https://developer.sailpoint.com/docs/api/authorization/

 

This is a custom service, and you'd need to understand the documentation to get started. The links I provided includes code examples for you to follow through.

 

2 replies

BrianKasingli
Community Advisor and Adobe Champion
BrianKasingliCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
January 22, 2025

Please refer to the SailPoint Java Docs, https://developer.sailpoint.com/docs/extensibility/rules/java-docs/

 

Authentication More docs here: https://developer.sailpoint.com/docs/api/authentication/
Authorization More docs here: https://developer.sailpoint.com/docs/api/authorization/

 

This is a custom service, and you'd need to understand the documentation to get started. The links I provided includes code examples for you to follow through.

 

kautuk_sahni
Community Manager
Community Manager
June 26, 2025

@priyasony Just checking in — were you able to resolve your issue?
We’d love to hear how things worked out. If the suggestions above helped, marking a response as correct can guide others with similar questions. And if you found another solution, feel free to share it — your insights could really benefit the community. Thanks again for being part of the conversation!

Kautuk Sahni