Hello @LearningStar
You are right ! Unique Attribute generator doesn’t work on multiple attributes . Also , it only works on an attribute which is Account ID . Refer to the similar usecase.
Hello Everyone !
The following is the requirement :
Generate a unique sAMAccountName [which will check for patterns] while creating profile .
sAMAccountName is not the Account ID.
Generate Unique DN - DN is account ID .
While DN works fine , sAMAccountName isn’t working . As per my understanding , username generator can check for uniqueness only if the attribute is accountId.
So the question is :
Can we use Username Generator Transform on multiple attributes ? (which is not account id) …
So the solution I figured out is to proceed with cloud rule . The following the cloud rule that might help you in building yours.
Here you go , this built on your logic . This is cloud rule of type : AttributeGenerator
Build’s a pattern of your logic
Checks if it is unique
If not unique the rule throws error
you can modify the code accordingly to resolve uniqueness by adding multiple patterns.
import sailpoint.tools.GeneralException;
import sailpoint.object.Identity;
import sailpoint.api.SailPointContext;
import org.apache.commons.lang.StringUtils;
import java.util.Random;
public String generateUsername(String f…
Hope this helps !
Thanks
Sid