How to create a single-tenant application with minimum permissions for harmon.ie
To create a harmon.ie-compatible app with minimum permissions, follow the steps below.
- An app created with the permissions listed below will not include the Share to Teams feature.
- harmon.ie only asks for delegated permissions, and not for application permissions.
Step 1: Create an Azure app:
- Open Home – Microsoft Azure and navigate to All Services > App registrations.
- Create a new app:
- Click the + New registration tab.
- Name the app.
- Set the account type to single tenant.
- Click Register. The new app is created.
- Copy the Application (client) ID, you will use it later.
- Configure the app as follows:
- Click Authentication > Add platform.
- On the right, under Configure platforms, select Mobile and desktop applications.
- Set Redirect URI. You can create a public link for your app or use MS detaults.
- Click API permissions > Add a permission.
- On the right, click Microsoft Graph > Delegated Permissions.
- Check the following permissions:
- User.ReadBasic.All
- Files.ReadWrite.All
- Sites.ReadWrite.All
- Team.ReadBasic.All
- Channel.ReadBasic.All
- offline_access
- Click Add permissions.
- Click API permissions > Add a permission.
- On the right, click SharePoint > Delegated Permissions.
- Check the following permission:
- AllSites.Manage
- Click Add permissions.
Step 2: Connect your new Azure app to harmon.ie and disable ‘Share to Teams’:
- Add the Office365GraphInfo registry key.
- Add a String Value called ClientId and set its value to the Application (client) ID you created in the 1st step.
- Add a String Value called RedirectUrl and set its value to the redirect URI you configured in the 1st step.
- Add a String Value called TenantId and set to the tenant Id.
- Add the EnableShareToTeams registry key and set its default value to False.