get access without an user failing

Arka Dutta 1 Reputation point
2021-09-28T12:17:04.197+00:00

I had posted a question => https://learn.microsoft.com/en-us/answers/questions/568047/graph-rest-api-to-send-a-message-to-a-teams-channe.html .

I could understand that I was making a mistake that I was using a personal account. In order to fix it , I have now bought a domain and have created a Microsoft teams instance/tenant with a work email.

While trying to follow this blog => https://learn.microsoft.com/en-us/graph/auth-v2-service, I have now hit a dead-end.

I guess according to the documentation LALON CORP AD Application should get permission for the new instance, but somehow it is not working.

AADSTS50020: User account 'somename@bankim.co.in' from identity provider 'live.com' does not exist in tenant 'Lalon Corp' and cannot access the application 'app-id(app-name) 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.

What am I doing wrong now. These are 2 different MsTeams instances/tenants.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,679 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,877 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,606 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 34,061 Reputation points Microsoft Employee
    2021-10-06T22:58:04.297+00:00

    This error generally means that a personal account with the same email address was used to sign-in instead of the "Work or school account."

    You should be able to resolve this by doing the following:

    1. Sign-out of your personal account from https://account.microsoft.com/ or another Microsoft site.
      (If you would like to continue using your personal account it is also possible to create a new browser profile in Edge or Chrome.)
    2. Sign-in again to the service and verify that the "Work or school account" option is selected.

    Hope this helps!

    0 comments No comments