Visual Studio Community: IntelliCode Error AADSTS50020

Mohamed Ali 0 Reputation points
2023-02-25T11:20:24.7433333+00:00

I tried to enable IntelliCode on visual studio community 2022 and I noticed the following

  
Request Id:  4c4c79a3-cf18-442e-a65b-e01960c20400 
 
Correlation Id:  00503c5a-6acb-4848-9471-38c592269ab9 

Timestamp:  2023-02-25T11:05:01Z 
 

Message:  AADSTS50020: User account ****@live.com from identity provider 'live.com' does not exist in tenant 'Microsoft Services' and cannot access the application '04f0c124-f2bc-4f59-8241-bf6df9866bbd'(VS with native MSA) 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. 
    


This account was used with educational license(vs enterprise 2019) but I am currently using vs community edition 2022 now, so there's no organization !!!
I tried different account that wasn't linked to educational license and I have the same error

Microsoft Security Microsoft Entra Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Shweta Mathur 30,296 Reputation points Microsoft Employee Moderator
    2023-02-27T07:13:25.8733333+00:00

    Hi @Mohamed Ali

    I understand you are trying to access Azure Active Directory and facing issues.
    This is due to you sign into Microsoft services tenant (f8cdef31-a31e-4b4a-93e4-5f571e91255a) as a standard user with restricted access.

    This error usually occurs when you sign into Azure Portal using your personal account which is not added as an external/guest user to an Azure AD tenant.

    You can ask the global administrator to invite you as a guest user as mentioned here: https://learn.microsoft.com/en-us/azure/active-directory/external-identities/add-users-administrator#add-guest-users-to-the-directory. When you accept the invite sent to you via email and added to tenant, then you can also create your own tenant navigating to https://portal.azure.com/#create/Microsoft.AzureActiveDirectory.

    Alternatively, if you want to perform administrative actions, you must have administrative access to the tenant, for which you need to create your own tenant rather than using the Microsoft Services tenant.
    When you create a new tenant, you by default become the Global Administrator of the new tenant and have full access to all the options in that tenant.
    To create a new tenant, open in-private/incognito browser window, access https://azure.microsoft.com/en-us/free/ to create a free Azure account.

    Once the new account is created, you should be able to see and switch to the new tenant by clicking on the settings icon as highlighted below:

    207348-image.png

    Hope this will help.

    Thanks,

    Shweta

    Please remember to "Accept Answer" if answer helped you.

    0 comments No comments

Your answer

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