How to get a notification when Teams online meeting has started

Nyan Cat 20 Reputation points
2025-01-15T15:22:30.7166667+00:00

Hi I am trying to subscribe to online meeting call events.

I am using MS Graph Python SDK and a GraphServiceClient to post the subscription request.

I have subscription for new event creation and when this happens I check whether it is on online meeting and if it is I then pass the join url to this function: I checked the join url - it is always functional link.

I get this error:

APIError

    Code: 400

    message: None

    error: MainError(additional_data={}, code='BadRequest', details=None, inner_error=InnerError(additional_data={}, client_request_id='d0340ddd-8299-4816-a04e-f871ec71b673', date=DateTime(2025, 1, 15, 14, 48, 28, tzinfo=Timezone('UTC')), odata_type=None, request_id='7e2c390c-c04a-46dd-adbd-84eec2dab52a'), message='Bad Request - Error in query syntax.', target=None)
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,896 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,080 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,565 questions
{count} votes

Accepted answer
  1. Saranya Madhu-MSFT 1,425 Reputation points Microsoft Vendor
    2025-01-20T06:04:51.55+00:00

    Hi Nyan Cat,

    Thanks for reaching out to Microsoft!

    For cloud communications resources such as online meetings and virtual events, Microsoft Graph application permissions, tenant administrators must configure an application access policy.

    For validating application access policy, you can run this command Get-CsApplicationAccessPolicy to check if the policy created successfully or not.

    As per the documentation, ensure to Grant the policy to the user to allow the app IDs contained in the policy to access online meetings on behalf of the granted user.

    Grant-CsApplicationAccessPolicy -PolicyName Test-policy -Identity "748d2cbb-3b55-40ed-8c34-2eae5932b22a"

    Note: Identity refers to the policy name when creating the policy, but the user ID when granting the policy.

    Changes to application access policies can take up to 30 minutes to take effect in Microsoft Graph REST API calls.

    While creating subscription make sure to Replace {JoinWebUrl} with the actual URL-encoded value when you specify the resource. Set includeResourceData to true and provide appropriate values for encryptionCertificate and encryptionCertificateId to subscribe to rich notifications.

    Subscribe to online meeting call events

    Hope this helps.

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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.