Views:
Behavior:
When attempting to run the User Synchronization V2 tool, the following error is encountered:

"An error occurred while trying to get Azure users. Please check your credentials and internet connection."


Answer: 
This issue can occur if the Azure App Registration does not have sufficient API permissions configured. Please verify that the Azure App Registration associated with the User Synchronization V2 tool has the appropriate API permissions for accessing user information.
For step-by-step guidance on configuring permissions and connecting the User Synchronization V2 tool with Azure Active Directory, please refer to KBA-36343

KBA is applicable to both On-premises and Cloud Organizations.