Overview
This document explains how to automatically configure Microsoft Entra ID so TruU can securely integrate with Microsoft Graph using an application registration, application permissions, admin consent, and a client secret. The automation script creates a new Entra application named TruUIDS, assigns the required Microsoft Graph application permissions, grants admin consent, generates a client secret, and then outputs the credentials needed to complete the TruU directory configuration. This approach is intended to reduce manual setup effort, standardize configuration, and ensure the Entra directory is prepared consistently for TruU’s integration requirements.Required Permissions Granted by the Script
The script assigns the following Microsoft Graph application permissions:- Application.Read.All
- Device.Read.All
- Group.Read.All
- Directory.Read.All
- User.Read.All
- UserAuthenticationMethod.Read.All
- UserAuthenticationMethod.ReadWrite.All
Prerequisites
Before running the script, confirm the following:Administrative Requirements
- The person running the script must be able to sign in as a Global Administrator, or otherwise hold sufficient privilege to create applications and grant admin consent for Microsoft Graph application permissions.
- The tenant must allow Microsoft Graph PowerShell access.
PowerShell Requirements
- PowerShell must be installed.
- The Microsoft Graph PowerShell SDK must be installed.
Security and Process Requirements
- The generated client secret is shown only once.
- The output should be copied immediately into a secure secret store or password vault.
- The organization should determine who owns rotation of the client secret before deployment.

