Single Sign-On (SSO) in ServiceNow

CAO
Tera Contributor

I am setting up Single Sign-On (SSO) in ServiceNow, and the user names from the external system are being imported into the ServiceNow 'last name' field through a transform map. I have created a 'before' script to clear the user's first name field by setting source.u_name = '';. However, even after re-logging in, the user’s first name is not getting updated to be empty. Could you please help me understand what might be going wrong?

1 REPLY 1

Christopher Sik
Kilo Guru

Why use a script at all? See if your source data set includes fields separate fields that store first name and last name values. For example in Active Directory, the sn attribute stores the last name value and the givenname attribute stores the last name value. So if AD was your source, you could just include the sn field in your transform map and map it to the last name field in ServiceNow.