As part of our implementation, we are generating usernames and emailId for all new users and want to check for uniqueness within IdentityNow. We are thinking of going for a IdentityAttribute Rule which can be mapped to the attributes on identity profile. Two questions here:
- If we have to use the below method of IdnUtil wrapper class, the first input parameter must be searchable and non-null. Is it safe to assume that “uid” and “email” attributes of Identity are by default searchable?
public int countIdentitiesBySearchableIdentityAttribute(String attributeName, String operation, String value)
- Has anyone tried this approach of checking uniqueness in IdentityAttribute rule and is successful?
Any pointers here would be of great help.