Assign full permissions to the tenant to back up SharePoint Online sites.
Procedure
-
In your browser, go to the appinv.aspx page on your tenant admin site, as in https://tenant-admin.sharepoint.com/_layouts/15/appinv.aspx.
The SharePoint admin center page appears.
-
In the App ID box, enter the application ID that you recorded earlier, and then click Lookup.
In the Title box, the name of the application appears.
-
In the App Domain box, enter tenantname.onmicrosoft.com.
To get the correct domain name, go to "Custom domain names" on the Azure website.
-
In the App's Permission Request XML box, enter the following XML string:
<AppPermissionRequests AllowAppOnlyPolicy="true"> <AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl" /> <AppPermissionRequest Scope="http://sharepoint/social/tenant" Right="Read" /> </AppPermissionRequests>
-
Click Create.
-
Click Trust It.