M365 - Sharepoint/OneDrive
Requirements
Within Azure, an Entra App was created as described here. Microsoft 365 tenants authenticate with a certificate that Teleskope generates during enrollment, so you do not need a client secret for Microsoft 365. Other Azure connectors that reuse the same app may still need one.
Within Teleskope, you have a Teleskope Account with the Admin role
Integration
Grant the Teleskope App Microsoft Graph and SharePoint API permissions
Navigate to your App Registration, then Manage -> API Permissions, and assign the following Graph API scopes via Application Permissions:
Directory.Read.All – read users, groups, directories to map identities
ExternalUserProfile.Read.All – identify guest/external users
Files.Read.All – read files for discovery/scanning/classification
Group.Read.All – list groups to analyze access
GroupMember.Read.All – enumerate membership for permission inheritance
RoleManagement.Read.All – understand privileged roles
SharePointTenantSettings.Read.All – inspect tenant-wide settings (e.g., sharing rules)
Sites.Read.All – enumerate SharePoint sites to index and crawl content
User.Read.All – get user properties
Then select Add a permission > SharePoint > Application permissions and add:
Sites.Read.All – read SharePoint site group (Owners, Members, Visitors) membership through the SharePoint REST API
Optional Permissions to enable features in 'Policy Maker'
Under Microsoft Graph:
SensitivityLabels.Read.All – list tenant-wide Purview sensitivity labels for PolicyMaker
InformationProtectionPolicy.Read.All – read Purview label policies
Files.ReadWrite.All – enable remediation such as applying Purview sensitivity labels, quarantining, or deletion
If you enable Policy Maker actions that apply or remove Purview sensitivity labels, also enable metered APIs and services in Microsoft Graph for the Teleskope app registration. Microsoft treats the SharePoint and OneDrive assignSensitivityLabel API as a metered Graph API, so Graph permissions and admin consent alone are not sufficient for that action.
Required for Activity Trail / Last Accessed
Under Office 365 Management APIs:
ActivityFeed.Read – read the ongoing stream of SharePoint and OneDrive activity (required for this feature)
Under Microsoft Graph:
AuditLogsQuery-SharePoint.Read.All – load existing SharePoint activity history (optional)
AuditLogsQuery-OneDrive.Read.All – load existing OneDrive activity history (optional)
All three must be added as Application Permissions (not Delegated) and require admin consent. Purview unified audit logging must also be on; see SharePoint and OneDrive activity.
Lastly, grant admin consent to all of the permissions.
Upload the certificate to Entra
In the Entra admin center, open App registrations and select the Teleskope app.
Open Certificates & secrets > Certificates and upload the
.cerfile.Confirm the thumbprint Entra shows matches the one in Teleskope.
Back in Teleskope, click Activate, then Done.
Entra can take a few minutes to accept a new certificate. If activation fails, wait and try again.
Teleskope holds the private key; only the public certificate leaves Teleskope. To rotate, go to Settings > Connectors > Microsoft 365, open the tenant row's menu and click Edit, then click Next. Click Rotate certificate, download the new .cer, and repeat this step. Keep the previous certificate registered in Entra until Teleskope confirms its services have restarted; running services keep using the previous certificate until then.
SharePoint and OneDrive activity
Required permissions
Under Office 365 Management APIs, add:
ActivityFeed.Read – read the ongoing SharePoint and OneDrive activity feed (required for this feature)
Under Microsoft Graph, optionally add:
AuditLogsQuery-SharePoint.Read.All – load existing SharePoint activity history
AuditLogsQuery-OneDrive.Read.All – load existing OneDrive activity history
All three must be added as Application Permissions (not Delegated) and require admin consent.
Audit logging activation
Microsoft Purview unified audit logging must be on; when it is off, Microsoft returns no activity rather than an error.
Open the Microsoft Purview portal and navigate to Audit.
If prompted, click Start recording user and admin activity to enable audit logging.
Alternatively, verify using Exchange Online PowerShell and confirm the result is True:
Verification
Share the following with your Teleskope contact:
A screenshot of the granted API permissions (showing admin consent has been granted)
A screenshot confirming audit logging is enabled in the Purview portal
Microsoft can take up to 12 hours to deliver the first batch of activity. The activity feed covers only the last 7 days, so history starts roughly when the permissions are granted unless the optional AuditLogsQuery permissions are added.
Data scope
Teleskope reads audit records only (the user or app, the action, the time, the site and file path, and the client IP address and application) and no file contents. Access is read-only. ActivityFeed.Read covers Microsoft's whole audit feed; Teleskope subscribes only to SharePoint and OneDrive activity.
Last updated
Was this helpful?
