Unable to change email when name has been changed in attached form

Which IIQ version are you inquiring about?

8.3
VDOT Rename Identity Entry Form.xml (3.3 KB)

Share all details about your problem, including any error messages you may have received.

Whenever our group needs to do a name change, but leave the email address the same, we use the attached form to do it. But, it gives an error stating: “The entered Email, [email protected], already exists. Please enter a new Email.”


This should not be happening. What can I change in the code in the xml file to remove that? I have added the form and the rule as well.
VDOT Validate Email Rule.xml (3.5 KB)

When renaming an identity and you want to keep the same email, you should avoid using the following code to check whether the email already exists:

 else 
 {
 logger.trace("Build query with value: " + value); 
 QueryOptions qo = new QueryOptions(); 
 qo.addFilter(Filter.eq("email", value)); 
 logger.debug("Get count with query: " + qo); 
 int count = context.countObjects(Identity.class, qo); logger.debug("Check the count: " + count);
 if(count > 0) 
 { logger.error("Email already Exists - " + value); messages.add("The entered Email, " + value + ", already exists. Please enter a new Email."); 
 } 
 } 

But we need this code for another form for actually creating identities in Sailpoint. Is there a way to show in the code to use that for only the other form?

you can check the name of form with form.getName().
If the name is VDOT Rename Identity Entry Form avoid the control

Hi @derrickthomasvdot,

Add the one more condition in the validation rule . If the form title is “Rename User”, it will allow the existing email. Try with this rule.

VDOT Validate Email Rule.xml (3.6 KB)

Regards,
Arun

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