question

ArkaDutta-0180 avatar image
0 Votes"
ArkaDutta-0180 asked MarileeTurscak-MSFT answered

get access without an user failing

I had posted a question => https://docs.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://docs.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.

azure-active-directoryoffice-teams-app-devmicrosoft-graph-teamwork
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.

1 Answer

MarileeTurscak-MSFT avatar image
0 Votes"
MarileeTurscak-MSFT answered

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!

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.