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

4. Verify the Result

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.

  1. Access Central Administration
  2. 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.
  3. The table just before this procedure appears on the right side of the page.
  4. 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.