Microsoft Entra External ID authentication and multi-tenant application

Paul 45 Reputation points
2024-08-19T21:18:37.67+00:00

Hi,

We have a mutli-tenant app registration in our organization portal.azure.com

We also created a Microsoft Entra External ID which we invite our customer into. The customer have a Microsoft Entra ID account and receives the email invitation, accepts and I can see the account in the Microsoft Entra External ID where user type is 'Guest' and Identities is 'ExternalAzureAD'.

In the Microsoft Entra External ID, we went through the admin consent process to add our multi-tenant app in the Microsoft Entra External ID / Enterprise Applications. This works as expected. As after the consent it appears in the Enterprise Applications list.

Now when the user tries to authenticate it receives "invalid_request: AADSTS500208: The domain is not a valid login domain for the account type."

BUT if I assigned a role for example 'Guest Inviter' to the guest account. Then the user is able to login without any issue.

Why does assigning a role will make it work? Is this by design?

Please note that the authority used is login.microsoft.com/<tenantId>

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,908 questions
0 comments No comments
{count} vote

Accepted answer
  1. Navya 11,940 Reputation points Microsoft Vendor
    2024-08-20T07:33:34.39+00:00

    Hi @Paul

    Thank you for posting this in Microsoft Q&A.

    I understand that you are getting error "invalid request: AADSTS500208: The domain is not a valid login domain for the account type."

    Why does assigning a role will make it work? Is this by design?

    Yes, this error is expected if the user has no role assigned.

    This error could be caused by a consumer user from an AAD B2C or an Entra External ID for Customers (CIAM) tenant attempts to log in to login.microsoftonline.com without having any roles assigned.

    Azure AD B2C consumer users are intended to login to b2clogin.comURL

    Entra External ID for Customers consumer users are intended to login to ciamlogin.com URL

    If it is a guest admin \ invitation scenario, where user is hitting login.microsoftonline.com endpoint to manage a B2C or CIAM tenant via Entra\Azure portals then ensure the user has a valid role assigned in resource tenant.

    Hope this helps. Do let us know if you any further queries.

    Thanks,

    Navya.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Pim Wissink 5 Reputation points
    2024-08-26T11:05:09.7966667+00:00

    Hi,

    I'm having the same dillema as OP. I have to assign administrative roles to external users before they can use SAML/SSO to login to our application. The downside is of course, that the external users is now capable of reading all user en application data in our Azure External ID tenant.

    How to circumvent this problem?

    Thanks!

    1 person found this answer helpful.
    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.