Update Microsoft App Registration to Use Minimum-Privilege Permissions
If you previously set up the Microsoft Add-in by using advanced permissions such as
Files.ReadWrite.All and User.ReadWrite.All, you can update your app registration to use
Sites.Selected, User.Read, and User.ReadBasic.All. This reduces security risks, limits access to
specific SharePoint sites, and supports simplified access management without impacting document
generation.
Replace <Application_Id> with the Client ID from the Azure App Registration's Overview
tab.
Go to the Headers tab and add: Content-Type:
application/json.
Run the query to assign the permissions.
Update the scope in Salesforce Auth Provider.
From Setup, in the Quick Find box, enter Auth. Providers, and then
select Auth. Providers.
Edit the relevant Microsoft provider.
Update the scope to: offline_access openid User.Read User.ReadBasic.All
Sites.Selected.
Save the changes.
After updating the scopes, verify that document generation from Salesforce to the
SharePoint site works as expected. Optionally, revoke Sites.FullControl.All from Graph Explorer
permissions after site access is confirmed.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.