About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.
Setup steps on this page
Clear the Invalid users list after an environment copy
Use Invalid users after a database copy or tenant change to find users who will fail to sign in.
Steps from Microsoft
Go to System administration > Users > Invalid users.
Select Refresh to list the users who need attention.
Review why each user is listed.
Select Repair telemetry IDs to fix some problems automatically.
Fix any users that remain by hand, for example on the Users page.
Why the user is listed: not in Microsoft Entra ID, telemetry ID mismatch, a MAIL# prefix on the email, a duplicate telemetry ID or a duplicate email.Microsoft Learn
Duplicate email
Common errors and fixes
Message
What to do
After Repair telemetry IDs a user can't sign in any more
The repair turned off a duplicate user or cleared the telemetry ID of a user not found in Entra ID. Add the user to Entra ID or remove the duplicate, then run the repair again. Microsoft Learn
Test checklist
Open Invalid users and select Refresh.
For each user listed, note the type of problem (not in Entra ID, telemetry ID mismatch, MAIL# prefix, duplicate telemetry ID, duplicate email).
Before deleting and reimporting a user, record their roles so you can add them back.
Fix the users, then select Refresh again and check that the page is blank.
Run Refresh after every environment copy and before go-live, record the roles of any user you delete and reimport, then use Repair telemetry IDsUsers missing from Entra ID or with duplicate telemetry IDs can't sign in, and deleting a user removes their role assignments.
Hard to reverse: Repair telemetry IDs can disable duplicate users and set the telemetry ID to null for users not found in Entra ID, so those users can't sign in until you add them to Entra ID (or remove duplicates) and run the repair again. Microsoft Learn
If you change it later
Repair telemetry IDs can turn off some invalid users and clear their telemetry ID, so those users can't sign in until they are fixed. Microsoft Learn
To set it up or change itSecurity administrator SysSecSecurityAdministratorGive people one of these roles. On this system, 1 role can open this page.Checked in Dynamics 365
Actions on the page
Options: Personalize, Page options, ShareChecked in Dynamics 365
Load order: Invalid users has no data entity in Data management, so it can't be loaded from a file or a configuration template. The list is rebuilt with Refresh from the users of each environment; fix users on the Users page or with User information.Checked in Dynamics 365