> For the complete documentation index, see [llms.txt](https://inflight.dope.security/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://inflight.dope.security/dope.console/casb-neural/microsoft-365-authentication.md). Agents can also search and read this documentation through its [MCP server](https://inflight.dope.security/~gitbook/mcp).

# Microsoft 365 - Authentication

### UX = dope.security. That’s why it only takes seconds to get your CASB scan of Microsoft 365 started.

## Authentication

From the CASB tab in dope.console, select Microsoft 365 from the left-hand panel.

The authentication URL can either be self-enrolled, or sent to your 365 tenant admin to grant the required permissions to dope.security. For them, it's a one-click authorization.

<figure><img src="https://4250118259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqdf21diS0j19gSMF9LeP%2Fuploads%2FkeyOyEVIqVSIETrb7lKe%2Fgitbook-casb-auth_microsoft.png?alt=media&amp;token=8e84f2f1-e007-45db-9733-4287abdc29e7" alt=""><figcaption><p>Microsoft Authentication Link</p></figcaption></figure>

At the authentication URL, the Admin will be asked to grant dope.security with a set of permissions to allow CASB Neural to scan their Microsoft 365 tenant.\ <br>

<figure><img src="https://4250118259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqdf21diS0j19gSMF9LeP%2Fuploads%2FxJUZdw0sDK64AakBlohr%2Fimage.png?alt=media&amp;token=bab7755d-a1fe-4ae3-a3ff-9937e3c77626" alt=""><figcaption><p>Example of the authorization screen an admin will click through</p></figcaption></figure>

Once permissions are granted then, your done! It really is that simple, dope.security will now scan your tenant, uncover any publicly shared files with sensitive data, and classify them!

{% hint style="info" %}
**SSPM Coming Soon:** Uncover all third-party apps connected to your Microsoft 365 or Google SaaS tenant, neatly organized by access type: global, limited, or login access.
{% endhint %}

| Scopes                             | Purpose                                                                                |
| ---------------------------------- | -------------------------------------------------------------------------------------- |
| ActivityFeed.Read                  | Allows us to read company activity data                                                |
| AuditLog.Read.All                  | Allows us to query logs for third-party integrations                                   |
| Application.Read.All               | Allows us to read third-party integrations                                             |
| Directory.Read.Write.All           | Allows us to read/write data for the company directory, such as users, groups and apps |
| Files.ReadWrite.All                | Allows us to read/write files in all site collections                                  |
| Policy.Read.All                    | Allows us to read company policies. Used to inspect Security + Conditional Access.     |
| Policy.ReadWrite.ConditionalAccess | Allows us to read/write conditional policies                                           |
| Sites.FullControl.All              | Allows us to control site collections                                                  |
| User.Read                          | Allows us to read profile and basic company information                                |
| User.ReadWrite.All                 | Allows us to read/write details about users                                            |


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://inflight.dope.security/dope.console/casb-neural/microsoft-365-authentication.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
