Skip to content

Generate Your Drive ID Map

Role: IT administrator. Continue from Graph Explorer setup with the resolved composite Site ID and verified runtime application grant.

In Graph Explorer, choose GET, API v1.0, and run:

GET https://graph.microsoft.com/v1.0/sites/{SITE-ID}/drives?$select=id,name,webUrl,driveType

Replace {SITE-ID} with the complete site ID from the site-resolution request. Expect 200 OK and a value array. Fictional example:

{
"value": [
{
"id": "b!exampleContractsDriveId",
"name": "Contracts",
"webUrl": "https://contoso.sharepoint.com/sites/Retail/Contracts",
"driveType": "documentLibrary"
},
{
"id": "b!exampleDocumentsDriveId",
"name": "Documents",
"webUrl": "https://contoso.sharepoint.com/sites/Retail/Shared%20Documents",
"driveType": "documentLibrary"
}
]
}

The relevant resource is driveType=documentLibrary. Copy its id unchanged; the display name and URL are not substitutes. Microsoft documents the site drives endpoint and drive type values.

If the response contains @odata.nextLink, run a GET against the full URL returned, retaining its query parameters. Repeat until there is no nextLink. Collect every page before calling the library inventory complete. See Microsoft Graph paging.

Repeat discovery for each approved site. Confirm the library URL with the site owner.

Site Library Drive ID
Retail Contracts b!exampleContractsDriveId
Retail Documents b!exampleDocumentsDriveId

Store your real map as an internal table or CSV. Add site/library URLs, owner, and review date if useful. The map chooses workflow destinations; the application’s grant remains site-level.

Non-secret configuration: Site name, Library name, Drive ID, Tenant ID, Client ID.

Sensitive credential: Client Secret value, transferred separately through the organization’s approved secure method. Never put it in Drive ID maps, screenshots, support tickets, examples, or repository files.

Use these values to connect the intended Location, then run an action through HighLevel. Graph Explorer discovery uses the administrator identity and is not a runtime access test.

Next: Configure authentication in HighLevel →