question

Joao-5008 avatar image
0 Votes"
Joao-5008 asked IDBMC-7397 commented

Error: Selected user account does not exist in tenant 'Default Directory'

Hi there,

I am getting the error below when I am trying to sign into my Microsoft account to integrate Azure AD:

Selected user account does not exist in tenant 'Default Directory' and cannot access the application 'ab3b2259-2f39-45be-a93f-1d05e53530d3' in that tenant. The account needs to be added as an external user in the tenant first. Please use a different account.

I do not have a "Default Directory" and could not see an application with the ID mentioned. I have Global Administrator rights in my account and I am the admin of my Org.




azure-ad-tenant
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Resloved UN identity

0 Votes 0 ·

1 Answer

JamesTran-MSFT avatar image
0 Votes"
JamesTran-MSFT answered JamesTran-MSFT commented

@Joao-5008
How're you signing in to your Microsoft account? If you're using Azure PowerShell or CLI, can you try using one of the below commands.

 CLI:
      az login --tenant <tenant>

 If you have multiple subscriptions you can list them and set the one you want to use:
      az account list --output table
      az account set --subscription "My Demos"

    
 PowerShell:
     Connect-AzAccount -Subscription <String>
     or
     Connect-AzAccount -Tenant <String>

To change your default directory, you can also do it from within the Azure Portal:
40176-image.png

Once you've selected the correct tenant/directory, you can check to see if the user does exist in that directory by going to:

 Azure Active Directory -> Users -> All Users -> Search for the user


I hope this helps, if you have any other questions, please let me know.
Thank you for your time and patience.


image.png (32.2 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Joao-5008
I just wanted to check in and see if you had any other questions or if you were able to resolve this issue?

0 Votes 0 ·