You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The User Principal Name (UPN) for the OneDrive account. This is typically the OneDrive account user's email address.
11
+
-[A Microsoft 365 or Office 365 plan](https://learn.microsoft.com/office365/servicedescriptions/office-365-platform-service-description/office-365-plan-options) that includes
12
+
both OneDrive and SharePoint Online. (Even if you only plan to use OneDrive, you still need a plan that includes SharePoint Online,
13
+
because OneDrive is built on SharePoint technology.)
14
+
- The User Principal Name (UPN) for the OneDrive account. This is typically the OneDrive account user's email address. To find a UPN:
15
+
16
+
1. Depending on your plan, sign in to your Microsoft 365 admin center (typically [https://admin.microsoft.com](https://admin.microsoft.com)) using your administrator credentials,
17
+
or sign in to your Office 365 portal (typically [https://portal.office.com](https://portal.office.com)) using your credentials.
18
+
2. In the **Users** section, click **Active users**.
19
+
3. Locate the user account in the list of active users.
20
+
4. The UPN is displayed in the **Username** column.
21
+
13
22
- The path to the target OneDrive folder, starting from the OneDrive account's root folder, for example `my-folder/my-subfolder`.
14
23
- The client ID, tenant ID, and client secret for the Microsoft Entra ID app registration that has access to the target OneDrive account and
15
-
also has the correct set of Microsoft Graph authentication scopes. These scopes include:
24
+
also has the correct set of Microsoft Graph access permissions. These permissions include:
16
25
17
26
-`Files.ReadWrite.All` (if both reading and writing are needed)
18
27
-`Sites.ReadWrite.All` (if both reading and writing are needed)
19
28
-`User.Read.All`
20
29
-`Directory.Read.All`
21
-
22
-
See also:
23
-
24
-
-[Registering your app for Microsoft Graph](https://learn.microsoft.com/onedrive/developer/rest-api/getting-started/app-registration)
25
-
-[OneDrive authentication and sign-in](https://learn.microsoft.com/onedrive/developer/rest-api/getting-started/msa-oauth)
26
-
-[OneDrive API documentation](https://docs.microsoft.com/onedrive/developer/rest-api/)
30
+
1.[Create an Entra ID app registration](https://learn.microsoft.com/entra/identity-platform/quickstart-register-app?pivots=portal).
31
+
2.[Add Graph access permissions to an app registration](https://learn.microsoft.com/entra/identity-platform/howto-update-permissions?pivots=portal#add-permissions-to-an-application).
32
+
3.[Grant consent for the added Graph permissions](https://learn.microsoft.com/entra/identity-platform/howto-update-permissions?pivots=portal#grant-consent-for-the-added-permissions-for-the-enterprise-application).
0 commit comments