Share all details related to your problem, including any error messages you may have received.
Hi Everyone,
There is a requirement from the customer to add a new attribute for all non personal accounts creation. I have create a new attribute under Identity mappings in Global settings. Can anyone please guide me on how to proceed further and make this attribute field value to be required when submitting the account creation.
Share your form xml and I believe you must be having an existing attribute on form identifying the identities as these type or the form will be dedicated for this type of identities?
@iamksatish sorry account creation happening only via the quicklink. The quicklink xml points to the non-personal account creation workflow. Have attached the workflow xml here with this. Non-Personal Account workflow.txt (17.1 KB)
As you have already created the extended attribute just add the attribute details in your “Create Non-Personal Account” Form under the create Form step of workflow
Assuming the name of the field you created is extendedField and a String type , add below
<Field displayName="Extended Field" helpKey="Please provide the value of extended field" name="extendedField" priority="13" required="true" type="string">
</Field>
This will make sure user should provide the value while submitting the form
Now if you want to push to your AD target systems mapped in your workflow given, add the target AD attribute to schema and have your provisioning policy based on this field to push to target
@iamksatish I tried adding the field properties as given below
<Field displayName=“Technical Owner” name=“extendedfield” priority=“13” required='true" type=“Identity”/> but getting the attached error when saving the workflow from debug page. The new attribute is technical owner and type is identity not string. Kindly assist.
Below is what I meant, you have additional / after type=“Identity” and then you have validation script below that, that will not work and looks like you kept this line before Field closure of description
Please find below corrected
<Field displayName="Description" displayType="textarea" name="description" priority="10" type="string">
<ValidationScript>
<Source>
// validation variable comes in as “value”
import sailpoint.tools.Message;
List messages = new ArrayList();
if (value != null) {
if(value.length() > 200) {
Message msg = new Message();
msg.setKey("Description is too long. Max length is 200 characters.");
messages.add(msg);
}
}
return messages;
</Source>
</ValidationScript>
</Field>
<Field displayName="Technical Owner" name="extendedIdentity2" priority="15" required="true" type="Identity"/>