I'm attempting to write an expression that returns an AD attribute value. I'm currently using "active_directory_1.externalId", but I now need to extend the expression to cover users from different AD domains. Is there a way to craft an expression that will return the value for externalID from whichever AD the user is in?
"hasDirectoryUser() ? findDirectoryUser().active_directory_1.externalId : null" --check if user has an Active Directory assignment, and if so, return their Active Directory "active_directory_1.externalId"