Prerequisites:
- Hybrid Federated Environments: Ensure your setup involves a hybrid federated environment where user accounts are synchronized from an on-premises Active Directory to Entra ID using Entra ID Connect. Password access is only possible under these conditions
- Password Hash Synchronization: Verify that Password hash synchronization is enabled in Entra ID Connect
- Multi-Factor Authentication (MFA): Ensure that MFA is not enabled for Entra ID users. TruU utilizes the OAuth 2.0 ROPC (Resource Owner Password Credentials) flow to verify passwords, which does not support MFA
Verify that Entra ID Connect synchronizes password hashes
To verify that Entra ID Connect synchronizes password hashes from an on-premises AD to Entra ID, follow these steps:- Open the Entra ID Connect application on a Windows machine
- Click on Configure
- Select Customize synchronization options and then click Next
- Log in to Entra ID using a global administrator account and proceed through all steps up to the “Optional Features” section. Ensure that the Password hash synchronization option is enabled at this stage
Configuring Home Realm Discovery policy
As mentioned earlier, the Home Realm Discovery (HRD) policy enables TruU to authenticate passwords within a federated environment. This policy needs to be specifically applied to the client—TruU’s application registered in Entra—configured within the TruU Management console’s directory settings. Without this setup, the policy will not take effect. Below is an example demonstrating the creation of an HRD policy using the Entra ID PowerShell module for the TruU IDS Application.Creating an HRD Policy
To create a new Home Realm Discovery (HRD) policy, follow this script:Removing the HRD Policy
If you need to disable password verification later, you can remove the HRD policy by using the following command:Approving a Delegated Permission in Entra
The ROPC OAuth 2.0 flow used by TruU for password verification requires the “user.Read” scope to function correctly. This permission must also be granted to the application in Entra. To configure this permission:- Open the Microsoft Entra ID service (former Azure AD) in Entra Portal
- Go to App registrations, then navigate to , then API permissions
- Click Add a Permission to proceed
- Add a new Microsoft Graph delegated to “User.Read” permission as you can see below
- After adding the permission, you must grant administrative consent to the permission
- Click the Grant admin consent for … button

