Skip to content

This Project contains an sharepoint app that access sharepoint online using AppId and Secret

Notifications You must be signed in to change notification settings

arunakshi/SharePointAppOnlyApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

SharePointAppOnlyApp

This Project contains an sharepoint app that access sharepoint online using AppId and Secret. Creating AppOnly Permissions Conole App. You can copy the code from the console app and use it in your App.

This project is a sample on how to access SharePoint without service accounts through Apps. Since it is not recommended to access SharePoint using user accounts, we have to access SP in a different way. We can register the App in SharePoint which generates a Secret and that provides access to SharePoint.

Below are the steps to create AppId and Secret in SharePoint:

  • Use the following link to generate AppId. In the URL, please replace <sitecollection> with your sitecollection https://<sitecollection>/_layouts/15/AppRegNew.aspx

Below image shows how the screen look like when we call the above link and you need to generate secret as shown in screenshot.

  • In the Permissions Request XMl, paste the below XML:

<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" />
</AppPermissionRequests>

About

This Project contains an sharepoint app that access sharepoint online using AppId and Secret

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published