Setting Up
Step 1: Create Azure App Registration
- Open the Azure Portal and log in with your organization’s credentials.
- Use the search bar to find and navigate to “App registrations.”
- Click New Registration to begin creating a new app.
- Give the app a recognizable name such as “ASSIST AI SharePoint Connector,” leave all other fields at their defaults, and click Register.
- From the overview tab under “Essentials,” locate and save the Application (client) ID and Directory (tenant) ID — you’ll need these later.
Step 2: Create Client Secret
- Go to the Certificates & secrets section in the Azure Portal.
- Click New client secret to generate a new secret.
- Enter a description, set the expiration period to 24 months, and click Add.
- Immediately copy the value shown in the Value column and store it securely.
Important: The secret value is only visible once — copy it right away before navigating away.
Step 3: Configure API Permissions
- Navigate to the API Permissions section in the Azure Portal.
- Click Add a permission.
- Select Microsoft Graph, then choose Application permissions.
- Expand the Sites permission group.
- Check the box for Sites.Read.All.
- Advanced: To restrict access to specific sites only, select Sites.Selected instead. Keep in mind that if you choose this option, you’ll need to manually grant the registered app access to each site you want to index.
How to grant site-specific access
How to grant site-specific access
If you selected Sites.Selected, you need to grant your app read access to each site you want to index.The steps below use Microsoft Graph Explorer, but you can also grant site permissions using:Copy the
- PnP PowerShell (
Grant-PnPAzureADAppSitePermissioncmdlet) - Resource Specific Consent guide
- Sign in Sign in with a Global Admin or SharePoint Admin account.\
- Consent to permissions Click your profile icon → Consent to permissions → enable Sites.FullControl.All. This grants Graph Explorer (not your Onyx app) permission to manage site access.
- Get the site ID Run a GET request, replacing
{tenant}andYourSiteName:
id from the response (format: contoso.sharepoint.com,guid1,guid2).- Grant Read permission Change the method to POST:
Request body:
- Verify Change the method to GET:
"roles": ["read"] appears for the ASSIST AI app.Repeat steps 3–5 for each site you want to index.- Add and grant Click Add permissions. Finally, click Grant admin consent for <Organization name> (located next to Add a permission) and click Confirm.
Step 4: Configure in ASSIST AI
- Open SharePoint connector Navigate to the Onyx Admin Panel and select the SharePoint Connector.
- Create Client Secret credential Click Create New credential and select the Client Secret tab.
- Enter credential details
- Application (client) ID from Step 1
- Directory (tenant) ID from Step 1
- Client Secret Value from Step 2
- Save credentials Click Create to save your credentials.
