> For the complete documentation index, see [llms.txt](https://docs.lenses.io/latest/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lenses.io/latest/devx/5.5/deployment/configuration/iam/authentication/sso-and-saml/google-sso.md).

# Google SSO

Google doesn't expose the groups, or organization unit, of a user to a SAML app. This means we must set up a custom attribute for the Lenses groups that each user belongs to.

## Create a custom attribute for Lenses groups <a href="#create-a-custom-attribute-for-lenses-groups" id="create-a-custom-attribute-for-lenses-groups"></a>

1. Open the [Google Admin console](https://admin.google.com/) from an administrator account.
2. Click the *Users* button
3. Select the *More* dropdown and choose *Manage custom attributes*
4. Click the *Add custom attribute* button
5. Fill the form to add a *Text*, *Multi-value* field for *Lenses Groups*, then click *Add*

## Assign Lenses groups attributes to Google users <a href="#assign-lenses-groups-attributes-to-google-users" id="assign-lenses-groups-attributes-to-google-users"></a>

6. Open the [Google Admin console](https://admin.google.com/) from an administrator account.
7. Click the *Users* button
8. Select the user to update
9. Click *User information*
10. Click the *Lenses Groups* attribute
11. Enter one or more groups and click Save

## Add Google custom SAML app <a href="#add-google-custom-saml-app" id="add-google-custom-saml-app"></a>

> *Learn more about* [*Google custom SAML apps*](https://support.google.com/a/answer/6087519?hl=en)

12. Open the [Google Admin console](https://admin.google.com/) from an administrator account.
13. Click the *Apps* button
14. Click the *SAML apps* button
15. Select the *Add App* dropdown and choose *Add custom SAML app*

## App Details <a href="#app-details" id="app-details"></a>

15. Enter a descriptive name for the Lenses installation
16. Upload a [Lenses icon](https://lenses.io/logos/)

## Download IdPXML file

Configure in **security.conf.**

{% code title="security.conf" %}

```bash
lenses.security.saml.base.url="https://lenses-dev.example.com"
lenses.security.saml.idp.provider="google"
lenses.security.saml.idp.metadata.file="/path/to/GoogleIDPMetadata.xml"
lenses.security.saml.keystore.location="/path/to/keystore.jks"
lenses.security.saml.keystore.password="my_keystore_password"
lenses.security.saml.key.password="my_saml_key_password"
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.lenses.io/latest/devx/5.5/deployment/configuration/iam/authentication/sso-and-saml/google-sso.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
