> For the complete documentation index, see [llms.txt](https://docs.tminus365.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tminus365.com/security/onedrive/legacy-authentication-shall-be-blocked.md).

# Legacy Authentication SHALL Be Blocked

## Description

Modern authentication, based on Active Directory Authentication Library (ADAL) and Open Authorization 2 (OAuth2), is a critical component of security in Office 365. It provides the device authentication and authorization capability of Office 365, which is a foundational security component. If modern authentication is not required, this creates a loophole that could allow unauthorized devices to connect to OneDrive and download/exfiltrate enterprise data. For this reason, it is important to make sure that only apps that support modern authentication are allowed to connect, assuring that only authorized devices are allowed to access enterprise data.

## Policy

* Legacy Authentication SHALL be blocked for OneDrive and SharePoint

## Licensing Considerations

Any tenant with OneDrive for Business licensing can access this setting.

## Set-Up Instructions

1. Open the SharePoint admin center.
2. In the left-hand navigation pane, click Policies > Access Control > Device access.
3. Click Apps that don’t use modern authentication to display the device access settings.
4. On the Apps that don’t use modern authentication page, select the Block access option

**Note to this can be accomplished through a Conditional Access Policy as well**

## End-User Impact

{% hint style="info" %}
Level: <mark style="color:green;">Low</mark>
{% endhint %}

There should not be many users trying to access OneDrive or SharePoint documents with apps that do not use modern authentication.

{% hint style="info" %}
Tips

• If you have a Conditional Access Policy set up to block legacy authentication, this setting is not necessary
{% endhint %}

## PowerShell Scripts

None Currently

## Videos&#x20;

{% embed url="<https://www.youtube.com/watch?v=uSXlVVHcv9I&t=839s>" %}


---

# 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.tminus365.com/security/onedrive/legacy-authentication-shall-be-blocked.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.
