# Google Workspace 400 saml_invalid_user_id_mapping

The name ID in the request does not fit how the Google SAML app is configured to identify users.

## What to change

- **IT admin:** in the SAML app's _Service provider details_, set _Name ID format_ to `EMAIL` and _Name ID_ to _Basic Information > Primary email_.
- **IT admin:** save and run a test sign-in from the setup portal.

## Related OhAuthCat error

- [`saml_nameid_missing`](/errors/saml_nameid_missing/)

## Source

Written in our own words from the public Google Workspace documentation: [https://knowledge.workspace.google.com/admin/apps/saml-app-error-messages](https://knowledge.workspace.google.com/admin/apps/saml-app-error-messages). Check it for the vendor's current wording; vendors change their pages without notice.
