Client secret authentication uses traditional Azure App Registration credentials to connect to SharePoint.
This method is suitable for most basic SharePoint integrations.Note: Permission sync is not available with client secret authentication.
Use certificate-based authentication
if you need permission sync functionality.
Despite its name, Sites.FullControl.All is read-only in Zortex. No write operations are performed.
1
Open API Permissions
Navigate to the “API Permissions” tab in the Azure Portal.
2
Add Microsoft Graph permission
Click Add a permission → Microsoft Graph → Application permissions.Navigate to the “Sites” permission group and select Sites.Read.All.
Advanced: If you want to limit the sites this app has access to, select Sites.Selected.
However, if you do this, you will need to add the App you are currently registering to each site you want to index.
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:
Sign in with a Global Admin or SharePoint Admin account.
2
Consent to permissions
Click your profile icon → Consent to permissions → enable Sites.FullControl.All.
This grants Graph Explorer (not your Zortex app) permission to manage site access.
3
Get the site ID
Run a GET request, replacing {tenant} and YourSiteName:
GET https://graph.microsoft.com/v1.0/sites/{tenant}.sharepoint.com:/sites/YourSiteName?$select=id
Copy the id from the response (format: contoso.sharepoint.com,guid1,guid2).
4
Grant Read permission
Change the method to POST:
POST https://graph.microsoft.com/v1.0/sites/{site-id}/permissions
GET https://graph.microsoft.com/v1.0/sites/{site-id}/permissions
Confirm "roles": ["read"] appears for the Zortex app.
Repeat steps 3–5 for each site you want to index.
Click Add permissions.
3
Add SharePoint permission
Click Add a permission again → SharePoint → Application permissions.Navigate to the “Sites” permission group and select Sites.FullControl.All.Click Add permissions.
4
Grant admin consent
Click Grant admin consent for <Organization name> (located next to Add a permission)
and click Confirm.