Policy map - Obtaining internal OpenIAM User ID

Hello!
Is there a way to get the internal user ID from openIAM as a attribute map for a managed system via the policy map? I cannot find such a value in the available values in the IDM value category.

Thanks in advance!
Cristhian

Hello Cristhian,

Thanks for the question. I just need clarification on one part to help: are you referring to the system-generated user id or another internal identifier?

Thanks,
Ameet

Hello Ameet!
Yes, I might need the system generated user id to search groups via API, that saves me one API request (user search)

Thanks

Hello Cristhian,

In order to pass the system generated user ID, you would need to use groovy script as we don’t have this IDM value in the policy map. I am attaching a script which can assist with this.
UserId.groovy (919 Bytes)

Please let me know if you have any other questions.