Provision custom attribute values to AD

Dear community,

could I ask for your help? I synchronize few attributes from HR database to User section Custom Information. Here for example attribute called SGid.

Then I created a Metadata Element for the Default User and linked it to this attribute on the user. I checked database where it’s visible that it’s linked to users and got metadata ID.

obrazek

obrazek

obrazek

The problem is, that I’m not able to get the attribute value via Policy Map groovy script and provision it to AD. All my attempts have failed, and it always returned an empty value.
I must admit that I am not a Java developer, and I am trying to troubleshoot everything with the help of GPT. Could I ask for advice on how to correctly get the attribute value using Groovy?

Thank you in advance.
Jan

Hello @Bizz,

To help troubleshoot this, could you please share the following:

  1. The policy map script being used.

  2. The attribute name that is used to send this value to AD.

Additionally, I will share a sample policy map script below; you will need to replace “CUSTOM_ATTR” with the custom attribute name from the user profile.

customattributeprovisioning.groovy (3.3 KB)

Thanks,

Ameet