Query on IDNRuleUtil

It is mention in this doc that we can use uid as an argument for getIdentityById.

  1. Which I have confusion as the method name says getIdentityById. So, will this be hashcode id like 2c91802882d6b96f0682d9ef7b9e6g94(idn.getIdentityById(“2c91802882d6b96f0682d9ef7b9e6g94”)); or it will pull the information from uid/Sailpoint Username.

sailpoint.rule.Identity foundIdentity = idn.getIdentityById(“uid”);

  1. Also, can see there no method called getAttribute(“text”) for sailpoint.rule.Identity instead getAttributes is present whose return type is Map.

String email = foundIdentity.getAttribute(“email”);

Checked getAttributes() in java doc.

Java Doc: Java Docs | SailPoint Developer Community

java.util.Map<java.lang.String,java.lang.Object> getAttributes()

                                                                         Get the raw attributes of the User.

Screenshot attached.

So, can anyone please suggest on above two queries.

1 Like

Hi @Amrit1897 ,

1 : it will be the Hash code which is id you have added in the reference.

2 : If you see the method name is getAttribute which will return the object directly. Have a look at the java docs again

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.