--- title: "Microsoft 365 Licenses setup instructions" slug: "dex-microsoft-365-licenses" updated: 2026-11-30T12:32:13Z published: 2026-11-30T12:32:13Z canonical: "documentation.sysaid.com/dex-microsoft-365-licenses" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.sysaid.com/llms.txt > Use this file to discover all available pages before exploring further. # Microsoft 365 Licenses setup instructions MICROSOFT 365 Entra app registration (Graph) To connect Dex to Microsoft 365 Licenses, register an application in your Microsoft Entra ID tenant and grant it the required Microsoft Graph permissions. ## Steps 1. Sign in to the Microsoft Entra admin center or Azure Portal as at least a Cloud Application Administrator. 2. Navigate to Identity > Applications > App registrations and click New registration. 3. Name the application (e.g., Dex M365 Licenses Integration) and click Register. 4. Note down the Application (client) ID and Directory (tenant) ID from the Overview page. 5. Under Manage, select Certificates & secrets > Client secrets > New client secret. Add a description, set an expiration, and click Add. Copy the secret Value immediately (you won't be able to retrieve it later). 6. Under Manage, select API permissions > Add a permission > Microsoft Graph > Application permissions, then search for and check LicenseAssignment.ReadWrite.All and Organization.Read.All (recommended, to read organization SKU details). 7. Click Add permissions, then click Grant admin consent for [Your Organization] and select Yes to confirm. ## Paste into Dex The connection form in the Dex app store asks for these values: - Application (client) ID - Directory (tenant) ID - Client secret (Value)  Copy immediately. You won't be able to retrieve it later. Links on page: [Open Microsoft 365 Licenses console](https://entra.microsoft.com/#view/Microsoft_AAD_RegisteredApps/ApplicationsListBlade), [Official docs](https://learn.microsoft.com/en-us/graph/permissions-reference).