How Can We Help?
< All Topics
Print

05. Create SharePoint Credentials

 

HingePoint Sync service uses SharePoint App-Only for event receivers activation and sync content from different systems (Windows and Procore) to SharePoint.

The article below described how to create and assign permissions for SharePoint App-Only.

https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs#setting-up-an-app-only-principal-with-tenant-permissions

 

App registration

1. Open https://your tenant name-admin.sharepoint.com/_layouts/15/appregnew.aspx (for ex. https://hingepoint-admin.sharepoint.com/_layouts/15/appregnew.aspx).

2. Generate ClientID and Client Secret and fill the Title, App Domain and Redirect URL using values from below. Select Create:

Title: HingePoint-Sync

App Domain: www.localhost.com

Redirect URL: https://www.localhost.com

3. Select Ok in the next screen.

Note: Please save Client ID and Client Secret in the secure password storage. You can not get Client Secret after you create the app only by creating the new app.

 

Assign permissions for Tenant Wide (for all sites in the tenant)

1. Open SharePoint Admin Center and use this link to assign permissions the app https://your tenant name-admin.sharepoint.com/_layouts/15/appinv.aspx (for ex. https://hingepoint-admin.sharepoint.com/_layouts/15/appinv.aspx).

2. Put Client ID from previous topic to App Id and select Lookup (other fields should be auto populated):

3. Put below settings to Permission Request XML:

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

4. Select Create and Trust It in the next screen:

 

Assign permissions for Site Wide (for a particular site)

1. Open target SharePoint site and use this link to assign permissions the app https://your tenant name.sharepoint.com/sites/your site/_layouts/15/appinv.aspx (for ex. https://hingepoint.sharepoint.com/sites/HingePointSync/_layouts/15/appinv.aspx).

2. Put Client ID from previous topic to App Id and select Lookup (other fields should be auto populated):

3. Put below settings to Permission Request XML:

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

4. Select Create and Trust It in the next screen:

Add additional users from management portal.

1. Login to HingePoint Sync service management portal as using company administrator account.

2. Select Users in the Navigation Menu

3. Select Create New:

4. Fill all fields in the from and select User role:

5. Select Save:

Previous 04. Create Procore Credentials
Next 06. Windows Service Installation