Share via

Entra External Id does not create user session when logging from login.microsoftonline.com link

Qazi Abdur Rehman 20 Reputation points
2025-03-20T09:13:56.31+00:00

On the Entra External tenant where there are multiple types of users: external, invited and internal.

User logs in with ciamlogin.com endpoint to access a resource (a custom scope of a Multi-tenant application), I get the following error:

AADSTS500207: The account type can't be used for the resource you're trying to access.

However, assigning a role to the external user and using the login.microsoftonline.com endpoint works, but then session-related issues arise as below.

When the user is logged in having user type external or internal, with the endpoint https://<tenant>.ciamlogin.com/<tenantId>, the user gets successfully logged in and session is created in the browser. if the user challenge the login endpoint again, as the user is already signed in (below screenshot), user does not have to provide the credentials again. But I get a AADSTS500207 error when requesting scope of a multi-tenant app.

User's image

When the user logged in having user type external or internal, with the endpoint https://login.microsoftonline.com/<tenantId>, the user gets successfully logged in and I got access token for the requested scope. But the session is not maintained in the browser. If the user challenge back the same login endpoint, it asks the user to enter credentials again (below screenshot). Which is not the expected behaviour.

User's image

What I have assured:

  1. There is no third party cookies blocked in browser
  2. Tried on different browsers but same
  3. No conditional access policy related to session management
  4. Not passing prompt=login/none in the request
  5. Workforce tenants are working fine
  6. Tried on Chrome, Edge and FireFox

Can anybody help please?

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

Answer accepted by question author
  1. Anonymous
    2025-03-28T09:01:51.3233333+00:00

    Hi @Qazi Abdur Rehman,

    Based on your query, I understand that you have an issue when you configured the application as multi-tenant application.

    Microsoft Entra External tenant supports only single tenant application configuration. Currently Entra External does not support multi-tenant applications for authentication. This is by design and currently we do not have any ETA to update on you the same.

    I would like to request you to share your idea on the same in our feedback forum link and upvote to let our product team know there is a requirement of the product.

    I hope this information is helpful. Please feel free to reach out if you have any further questions.

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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.