Domanda

I am trying to make a call in one of the channels in MS Teams via Postman.

I followed all the steps mentioned in the below article. I have also given all the required permission.

Create Call to Teams using GRAPH API - BETA

I am able to successfully retrieve other beta APIs but with /beta/app/calls I am getting the Application is not registered in our store error.

Initially, I got Unsupported AAD Identity error but, that I solved as per the steps mentioned in the below reference.

Solve Unsupported AAD Identity Error

Note: I tried to make the call from SPFx web part but over there also I am getting the same error.

My main goal is to make a call to channel of the team and all the members should get the notification for the same. (Same as meet now button's functionality in teams app)

Any help will be appreciated. Thanks in advance.

È stato utile?

Soluzione

I solved this issue by generating an access token without user as mentioned Get access without a user and passed it in the authorization.

Altri suggerimenti

You need to register in azure app registrion portal

Following are the steps:

  1. Register your app.
  2. Configure permissions for Microsoft Graph on your app.
  3. Get administrator consent.
  4. Get an access token.
  5. Use the access token to call Microsoft Graph.

Need to use "application ID" and Client "secret key" for authorization. Need to set permision to use Microsoft graph API (Like read , write permission). Then grant admin consent permissions for accesing api. A token is generated for authentication based on above configurations.

Reference link : https://docs.microsoft.com/en-us/graph/auth/

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top