Create Permissions for SharePoint Online
This article provides instructions on how to create app permissions for SharePoint site via either PowerShell or SharePoint Central Administration website.
PowerShell
1. Install a PowerShell Module
Install-Module -Name PnP.PowerShell
Click to copy
2. Connect to SharePoint Site
Connect-PnPOnline https://tenantname.sharepoint.com/sites/siteName -Interactive
Click to copy
You will be prompted to enter the credentials including the second factor.
3. Grant the write Permission to Active Directory App
Grant-PnPAzureADAppSitePermission -AppId 'AzureAppIdwithSitesdotselectedpermission' -DisplayName 'App Name here' -Site 'https://tenantname.sharepoint.com/sites/sitename' -Permissions Write
Click to copy
SharePoint Central Administration
NOTE: You must be a member of the Farm Administrators group on the computer that is running the SharePoint Central Administration website.
- Access Central Administration
- On the Application Management page, in the Site Collections section, click View all site collections
- The Site Collection List page lists all the site collections in the web application. To display more information about a site collection, in the URL column, click the site collection.
- The table just before this procedure appears on the right side of the page.
- If you want to change the selected web application, click the Web Application box, and then click Change Web Application. Use the Select Web Application page to select another web application.