Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
As the system administrator, you need to enable OneDrive for Business for your users so they can create and manage private documents with OneDrive for Business.
Note
This topic applies to organizations deploying on-premises versions of OneDrive for Business and customer engagement apps (Dynamics 365 Sales, Dynamics 365 Customer Service, Dynamics 365 Field Service, Dynamics 365 Marketing, and Dynamics 365 Project Service Automation), or an online/on-premises mix of these products. For information on integrating OneDrive for Business online with customer engagement apps, see: Enable OneDrive for Business.
Requirements
To use OneDrive for Business with Dynamics 365 Server, you need to set up and turn on the following:
Set up SharePoint integration and have at least one team site.
Set up permission on the root SharePoint team site for all users who use OneDrive for Business in customer engagement apps. More information: Plan sites and manage users
Turn on the Search service for SharePoint on-premises so it can access shared documents from other users. It's enabled by default on SharePoint Online but not on SharePoint on-premises. More information: Create and configure a Search service application in SharePoint Server 2013.
Enable OneDrive for Business
To enable OneDrive for Business, take the following steps:
- Sign in to the Power Platform admin center.
- In the navigation pane, select Manage.
- In the Manage pane, select Environments.
- On the Environments page, select an environment.
- Select Settings > Integration > Document management settings.
- Select Enable OneDrive for Business to enable it, then select OK.
If you're running SharePoint Server on-premises, on the Windows Server where SharePoint Server is running, open the SharePoint Management Shell and run the following commands to set up permissions between SharePoint and Dynamics 365 Server.
Note
If you already completed the steps in Configure server-based authentication with customer engagement apps and SharePoint on-premises to set up permissions, then you can skip running the PowerShell commands.
Add-Pssnapin *
# Access WellKnown App principal
[Microsoft.SharePoint.Administration.SPWebService]::ContentService.WellKnownAppPrincipals
# Create WellKnown App principal
$ClientId = "00000007-0000-0000-c000-000000000000"
$PermissionXml = "<AppPermissionRequests AllowAppOnlyPolicy=""true""><AppPermissionRequest Scope=""http://sharepoint/content/tenant"" Right=""FullControl"" /><AppPermissionRequest Scope=""http://sharepoint/social/tenant"" Right=""Read"" /><AppPermissionRequest Scope=""http://sharepoint/search"" Right=""QueryAsUserIgnoreAppPrincipal"" /></AppPermissionRequests>"
$wellKnownApp= New-Object -TypeName "Microsoft.SharePoint.Administration.SPWellKnownAppPrincipal" -ArgumentList ($ClientId, $PermissionXml)
$wellKnownApp.Update()
Controlling access to OneDrive for Business
To toggle the availability of OneDrive for end users through the OneDrive for Business privilege, take the following steps:
In the Power Platform admin center, select an environment.
Select Settings > Users + permissions > Security roles.
Choose a security role, and then select the Core Records tab.
Under Miscellaneous Privileges, toggle the OneDrive for Business privilege to the desired availability.
Note
This privilege is visible in the Security Roles dialog only after OneDrive for Business is enabled.
"