# Google Workspace Setup

## Configuring SSO in Google Workspace <a href="#configuring-sso-in-g-suite" id="configuring-sso-in-g-suite"></a>

1. Login to [admin.google.com](https://admin.google.com/).
2. Click on **Apps**.
3. Click on **SAML apps**.
4. Create new SAML app service by clicking the **+** button in the bottom right corner.
5. Click **Setup my own custom App** at the bottom of the popup.
6. Click the **Download** button next to the generated Certificate.
7. Click **Next**.
8. Name the new SAML configuration and set a *Description* if desired.
9. Enter "<https://ems.bluefletch.com/\\_\\_/auth/handler>" in the *ACS URL* field. This will also be auto-filled as the *ACS URL (Callback URL)* in your [BlueFletch Portal SSO Configuration](/bluefletch-enterprise/product-guides/portal/admin/single-sign-on/portal-setup.md).
10. Enter "saml.\[*organization's login domain for Azure*]" (e.g. *saml.bluefletch*) for the *Entity ID* field. This will also be *Provider ID* & *SP Entity ID* in your [BlueFletch Portal SSO Configuration](/bluefletch-enterprise/product-guides/portal/admin/single-sign-on/portal-setup.md).
11. Click **Next**.
12. Click **Add New Mapping** and enter "FirstName" in the attribute input. Select *Basic Information* from the first drop down and *First Name* from the last drop down.
13. Click **Add New Mapping** and enter "LastName" in the attribute input. Select *Basic Information* from the first drop down and *Last Name* from the last drop down.
14. If mapping Google [groups to Portal roles](/bluefletch-enterprise/product-guides/portal/admin/single-sign-on/portal-setup.md#idp-group-mappings), add a variable named "Groups" (Portal's code checking for this variable is case-sensitive, so be sure it is spelled with a capital "G").
15. Click **Finish**.
16. Retrieve the metadata XML from Google to use in [Portal Setup](/bluefletch-enterprise/product-guides/portal/admin/single-sign-on/portal-setup.md), or provide back to BlueFletch.


---

# Agent Instructions: 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:

```
GET https://docs.bluefletch.com/bluefletch-enterprise/product-guides/portal/admin/single-sign-on/g-suite-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
