Create an Azure AD app
First you need an Azure AD application. We recommend to use a non-personal account to create this from the Microsoft Entra panel. This account does not need to have access to any items on Sharepoint but has the right permissions to setup the app that will serve as a bridge between Zylon and Sharepoint.- Go to https://entra.microsoft.com.
Applications
→ App Registrations
→ New Registration

- Provide a meaningful name for the Application.
- On Supported Account types choose
Accounts in this organizational directory only
- Under
Redirect URI
→ SelectWeb
and add the followings redirect URL
- Click
Register

- Click on
Redirect URIs

- Click on
Add a platform

- Click on
Single-Page application

- Add the following URL and click
Configure
:
- Now that the app is created, note the
Application (client) Id
andDirectory (tenant) id
from theOverview
page.

- Let’s create an application secret
Certificates & secrets
→ Click + New client secret
→ Add a description and expiration date(if you add a date coming up shortly you have to be aware your integration will stop working when the secret expires)
Copy the Client Secretvalue
. The secret value will not be accesible later.

API Permissions
→ + Add a permission
→ Microsoft Graph
→ Delegated permissions
and include the permissions below then click on Add permissions
Files.Read.All
OpenId permissions.offline_access
SharePointTenantSettings.Read.All
Sites.Read.All
User.Read
API Permissions
→ + Add a permission
→ Sharepoint
→ Delegated permissions
and include the permissions below then click on Add permissions
AllSites.Read
EnterpriseResource.Read
MyFiles.Read
Project.Read
Sites.Search.All
User.Read.All
Grant admin consent for [Your Org]
and confirm by clicking Yes

Configure Zylon with your Azure AD app
With the values we have acquired in previous steps we will edit Zylon config file located in/etc/zylon/zylon-conf.yaml
Add the following snippet to the bottom of the file
- clientId → value generated on step 10
- clientSecret → value generated on step 11
- redirectUri → same value as step 4
- domain → Your sharepoint url
- client_tenant_id → same value as step 10
/etc/zylon/zylon-conf.yaml
file
Finally, execute the following command to reset Zylon and update the config
Troubleshooting
I tried to upload files to the knowledge base but the Sharepoint button is greyed out
Clear the browser cache and try again.When I click on Upload files -> From Sharepoint
the log in is not working
- Check that the
clientId
secretId
are copy pasted correctly into Zylon config file - Check that
redirectUri
is the same as step 4 and that your domain from sharepoint is right - Check that the
tenantId
being used matches the one under theOverview
page of your application on Azure AD