The error message you're encountering while trying to sign into Dynamics 365 indicates a common issue related to Azure Active Directory (AD) tenant and user account configurations. The message suggests that the user account you're using to sign in isn't recognized in the tenant associated with the Dynamics 365 application you're attempting to access.
Here are the steps to resolve this issue:
Verify the User Account and Tenant: Make sure that the user account you are using is part of the 'Microsoft Services' tenant or is added as an external (guest) user in this tenant. The tenant mentioned in the error message should match the tenant where Dynamics 365 is hosted.
Add as an External User: If the user account is not part of the 'Microsoft Services' tenant, the account needs to be added as an external user. This is typically done by an administrator in the Azure AD tenant:
- The administrator should go to the Azure portal, navigate to Azure Active Directory, and select 'Users'.
- Choose 'New guest user' and follow the prompts to add the external user. The external user will receive an invitation to join the tenant.
Check Application Configuration: Ensure that the Dynamics 365 application (identified by the ID '5858cdae-b010-4972-972e-f62332704048' in your error message) is configured correctly in Azure AD to allow access to the users or user groups in question.
Permissions and Consent: Verify that the necessary permissions are granted for the user account. If the application requires specific roles or permissions, these need to be assigned to the user account or to a group that the user is a part of.
Correct Sign-in Method: Make sure you are using the correct method to sign in. If you are signing in as a guest user, use the invitation link that was sent to your email.
Troubleshoot with Azure AD Sign-In Logs: Azure AD provides detailed sign-in logs that can help identify the root cause of the issue. An administrator can access these logs in the Azure portal to gain more insights.
Contact Administrator: If you are unable to resolve the issue, contact the administrator of the 'Microsoft Services' tenant. They can provide specific guidance and can directly manage user access and permissions.
Remember, access to Dynamics 365 and other Microsoft services integrated with Azure AD depends on correct user account configuration and permissions within the specific tenant. If you're not an administrator, you might need assistance from your organization's IT department or the tenant's admin.