Create a team meeting using API

Kanoth Siraj 1 Reputation point
2020-09-03T17:43:22.99+00:00

I am trying to create an MS team meeting.

followed steps: https://learn.microsoft.com/en-us/graph/api/team-post?view=graph-rest-beta&tabs=objc

I got user access token and app token

AADSTS50020: User account 'kabcD@Stuff .com' from identity provider 'live.com' does not exist in tenant 'Default Directory' and cannot access the application 'feb2bs4f-aa4b-462e-ass3-ba546510088a'(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.

Do You think am I following the correct step .. anyone can be explained step by step or any better documentation?

My requirement: In my organization, if any asking for an appointment our app will create a meeting link automattically (MS team)

Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Most helpful
  1. soumi-MSFT 11,861 Reputation points Moderator
    2020-09-08T07:08:50.627+00:00

    @Kanoth Siraj , Thank you for reaching out. The error "AADSTS50020: User account '******@gmail.com' from identity provider 'live.com' does not exist in tenant 'Default Directory' and cannot access the application 'feb2bs4f-aa4b-462e-ass3-ba546510088a'(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." is coming up as the user account used is not a Work or School account, and if you check the article that you shared "https://learn.microsoft.com/en-us/graph/api/team-post?view=graph-rest-beta&tabs=objc" and check the permission section in that article you would find that Delegated (personal Microsoft account) is Not supported. hence you get that error.

    In order to get this API working, you would need a user account that is a part of your organization in Azure AD, like a Work or School account that needs to be used here.

    Hope this helps.

    Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.

    Was this answer helpful?

    0 comments No comments

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.