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.
Solved! Go to Solution.
Views
Replies
Total Likes
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.
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.
@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!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies