> For the complete documentation index, see [llms.txt](https://docs.lithnet.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lithnet.io/google-workspace-ma/configuration/required-permissions-and-scopes.md).

# Required permissions and scopes

In order to operate correctly, the management agent requires an account with permission to manage the objects, which has an associated service account that has access to the appropriate API scopes.

Note that granting the scopes to the service account is not enough. The user object must either have admin rights, or have delegated permissions to the required object.

### Scopes

You only require permissions for the object types you want to manage. The minimum scopes required for each object type are shown below.

*Note that the required scopes have changed between **V1** and **V2** depending on what functionality of the Connector you're using. You could need to review the scopes when upgrading the agent to avoid permission errors.*

E.g. the following errors indicate that the scopes for the User Schema needs to be reviewed:

> "Permission to read the user custom schema was denied" "Permission related TokenResponseException while reading the user custom schema"

#### user

```
https://www.googleapis.com/auth/admin.directory.user
https://www.googleapis.com/auth/admin.directory.userschema.readonly
```

If delegates or send-as addresses are required, then the following scopes are also required (Requires v2 management agent or later)

```
https://www.googleapis.com/auth/gmail.settings.basic
https://www.googleapis.com/auth/gmail.settings.sharing
```

#### advancedUser

```
https://www.googleapis.com/auth/admin.directory.user
https://www.googleapis.com/auth/admin.directory.userschema.readonly
https://apps-apis.google.com/a/feeds/emailsettings/2.0/
```

#### group

```
https://www.googleapis.com/auth/admin.directory.group
https://www.googleapis.com/auth/admin.directory.group.member
https://www.googleapis.com/auth/apps.groups.settings
https://www.googleapis.com/auth/admin.directory.domain.readonly
```

#### contact

```
http://www.google.com/m8/feeds/contacts/
```

#### calendar

```
https://www.googleapis.com/auth/calendar
https://www.googleapis.com/auth/admin.directory.resource.calendar
```

#### building

```
https://www.googleapis.com/auth/admin.directory.resource.calendar
```

#### feature

```
https://www.googleapis.com/auth/admin.directory.resource.calendar
```

#### domain

```
https://www.googleapis.com/auth/admin.directory.domain.readonly
```

### classroom (Requires v2 management agent or later)

```
https://www.googleapis.com/auth/classroom.courses
https://www.googleapis.com/auth/classroom.rosters
```

#### organizationalUnits

```
https://www.googleapis.com/auth/admin.directory.orgunit
```

### Older versions of the management agent

Please note, that versions of the MA prior to build 1.1.6663 require all scopes to be granted to the service account


---

# 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.lithnet.io/google-workspace-ma/configuration/required-permissions-and-scopes.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.
