|
| 1 | +--- |
| 2 | +title: Enabling Google Workspace SSO connections with your OVHcloud account |
| 3 | +slug: connect-sso-googleworkspace |
| 4 | +excerpt: "Learn how to associate your Google Workspace service with your OVHcloud account via SAML 2.0" |
| 5 | +section: Advanced Usage |
| 6 | +order: 02 |
| 7 | +updated: 2023-03-30 |
| 8 | +--- |
| 9 | + |
| 10 | +**Last updated 30th March 2023** |
| 11 | + |
| 12 | +## Objective |
| 13 | + |
| 14 | +You can use unique **single sign-on** (SSO) to sign in to your OVHcloud account. To enable these connections, your account and Google Workspace accounts have to be configured using Security Assertion Markup Language (SAML) authentication. |
| 15 | + |
| 16 | +**This guide explains how to associate your OVHcloud account with an external Google Workspace service.** |
| 17 | + |
| 18 | +## Requirements |
| 19 | + |
| 20 | +- Being an administrator of a Google Workspace service |
| 21 | +- An [OVHcloud account](https://docs.ovh.com/asia/en/customer/create-ovhcloud-account/) |
| 22 | +- Access to the [OVHcloud Control Panel](https://ca.ovh.com/auth/?action=gotomanager&from=https://www.ovh.com/asia/&ovhSubsidiary=asia) |
| 23 | + |
| 24 | +## Instructions |
| 25 | + |
| 26 | +> [!primary] |
| 27 | +> |
| 28 | +> In order for a service provider (i.e. your OVHcloud account) to establish an SSO connection with an identity provider (i.e. your Google Workspace service), the key is to establish a mutual trust relationship by registering the SSO connection in both services. |
| 29 | +> |
| 30 | +
|
| 31 | +### Registering OVHcloud into Google Workspace |
| 32 | + |
| 33 | +Your Google Workspace acts as an identity provider. Requests to authenticate your OVHcloud account will only be accepted if you have first declared it as a trusted third party. |
| 34 | + |
| 35 | +This means that it must be added as `Web and mobile apps`. |
| 36 | + |
| 37 | +Log in to the [Google Workspace](https://admin.google.com) administration interface with your administrator account. |
| 38 | + |
| 39 | +Go to `Apps`{.action} then `Web and mobile apps`{.action}. |
| 40 | + |
| 41 | +{.thumbnail} |
| 42 | + |
| 43 | +Click `Add app`{.action} then `Add custom SAML app`{.action}. |
| 44 | + |
| 45 | +In the "App details" step, add a name for this interconnection, **OVHcloud** for example. Click `Continue`{.action}. |
| 46 | + |
| 47 | +{.thumbnail} |
| 48 | + |
| 49 | +In the step "Google Identity Provider details", download the metadata file by clicking `Download metadata`{.action} then click `Continue`{.action}. |
| 50 | + |
| 51 | +{.thumbnail} |
| 52 | + |
| 53 | +In the step "Service provider details", complete the `ACS URL` and `Entity ID` fields with the values for your region: |
| 54 | + |
| 55 | +- EU region: **ACS URL**: `https://www.ovhcloud.com/eu/auth/saml/acs` and **Entity ID**: `https://www.ovhcloud.com/eu/auth/` |
| 56 | +- CA region: **ACS URL**: `https://www.ovhcloud.com/ca/auth/saml/acs` and **Entity ID**: `https://www.ovhcloud.com/ca/auth/` |
| 57 | + |
| 58 | +Click `Continue`{.action}. |
| 59 | + |
| 60 | +{.thumbnail} |
| 61 | + |
| 62 | +In the "Attribute mapping" step, add the following mapping: |
| 63 | + |
| 64 | +- **First Name**: Name |
| 65 | +- **Last Name**: Surname |
| 66 | +- **Primary email**: E-mail Address |
| 67 | + |
| 68 | +Click `Finish`{.action}. |
| 69 | + |
| 70 | +{.thumbnail} |
| 71 | + |
| 72 | +Enable access to this application by clicking `OFF for everyone`{.action} in the "User access" section. Click `ON for everyone`{.action} then the `SAVE`{.action} button. |
| 73 | + |
| 74 | +{.thumbnail} |
| 75 | + |
| 76 | +{.thumbnail} |
| 77 | + |
| 78 | +> [!primary] |
| 79 | +> |
| 80 | +> Adding application access to users can take several hours to take effect. |
| 81 | +> |
| 82 | +
|
| 83 | +Your Google Workspace service now trusts OVHcloud as a service provider. The next step is to ensure that the OVHcloud account trusts your Google Workspace as an identity provider. |
| 84 | + |
| 85 | +### Registering Google Workspace into the OVHcloud account and configuring the connection |
| 86 | + |
| 87 | +To add Google workspace as a trusted identity provider, you need to provide the identity provider metadata in the [OVHcloud Control Panel](https://ca.ovh.com/auth/?action=gotomanager&from=https://www.ovh.com/asia/&ovhSubsidiary=asia). |
| 88 | + |
| 89 | +Once logged in, click your profile at the top right. |
| 90 | + |
| 91 | +{.thumbnail} |
| 92 | + |
| 93 | +Click on your name to access your profile management page. |
| 94 | + |
| 95 | +{.thumbnail} |
| 96 | + |
| 97 | +Open the `User Management`{.action} tab. |
| 98 | + |
| 99 | +{.thumbnail} |
| 100 | + |
| 101 | +Click the `SSO Login`{.action} button. |
| 102 | + |
| 103 | +{.thumbnail} |
| 104 | + |
| 105 | +Fill in the XML metadata of your Google Workspace service. Enter `Group` as the "Group Attribute Name". Click `Confirm`{.action}. |
| 106 | + |
| 107 | +{.thumbnail} |
| 108 | + |
| 109 | +Now you need to retrieve your Google Workspace as identity provider, as well as default groups. |
| 110 | + |
| 111 | +{.thumbnail} |
| 112 | + |
| 113 | +For more information, click on the link under “SSO Service URL”. |
| 114 | + |
| 115 | +{.thumbnail} |
| 116 | + |
| 117 | +The `...`{.action} button allows you to update or delete the SSO, and view its details. |
| 118 | + |
| 119 | +{.thumbnail} |
| 120 | + |
| 121 | +Your Google Workspace is now considered a trusted identity provider. However, you still need to add groups to your OVHcloud account. |
| 122 | + |
| 123 | +> [!warning] |
| 124 | +> If you try to connect via SSO at this point, you will probably receive a `Not in valid groups` error message. |
| 125 | +> |
| 126 | +> That is because your OVHcloud account checks whether the authenticating user belongs to an existing group on the account. |
| 127 | +> |
| 128 | +
|
| 129 | +To resolve this, authorise the groups that will be transmitted from Google Workspace to OVHcloud. These groups are the same as those used to categorise your users. |
| 130 | + |
| 131 | +To do this, log on to the [Google Workspace](https://admin.google.com) administration interface with your administrator account. |
| 132 | + |
| 133 | +Go to `Apps`{.action} then `Web and mobile apps`{.action}. |
| 134 | + |
| 135 | +{.thumbnail} |
| 136 | + |
| 137 | +Click on the line for the application you added in the previous step. |
| 138 | + |
| 139 | +{.thumbnail} |
| 140 | + |
| 141 | +Click `SAML attribute mapping`{.action} to edit the mapping of information shared between Google Workspace and OVHcloud. |
| 142 | + |
| 143 | +{.thumbnail} |
| 144 | + |
| 145 | +In the "Group membership (optional)" section, add any groups that you want to allow to connect to OVHcloud. In the "App attribute" field, enter `Group`. |
| 146 | + |
| 147 | +You must then assign **roles** to these user groups at OVHcloud. Otherwise, your OVHcloud account does not know what the user is allowed to do and, by default, no rights are assigned. |
| 148 | + |
| 149 | +{.thumbnail} |
| 150 | + |
| 151 | +From the OVHcloud Control Panel, add a group by clicking the `Declare a group`{.action} button and filling in the fields: |
| 152 | + |
| 153 | +- **Group name**: Group name within Google Workspace |
| 154 | +- **Role**: Level of rights granted to this group |
| 155 | + |
| 156 | +{.thumbnail} |
| 157 | + |
| 158 | +{.thumbnail} |
| 159 | + |
| 160 | +You can then verify that the group is added to your OVHcloud account in the "Groups" section: |
| 161 | + |
| 162 | +{.thumbnail} |
| 163 | + |
| 164 | +When you later log in with a user from the **Intern** group, your OVHcloud account will recognise that the user has the role "UNPRIVILEGED" specified by his group. |
| 165 | + |
| 166 | +You will then be able to log out of your account and log back in with your Google Workspace as an identity provider. |
| 167 | + |
| 168 | +### Connecting via SSO |
| 169 | + |
| 170 | +On [the OVHcloud login page](https://ca.ovh.com/auth/?action=gotomanager&from=https://www.ovh.com/asia/&ovhSubsidiary=asia), enter your [login](https://docs.ovh.com/asia/en/customer/create-ovhcloud-account/#what-is-my-nic-handle) followed by **/idp** without a password and click the `Login`{.action} button. |
| 171 | + |
| 172 | +{.thumbnail} |
| 173 | + |
| 174 | +You are then redirected to your Google Workspace login page. Enter the login and password for a user of your Google Workspace, then click the `Sign in`{.action} button. |
| 175 | + |
| 176 | +{.thumbnail} |
| 177 | + |
| 178 | +You are now logged in with the same customer ID, but through your Google Workspace user. |
| 179 | + |
| 180 | +{.thumbnail} |
| 181 | + |
| 182 | +## Go further |
| 183 | + |
| 184 | +[Creating an OVHcloud account](https://docs.ovh.com/asia/en/customer/create-ovhcloud-account/) |
| 185 | + |
| 186 | +[Securing my OVHcloud account and managing my personal information](https://docs.ovh.com/asia/en/customer/all-about-your-username/) |
| 187 | + |
| 188 | +[Setting and managing your account password](https://docs.ovh.com/asia/en/customer/manage-password/) |
| 189 | + |
| 190 | +[Securing your OVHcloud account with two-factor authentication](https://docs.ovh.com/asia/en/customer/secure-account-with-2FA/) |
| 191 | + |
| 192 | +Join our community of users on <https://community.ovh.com/en/>. |
0 commit comments