Hello @operaciones sogrisel
The AADSTS50020 error means that the account needs to be added as an external user in the tenant first. It indicates that the Microsoft account you are trying to use is not recognized by the Microsoft Entra Directory tenant.
To resolve this issue, you need to add the Microsoft account as an external user in the tenant. Here are the steps to add an external user in the tenant:
- Sign in to the Microsoft Entra id as a Global administrator or User administrator.
- In the Azure portal, select Microsoft Entra ID.
- Select Users.
- Select New guest user.
- Enter the email address of the Microsoft account you want to add.
- Select the role you want to assign to the user.
- Select Invite.
- The user will receive an email invitation to join the tenant; you have to accept the invite.
Once the Microsoft account is added as an external user in the tenant, you should be able to sign in to the app without encountering the error message.
You can check the document to resolve the AADSTS50020 error: https://learn.microsoft.com/en-us/troubleshoot/entra/entra-id/app-integration/error-code-aadsts50020-user-account-identity-provider-does-not-exist
Hope this information helps. If you are still facing the issue let us know. Happy to assist you further.