Guidelines for SharePoint Online PreRequisites

APP Creation

  • Log in to https://portal.azure.com/
  • Navigate to Azure Active Directory
  • Click on App Registration
  • Click New Registration, provide a unique name and other required fields, then click Register
  • After registration, note down the Client ID, Tenant ID, create a Client Secret and copy its value, and set a Redirect URI

APP Permissions

  • Go to API Permissions
  • Click Add Permission and select Microsoft Graph
  • Choose Application Permissions
  • Grant Read permissions for Directory, Files, and Sites
  • Click Add Permission to apply the permissions
    Note: Some permissions may require Admin Consent

🚧

NOTE:

  • If you are not able to Get the Site Lists on Site Tab, Try the following steps:
  • Edit the Application permissions by Read/Write Full Permissions and additionally can check with AccessReview, Application, CrossTenantUserProfileSharing and Policy permissions too.
  • Select Delegated Permissions and provide Read/Write Full Permissions to AccessReview, Calender, ExternalItems, Files, Mail, Offline_access, Sites and User.
  • After creating the APP, go to the Overview page to get Tenant ID and Client ID.
  • For Client Secret, go to Certificates & Secrets, create a secret, and copy its value.
  • For Redirect URI, go to Redirect URI section and create one.

  • click on Authorization tab, selectAccess tokens and ID tokens and save.