There appears to be an issue with IIQ/IDN when creating new accounts with ‘countryCode’ attribute specified in the provisioning policy. Windows AD defaults the ‘countryCode’ attribute to value=0 upon account creation, but when IQ service trys to add this attribute it fails with “directory attribute already exists”. It seems that I need a
BeforeCreate connector rule to change the operation value form “add” to “set” to properly add the ‘countryCode’ attribute value during account create.
Seems simple enough, but what is missing from this ps1 script?
foreach ($attribute in $requestObject.AttributeRequests) {
if ($attribute.Name -eq "countryCode" -and $attribute.Operation -eq "Add") {
$attribute.Operation = "Set";
}
}
@rajeshs it comes from an identity attribute with a transform. The AD schema has been set to type=‘int’ because that is what Active Directory uses for countryCode. The transform works fine:
I am pretty confident that this can only be resolved by a connector rule to correct the operator during creation. What would be the best method to achieve that?