User with personal account(outlook) not redirecting to consent page while trying to sign in to teams bot application which is registered in a verified azure directory

Karthik 0 Reputation points
2023-08-28T07:00:24.8+00:00

When attempting to sign in to the application using personal accounts (such as Outlook or Xbox), we have encountered the following error message:

"Selected user account does not exist in tenant 'smartqed.com' and cannot access the application '8a84642a-0168-48f7-87c3-1255d6502fc2' in that tenant. The account needs to be added as an external user in the tenant first. Please use a different account."

We have noted that a similar application, registered with a non-verified sandbox Azure Domain "onmicrosoft.com,", which we used to test our application throughout the development is functioning correctly and redirecting the user to the consent page. Both applications share identical configurations and permissions.

This issue happened after we migrated our application to our organizational domain directory which has a verified domain.

URLs we use:

https://login.microsoftonline.com/common/login/oauth2/code/azure

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=8a84642a-0168-48f7-87c3-1255d6502fc2&response_mode=form_post&response_type=code&scope=openid%20offline_access%20profile%20https://graph.microsoft.com/User.Read&state=7PmXPyc8Blx_NoE3qKyheyY3rw8-C-edhp-FKPoYtEI%3D&redirect_uri=https://a568-103-121-26-217.ngrok-free.app/login/oauth2/code/azure&prompt=consent&nonce=t-FojwOIUVmy0JUuri7v7ec0WIVZDGAV20F9L6j4ipw

User's image

Microsoft Teams | Development
Microsoft Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 46,376 Reputation points
    2023-08-28T07:14:11.9633333+00:00

    Hi @Karthik

    Please go to Azure AD and check if your app is already registered as: Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox).

    User's image

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.


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.