# Importing from Google

When importing users & groups from Google, you will face the below error on the first-time you try to authenticate:

<figure><img src="/files/15fOqnEyumqk3z4vJWqR" alt="" width="375"><figcaption></figcaption></figure>

The reason is that certain sensitive permissions are required for the import:

| Sensitivity                      | Scopes                                                                                                                                                                                                                                                                  | Why Dope Requires This                                                                                                                                                      |
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Non‑sensitive** (OIDC Auth)    | `openid` `https://www.googleapis.com/auth/userinfo.profile` `https://www.googleapis.com/auth/userinfo.email`                                                                                                                                                            | Returns the user’s ID‑token + profile + primary email for identification                                                                                                    |
| **Sensitive** (User/Group Synch) | `https://www.googleapis.com/auth/admin.directory.user.readonly` `https://www.googleapis.com/auth/admin.directory.group.readonly` `https://www.googleapis.com/auth/admin.directory.group.member.readonly` `https://www.googleapis.com/auth/admin.reports.audit.readonly` | Read‑only access to users, groups, group memberships, and Admin SDK audit logs to perform regular User/Group synchronization, and process delta for groups every 15 minutes |

## To resolve this:

1. Login to [Google Admin Sconsole](https://admin.google.com/u/0/ac/owl/list?tab=configuredApps\&hl=en) as an Administrator. Navigate to Security -> Access and Data Control -> API controls, and select **MANAGE THIRD-PARTY APP ACCESS**

![API Security Controls are managed here](/files/wQtBN7uxOEakukteAbjI)

2. Select Configure new app\ <br>

   <figure><img src="/files/kN28dj9j2wLBSWLzbbSC" alt=""><figcaption></figcaption></figure>
3. Search for dope.security's Client ID

`478881077855-4cs12s5t8lae8vsh43svpsahneb1fgu2.apps.googleusercontent.com`

<figure><img src="/files/5YA6z9oOJMNBI80q7Jgd" alt=""><figcaption></figcaption></figure>

3. Click the “Dope Security” app and Configure the App access to **Trusted**<br>

   <figure><img src="/files/J7oFXg9bHJiBKP1XNxoE" alt=""><figcaption><p>Mark app as Trusted</p></figcaption></figure>
4. Once configured, you will see the app listed as Trusted in the third-party app list.

![](/files/gU44RY2wJze6UV957Z9x)


---

# 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://inflight.dope.security/dope.console/settings/users/importing-from-google.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.
