Hi Amir,
Thank you for posting your query on Microsoft Q&A.
The error AADSTS16000 means that the user account from the specified identity provider (such as a personal Microsoft account from live.com) does not exist in the Microsoft Entra ID (Azure AD) tenant you are trying to access.
In Microsoft Entra ID, this error occurs when your account is not registered or added as a guest in the tenant you want to access. It can also happen if you try to sign in with a personal account to a tenant that only allows organizational accounts, or if the application’s configuration does not permit your account type.
Please follow the steps below to fix the issue:
Add User as a Guest in the Tenant: The administrator of the Microsoft Entra tenant should add your account as a guest user. This can be done in the Microsoft Entra admin center: Go to Microsoft Entra ID > Users > New guest user. This step is necessary if you are from another tenant or using a personal Microsoft account.
Check Application Sign-in Audience: Verify that the application you are accessing allows your account type. The application registration’s signInAudience should match your account type (organizational vs. personal). Multi-tenant applications should allow AzureADandPersonalMicrosoftAccount.
Login Using the Correct Tenant URL: Sign in using the specific tenant URL, for example: https://login.microsoftonline.com/{tenant-id}/
Sign Out and Sign Back In: Fully sign out of all Microsoft accounts in your browser and try signing in again with the account associated with the target tenant.
Verify User Account Exists: Tenant administrators can confirm if your user account is present or invited by checking in Microsoft Entra admin center or using Microsoft Graph API.
Please refer to:
- AADSTS16000 - Microsoft Entra authentication error codes
- Add guest users for collaboration in Microsoft Entra ID
- Application registration signInAudience property
Please click "Accept as Answer" if this resolves your issue. This will help others with a similar problem find the solution.