How to access Participant details in teams online meeting ? getting error = Application is not registered in our store

Hashaam Hasaan 0 Reputation points
2024-07-16T17:00:34.09+00:00

I would like to access the mediaStream property of the participants in online meeting in teams as mentioned in the doc here.
https://learn.microsoft.com/en-us/graph/api/resources/mediastream?view=graph-rest-1.0

  1. How to get the call ID?
  2. Is there any example available which shows this? ( I am interested in label field )
  3. What type of auth flow is required?
  4. Deleted permission or application permission?
CLIENT_SCOPES = ["https://graph.microsoft.com/.default"]
@app.get("/api/auth/login")
def login():
    auth_url = msal_client.get_authorization_request_url(CLIENT_SCOPES)
    return RedirectResponse(auth_url)
@app.get("/api/auth/callback")
async def auth_callback(request: Request):
    try:

        code = request.query_params.get("code")
        credential = AuthorizationCodeCredential(
            tenant_id=TENANT_ID,
            client_id=CLIENT_ID,
            client_secret=CLIENT_SECRET,
            authorization_code=code,
            redirect_uri=REDIRECT_URI
        )
        graph_client = GraphServiceClient(credentials=credential, scopes=CLIENT_SCOPES)
        calls = await graph_client.communications.calls.get()
        for call in calls:
            print(f"Call ID: {call.id}")
error: MainError(additional_data={}, code='UnknownError', details=None, inner_error=InnerError(additional_data={}, client_request_id='05143fb2-76f6-4707-9342-84739c95101a', date=DateTime(2024, 7, 16, 15, 44, 28, tzinfo=Timezone('UTC')), odata_type=None, request_id='1ef5bac6-6262-4267-86e2-8f2ecbcbfaa5'), message='{"errorCode":"7503","message":"Application is not registered in our store.","instanceAnnotations":[]}', target=None)

Screenshot 2024-07-16 at 17.59.22

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,413 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
942 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.
3,060 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 40,226 Reputation points
    2024-07-17T09:42:19.54+00:00

    Hi @Hashaam Hasaan

    Listing all calls by calling the GET /communications/calls endpoint is not supported. This API endpoint also does not exist in the Graph API documentation. Only the GET /communications/calls/{id} endpoint is currently supported.

    To get the call id, you can find it after creating the call.

    Note that the GET /communications/calls/{id} endpoint only supports application permissions, you need to create an application-only context using the client credentials flow.

    scopes = ['https://graph.microsoft.com/.default']
    # Values from app registration
    tenant_id = 'YOUR_TENANT_ID'
    client_id = 'YOUR_CLIENT_ID'
    client_secret = 'YOUR_CLIENT_SECRET'
    
    # azure.identity.aio
    credential = ClientSecretCredential(
        tenant_id=tenant_id,
        client_id=client_id,
        client_secret=client_secret)
    
    graph_client = GraphServiceClient(credential, scopes) 
    
    result = await graph_client.communications.calls.by_call_id('call-id').get()
    

    Hope this helps.

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

    0 comments No comments