Creating a rule to generate an incremental unique userID

Hello everyone, I’m creating a rule to generate a unique incremental UserID. I’m creating Rule using java as language and I’m putting the script inside an XML data format. I find this function to check the uniqueness of an attribute, i don’t know if it is correct:

      public boolean isUnique ( String uid) throws GeneralException {
          return !idn.accountExistsByDisplayName(application.getName(), uid);
      }

Also from Sailpoint documentation it is written that I have to give this rule to the SailPoint exper service in order to get that rule available as a trasform inside ISC, is there another way to get that available inside ISC?

Hi @s_tartaglione,

There are multiple ways to check uniqueness this is one of the SailPoint suggested method Account Profile Attribute Generator | SailPoint Developer Community

As IDN is multitenant environment we cannot deploy the code directly to our tenant, We need to raise expert service ticket to deploy our code in XML along with validator screenshot. For running validator script, you may refer this link IdentityNow Rule Validator - Compass

-Vasanth

Thanks you, i’ve already checked my rule trough validator, i’ve to send the mail trough expert service ticket.

1 Like

Hi @s_tartaglione ,
Good Day!

Kindly note that please check this topic.
Also please add promoted attributes for checking uniqueness for uid.

Please let me know if you required any help. If possible please share your code by masking the client data.

Thank you.

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