SharePoint Server - Apps Registration

In this section you find details on how to generate permission configurations and where to store them.

Set Up the SharePoint App

  1. Open the SharePoint address 'https://<yourtenant>.sharepoint.com/_layouts/15/appregnew.aspx'
  2. Complete the form for the SharePoint App.

  3. Click Generate for Client ID and Secret.

    The redirect URI should have exactly the same name as the DNS of the Semantic Integration Web server.

    Also, be aware that the Client Secret is generated for one year by default. You can adjust it to three years with PowerShell (for more info, read this article).

    Keep in mind that the Client Secret will expire at one point.

  4. Save the generated configuration 'C:\install\spappreg.txt' on the Semantic Integration Web Server.

Set Up the TaskAgent App

  1. Open the SharePoint address https://<yourtenant>.sharepoint.com/_layouts/15/appregnew.aspx
  2. Complete the form for the TaskAgent App.

  3. Click Generate for Client ID and Secret.

    The redirect URI should have exactly the same name as the DNS of the Semantic Integration Web server.

  4. Save the generated configuration 'C:\install\taskagentappreg.txt' on the Semantic Integration Web Server.
  5. Open the SharePoint address 'https://<yourtenant>.sharepoint.com/_layouts/15/appinv.aspx'
    • The completed form will be saved in the configuration file 'taskagentappreg.txt'
  6. Permission XMLs:

    1. If you want to set TaskAgent permissions on tenant level, use these XMLs:

      1. (O365) Set the permission request XML:

        <AppPermissionRequests>
        <AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl" />
        </AppPermissionRequests>
      2. (SharePoint 2016, SharePoint 2013) Set the permission request XML:

        <AppPermissionRequests AllowAppOnlyPolicy="true">
        <AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl" />
        </AppPermissionRequests>
    2. If you want to control TaskAgent permissions individually, use these XMLs:

      1. (O365) Set the permission request XML:

        <AppPermissionRequests>
        <AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="FullControl" />
        <AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" />
        </AppPermissionRequests>
      2. (SharePoint 2016, SharePoint 2013) Set the permission request XML:

        <AppPermissionRequests AllowAppOnlyPolicy="true">
        <AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="FullControl" />
        <AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" />
        </AppPermissionRequests>
  7. Click Trust it.


Trusted applications can be managed via the following address: 'https://<yourtenant>.sharepoint.com/_layouts/15/appinv.aspx'


SharePoint Authentication Realm

Through PowerShell, get the realm of SharePoint and save the return text (you will need to send it to us later).

The syntax should look like this:

SharePoint Authentication Realm
PS C:\> Get-SPAuthenticationRealm

For more information about parameters, read this article.