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.

![]()
![]()
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
