Sync people data from Entra ID
Use this workflow to sync people data from Microsoft Entra ID.
Prerequisites
Before you begin, make sure you have the following:
- Global, Application or Cloud Application Administrator access in Microsoft Entra ID
- Admin or Setup Admin access in Glean
- The following user fields populated in Entra ID:
- First name
- Last name
- Title
- Department
- Manager (optional, but recommended if you want to build org charts and improve people data quality)
Configure Entra ID as the people data source in Glean
Complete the following steps to configure Entra ID as the people data source in Glean:
- Create an app registration in Entra ID
- Configure Microsoft Graph application permissions
- Grant admin consent
- Create a client secret
- Get application and directory IDs
- Upload keys to Glean
1. Create an app registration in Entra ID
- In Microsoft Azure, navigate to the App registrations page.
- Create a new app registration.
- Register a new application with the following details:
- Name:
Glean People - Supported account types: Single tenant only
- Redirect URI: Leave blank
- Name:
- Click Register.
For more information on how to register an application in Entra ID, see Register an application in the Microsoft documentation.
2. Configure Microsoft Graph application permissions
- In Microsoft Azure, navigate to the App registrations page.
- In All applications, find and select the
Glean Peopleapp registration you created. - Navigate to the Manage → API permissions page.
- Add the folllowing API permissions for the Microsoft Graph API as Application permissions:
User.Read.AllGroupMember.Read.All
For more information on how to add permissions to an application, see Add permissions to an application in the Microsoft documentation.
3. Grant admin consent
- In Microsoft Azure, navigate to the Enterprise applications page.
- Find and select the
Glean Peopleapp registration you created. - Navigate to the Manage → Permissions page.
- Review the permission and click Grant admin consent.
- Complete the authentication prompt to grant admin consent.
For more information on how to grant admin consent, see Grant tenant-wide admin consent in Enterprise apps pane in the Microsoft documentation.
4. Create a client secret
- In Microsoft Azure, navigate to the App registrations page.
- In All applications, find and select the
Glean Peopleapp registration you created. - Navigate to the Manage → Certificates & secrets page.
- Create a new client secret with the description
Glean People. - Add the secret.
- Copy the secret Value.
The client secret value shows only once. If you don't copy it, you cannot access it again and you will need to create a new client secret.
For more information on how to create a client secret, see Certificates and client secrets in the Microsoft documentation.
5. Get application and directory IDs
- In Microsoft Azure, navigate to the App registrations page.
- In All applications, find and select the
Glean Peopleapp registration you created. - On the Overview page, note the Application (client) ID and Directory (tenant) ID.
5. Upload keys to Glean
- In Glean, navigate to Admin console → Users & permissions → People data.
- Select Manage data source.
- Under Select a data source to sync people data from, select Azure.
- With the keys you obtained in the previous steps, paste the following into the corresponding fields in Glean:
- Client secret
- Application (client) ID
- Directory (tenant) ID
- (Optional) Provide a comma-separated list of user fields to crawl in addition to the default fields:
idcreatedDateTimeuserTypedisplayNamegivenNamesurnamejobTitlemanagerdepartmentofficeLocationcitymobilePhonebusinessPhonesonPremisesExtensionAttributesimAddressesmailmailNicknameotherMailsproxyAddressesusageLocationuserPrincipalName
- Click Save. Glean prompts you to schedule a crawl.
- Select Enable crawl and click Save.
Troubleshooting
If you encounter issues, see the following troubleshooting steps.
Missing permissions error
If you encounter a "Missing permissions" error, check that the app registration has the correct Microsoft Graph permissions and that you've granted admin consent for the required permissions.
Review Configure Microsoft Graph application permissions and Grant admin consent for more information.
Users are missing from Glean
If you notice that users are missing from Glean, check that:
- The required user fields are populated in Entra ID
- The app registration has the correct Microsoft Graph permissions
- Admin consent has been granted
- The client ID, tenant ID, and client secret are correct
People data looks incomplete
If names, titles, departments, or managers are missing, review the corresponding fields in Entra ID and confirm they're populated for affected users.