Idira Identity: Google Workspace SAML authentication is not working with 404 or server error
107
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 16:08 PM
Symptom
We are using CyberArk Identity SAML Catalogue for Google Workspace but it is not working even we followed the documentation.
It is showing 404 Error or a Server error, the requested stopped at google.com/a/<company identifier>/acs
Environment
20.7;21.1;21.2;21.3;21.4;21.5;21.6;21.7;21.8;21.9;21.10;21.11;21.12;25.9
Cause
By default Identity is using acs url 'https://www.google.com/a/<company identifier>' as RelayState
Google appears to have deprecated the URL without any notification, which our configuration is built to use. And per Google, their public documentation is currently outdated and suggested to use other urls as RelayState
Resolution
Please change the RelayState of the Google Workspace App under SAML Response Script
This is the default script:
setIssuer(Issuer);
setSubjectName(UserIdentifier);
var Audience = 'https://www.google.com/a/' + CorpIdentifier;
setAudience(Audience);
ServiceUrl = Audience + '/acs';
setRecipient(ServiceUrl);
setSignatureType('Response');
setRelayState(Audience);
setHttpDestination(ServiceUrl);
If you are expecting the Google Workspace app to take you to https://workspace.google.com please replace the script found under the SAML Response tab of the app with this:
setIssuer(Issuer);
setSubjectName(UserIdentifier);
var Audience = 'https://www.google.com/a/' + CorpIdentifier;
setAudience(Audience);
ServiceUrl = Audience + '/acs';
setRecipient(ServiceUrl);
setSignatureType('Response');
//setRelayState(Audience);
setHttpDestination(ServiceUrl);
var Relay = 'https://workspace.google.com/dashboard';
setRelayState(Relay);
If you are expecting the Google Workspace app to take you to https://admin.google.com please replace the script found under the SAML Response tab of the app with this:
setIssuer(Issuer);
setSubjectName(UserIdentifier);
var Audience = 'https://www.google.com/a/' + CorpIdentifier;
setAudience(Audience);
ServiceUrl = Audience + '/acs';
setRecipient(ServiceUrl);
setSignatureType('Response');
//setRelayState(Audience);
setHttpDestination(ServiceUrl);
var Relay = 'https://admin.google.com/';
setRelayState(Relay);