Idira Identity: Google Workspace users cannot launch SAML application
Symptom
We are using Google Workspace as a directory service and deploying a SAML application to these users, when we test the SAML script with these users we are getting below error
System.ArgumentNullException: Value cannot be null. Parameter name: name at System.Type.GetProperty(String name) at Idaptive.Cloud.Core.DirectoryServices.GoogleDirectoryUser.GetScriptingAttribute(String attributeName) at Idaptive.Cloud.Saas.Data.ApplicationUtils.CommonMapping(IAppHandler handler, DataEntity app, UserToken userToken, Action`1 tracer, Boolean displayOnly, Boolean fetchLocalCredsOnly, String publicKey, Boolean passwordPlaceholder, Boolean hidePassword) at Idaptive.
Cause
The error indicates that Identity failed to get username from "Account Mapping".
For GDS users, the syntax for getting user attribute is different from AD users, using "Directory Service Field" option may not work correctly.
Resolution
For example, if you want the email attribute of GDS users, you should use LoginUser.Username = LoginUser.Email in "Account Mapping Script"
LoginUser.Username = LoginUser.Email;
If you need to set different value depends on directory sources, you name use script like below
if(LoginUser.ServiceType == 'GDS'){
LoginUser.Username = LoginUser.Email;
trace("Service Type: GDS");
} else {
LoginUser.Username = LoginUser.Get('userprincipalname');
trace("Service Type: AD");
}
trace(LoginUser.Username);
Please note that the "Test" button is currently not working for GDS user, you may see below error but you can ignore it at the moment.