An example script
This sample user map script creates a user name by adding the application name to the current user name. The script re-assigns the result back to LoginUser.Username
.
LoginUser.Username = LoginUser.Username + “#” + Application.Get(“Name”);
When the user's user name is “barney.blanton” wants to log into the web application named “Busfare,” the script creates the user name “barney.blanton#Busfare”. The script re-assigns this created user name back to LoginUser.Username
, where the custom SAML script will find the user name later and use it for the SAML assertion.