Share via

The account needs to be added as an external user in the tenant first - AADSTS50020

Vinoth Jijan Vincent 221 Reputation points
2021-11-24T02:55:42.2+00:00

Experiencing authentication issues
The portal is having issues getting an authentication token. The experience rendered may be degraded.

Additional information from the call to get a token:
Extension: fx
Resource: jarvis
Details: AADSTS50020: User account '{EmailHidden}' from identity provider 'live.com' does not exist in tenant 'Microsoft Services' and cannot access the application 'c44b4083-3bb0-49c1-b47d-974e53cbdf3c'(Azure Portal) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account.
Trace ID: e198db53-ed9d-4647-9349-cb05413b7f00
Correlation ID: 949c25ac-bbd1-47c8-8587-7362ffffb59f
Timestamp: 2021-11-24 01:33:12Z


How to fix this issue due to this azure active directory i'm unable to get the primary domain field with the default domain "onmicrosoft.com"

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

9 answers

Sort by: Most helpful
  1. Florence Iosua 0 Reputation points
    2025-08-06T04:22:10.3233333+00:00

    Hello,

    Can someone please help me. I'm having a problem and im receiveing this message.

    "Sorry, but we’re having trouble signing you in.

    AADSTS50020: User account '******@gmail.com' from identity provider 'live.com' does not exist in tenant 'BYU-Pathway Worldwide' and cannot access the application 'api://c8973960-a943-48e5-974c-49db7b1e17c5'(101008.Cmc.Portal) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account."

    Thanks,

    Flo

    0 comments No comments

  2. adamctaylor 0 Reputation points Microsoft External Staff
    2023-09-12T19:06:30.23+00:00

    I was able to resolve (this error in Visual Studio 2022) by unchecking -

    Authenticate across all tenants when adding accounts in Options -> Accounts -> Sign-in options.User's image


  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.