Table of Contents

Directory.AccessAsUser.All

Allows the app to have the same access to information in the directory as the signed-in user.

Caution

Directory permissions grant broad access to directory (Microsoft Entra ID) resources such as user, group, and device in an organization. Whenever possible, choose permissions specific to these resources and avoid using directory permissions.

Directory permissions might be deprecated in the future.

Merill's Note

For an app to access data in Microsoft Graph, the user or administrator must grant it the permissions it needs. This article lists all the Microsoft Graph APIs and your tenant data that can be accessed by the application (vendor/developer) if you consent to the Directory.AccessAsUser.All permission.

If you need to create an audit report of the permissions granted to all the apps in your tenant, you can run the Export-MsIdAppConsentGrantReport command. See How To: Run a quick OAuth app audit of your tenant

Category Application Delegated
Identifier - 0e263e50-5827-48a4-b97c-d940288653c7
DisplayText - Access directory as the signed in user
Description - Allows the app to have the same access to information in the directory as the signed-in user.
AdminConsentRequired Yes Yes

Graph Methods

API supports delegated access (access on behalf of a user)
API supports app-only access (access without a user)

Methods

Resources

Granting this permission allows the calling application to access (and/or update) the following information in your tenant.

Graph reference: basetask

Property Type Description
textBody String The task body in text format that typically contains information about the task.
bodyLastModifiedDateTime DateTimeOffset The date and time when the task was last modified. By default, it is in UTC. You can provide a custom time zone in the request header. The property value uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
completedDateTime DateTimeOffset The date when the task was finished.
createdDateTime DateTimeOffset The date and time when the task was created. By default, it is in UTC. You can provide a custom time zone in the request header. The property value uses ISO 8601 format. For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
displayName String The name of the task.
dueDateTime dateTimeTimeZone The date in the specified time zone that the task is to be finished.
id String Unique identifier for the task. By default, this value will not change if a task is moved from one list to another.
importance importance The importance of the task. Possible values are: low, normal, high. The possible values are: low, normal, high.
lastModifiedDateTime DateTimeOffset The date and time when the task was last modified. By default, it is in UTC. You can provide a custom time zone in the request header. The property value uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
viewpoint taskViewpoint Properties that are personal to a user such as reminderDateTime and categories.
recurrence patternedRecurrence The recurrence pattern for the task.
startDateTime dateTimeTimeZone The date in the specified time zone when the task is to begin.
status taskStatus_v2 Indicates the state or progress of the task. Possible values are: notStarted, inProgress, completed,unknownFutureValue.