# Google Workspace

## How to add the Mago application in your Google Workspace domain and grant access

When using Mago with Google Workspace room resources and users, the Mago app for display and Mago mobile app access Google services through Google APIs. To enable these features, a Google Workspace administrator must authorize the Mago application in the domain.

{% hint style="success" %}
Mago is a Google OAuth verified application.
{% endhint %}

{% stepper %}
{% step %}

### Authorize the Mago application

Open [admin.mago.io](https://admin.mago.io/) and sign in with a Google Workspace account that has Super Admin privileges. When prompted, review the requested permissions and approve. The Mago application is now authorized in your domain.

<figure><img src="https://2978719120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2FbpP2hYI1Myy7hMs_%2Fuploads%2FptqZeG1KKA7Q7fEhjAQB%2Fmago-admin-login.webp?alt=media&#x26;token=1fc130ad-9776-40dc-a31a-fc435119cf84" alt="" width="351"><figcaption></figcaption></figure>

<figure><img src="https://2978719120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2FbpP2hYI1Myy7hMs_%2Fuploads%2FInoQcmkioq9RJMDOtDjL%2Fmago-admin-center-google-signin.webp?alt=media&#x26;token=ec711228-8371-4e61-b9a4-381cb93b3ea4" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Verify third-party app access and allow the Mago application if restricted

When room resources or users sign in later during device activation, Google will prompt them to approve additional scopes (such as calendar and meeting access).

{% hint style="warning" %}
If your domain restricts third-party application access, these prompts will be blocked with a **`400 admin_policy_enforced`** error.
{% endhint %}

#### Check third-party app access policy

To check if your domain restricts third-party application access:

* Open the [Google Admin console](https://admin.google.com/)
* Go to Security > Access and data control > **API controls**
* Click on **Settings**

<figure><img src="https://2978719120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2FbpP2hYI1Myy7hMs_%2Fuploads%2FVI5V0TmYfaAJIY45So49%2Fgoogle-admin-8.webp?alt=media&#x26;token=749f1b43-8521-432a-9807-d8fbd724d0a1" alt=""><figcaption></figcaption></figure>

* Under "Unconfigured third-party apps", verify which access level is selected. If it is set to "Allow users to access any third-party apps", no further action is required. If access is restricted, proceed with the next step to pre-authorize the Mago application at domain level.

<figure><img src="https://2978719120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2FbpP2hYI1Myy7hMs_%2Fuploads%2FfFTtp3smBt53QIl3T0mn%2Fgoogle-admin-9.webp?alt=media&#x26;token=bd3a67f7-3abe-4333-b1db-a8ce670196c0" alt=""><figcaption></figcaption></figure>

#### Pre-authorize the Mago application

If your domain restricts third-party application access:

* Open the [Google Admin console](https://admin.google.com/)
* Go to Security > Access and data control > API controls > **Manage App Access**

<figure><img src="https://2978719120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2FbpP2hYI1Myy7hMs_%2Fuploads%2FLBO8JjSrXhwrYDA1ehyy%2Fgoogle-admin-1.webp?alt=media&#x26;token=009551d7-3cf1-49fe-a4b0-a3017bd82321" alt=""><figcaption></figcaption></figure>

* Click on "Configure new app"

<figure><img src="https://2978719120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2FbpP2hYI1Myy7hMs_%2Fuploads%2Fn9wVzHleirZv1yNKXlUO%2Fgoogle-admin-2.webp?alt=media&#x26;token=bace8861-3ebd-4fb6-90d3-9c4d173d2dcd" alt=""><figcaption></figcaption></figure>

* Search for the following Mago app client IDs and add them as trusted app (one by one).

<table><thead><tr><th width="148.30078125">Application</th><th>Client ID</th></tr></thead><tbody><tr><td>Mago app for display / web</td><td><code>436832489008-nl03st57foo9su4qg5mddnadhl7ql5oe.apps.googleusercontent.com</code></td></tr><tr><td>Mago mobile app for Android</td><td><code>436832489008-5ie2c8hme7jucfh4vn4hul7sdkm8mhuk.apps.googleusercontent.com</code></td></tr><tr><td>Mago mobile app for iOS</td><td><code>436832489008-l3lejr6nqvgmevau7u999gm6c17jdci2.apps.googleusercontent.com</code></td></tr></tbody></table>

<figure><img src="https://2978719120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2FbpP2hYI1Myy7hMs_%2Fuploads%2FDV0BTak78sohRm8CuHTU%2Fgoogle-admin-3.webp?alt=media&#x26;token=640cf9e0-aa1c-4256-b7f2-38c523ae2e8f" alt=""><figcaption></figcaption></figure>

* Set your desired Scope and click **Continue**

<figure><img src="https://2978719120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2FbpP2hYI1Myy7hMs_%2Fuploads%2FvACXSCMdnXaHQ3hwj7Mr%2Fgoogle-admin-4.webp?alt=media&#x26;token=2a835ece-3797-4eb8-8e30-77feb62bba04" alt=""><figcaption></figcaption></figure>

* Set the app as **Trusted**, then click **Continue**

<figure><img src="https://2978719120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2FbpP2hYI1Myy7hMs_%2Fuploads%2F5F0gatfqwQOSK73GFKlI%2Fgoogle-admin-5.webp?alt=media&#x26;token=e7267572-68c7-476d-b975-5fee7fb8691e" alt=""><figcaption></figcaption></figure>

* Review and click **Finish**

<figure><img src="https://2978719120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2FbpP2hYI1Myy7hMs_%2Fuploads%2FTuwZjSqWikY1JVFXHdpE%2Fgoogle-admin-6.webp?alt=media&#x26;token=43656f5d-1749-4b55-b5db-dadeb013b3bb" alt=""><figcaption></figcaption></figure>

* Make sure to repeat the steps to configure all 3 Mago app client IDs.

<figure><img src="https://2978719120-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M2FbpP2hYI1Myy7hMs_%2Fuploads%2FnXEy7r2WmJajKoenAsQk%2Fgoogle-admin-7.webp?alt=media&#x26;token=db859a20-1821-444f-b82f-a28b6b06317b" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
This ensures that users and room resources are not blocked when Mago requests additional scopes (such as calendar access) during device activation or configuration.
{% endhint %}
{% endstep %}
{% endstepper %}

## Required features and scopes

| Mago – Feature                                                                                                                     | Required Scope Permissions                                                              |
| ---------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| Log in with room account and view room name and email address                                                                      | `auth/userinfo.email`                                                                   |
| Select the room calendar to list upcoming meetings on the display                                                                  | `auth/calendar.readonly`                                                                |
| Create a new instant meeting as a Host and book the room calendar                                                                  | `auth/calendar.events`                                                                  |
| Search for Google Directory contacts to add recipients to meeting invitations                                                      | <p><code>auth/contacts.readonly</code><br><code>auth/contacts.other.readonly</code></p> |
| Browse, import, open and view cloud storage files (Google Drive) during a Mago Workspace or Mago Stage session (file presentation) | <p><code>auth/drive</code></p><p><code>auth/drive.file</code></p>                       |

| Mago Workspace app – Feature                                                                                                       | Required Scope Permissions                                        |
| ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| Log in to Mago Workspace via a personal Google account, view the account name and email address                                    | `auth/userinfo.email`                                             |
| Choose a personal calendar to list your personal meetings in the app and start them in the meeting room                            | `auth/calendar.readonly`                                          |
| Create a new instant meeting as a Host and book the room calendar                                                                  | `auth/calendar.events`                                            |
| Browse, import, open and view cloud storage files (Google Drive) during a Mago Workspace or Mago Stage session (file presentation) | <p><code>auth/drive</code></p><p><code>auth/drive.file</code></p> |
