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
- Sign in to the Microsoft Entra admin center or Azure Portal as at least a Cloud Application Administrator.
- Navigate to Identity > Applications > App registrations and click New registration.
- Name the application (e.g., Dex M365 Licenses Integration) and click Register.
- Note down the Application (client) ID and Directory (tenant) ID from the Overview page.
- 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).
- 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).
- 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, Official docs.