How to retrieve Teams group online meetings by using graph API if I'm not an organizer of the events?

Alexey Mavrin 0 Reputation points
2023-08-02T14:36:22.02+00:00

Hello. I've been trying to retrieve online meetings of Teams group I'm a member of but all that I can is to get online meeting if it is in my own calendar, except attendees report and attendees record. But I need to get all info about the events for my company. How can I do it? I use a msgraph-sdk python library. I was trying to get credentials by the following classes:

credential = UsernamePasswordCredential(    client_id=client_id, tenant_id=tenant_id,    username=azure_user, password=azure_password)
app_credential = CertificateCredential(    client_id=client_id, tenant_id=tenant_id,    certificate_path='/home/path_to_cert/cert.pem')

But I get only:

{
    "error": {
        "code": "Forbidden",
        "message": "An error has occurred.",
        "innerError": {
            "request-id": "fd8205f2-ce6a-422c-a869-9c3842b19966",
            "date": "2023-08-02T14:29:55",
            "client-request-id": "fd8205f2-ce6a-422c-a869-9c3842b19966"
        }
    }
}

in the first way and:

{
    "error": {
        "code": "General",
        "message": "No application access policy found for this app.",
        "innerError": {
            "request-id": "deca1642-9e76-45b6-a1ac-2e9f04d37d95",
            "date": "2023-08-02T14:32:37",
            "client-request-id": "deca1642-9e76-45b6-a1ac-2e9f04d37d95"
        }
    }
}

in the second.

I've all necessary permissions:

  "scp": "Calendars.Read Calendars.Read.Shared Calendars.ReadBasic Channel.ReadBasic.All ChannelMember.Read.All ChannelMessage.Read.All ChannelSettings.Read.All Chat.Read Chat.ReadBasic ChatMember.Read ChatMessage.Read Group.Read.All GroupMember.Read.All OnlineMeetingArtifact.Read.All OnlineMeetingRecording.Read.All OnlineMeetings.Read OnlineMeetingTranscript.Read.All Team.ReadBasic.All TeamMember.Read.All TeamSettings.Read.All TeamsTab.Read.All User.Read User.ReadBasic.All profile openid email",
 "roles": [
    "TeamMember.Read.All",
    "OnlineMeetings.Read.All",
    "TeamsActivity.Read.All",
    "OnlineMeetingArtifact.Read.All",
    "ChannelSettings.Read.All",
    "OnlineMeetingRecording.Read.All",
    "Calendars.Read",
    "Channel.ReadBasic.All",
    "CallRecords.Read.All",
    "ChatMessage.Read.All",
    "User.Read.All",
    "OnlineMeetingTranscript.Read.All",
    "ChannelMember.Read.All",
    "Calendars.ReadBasic.All",
    "Team.ReadBasic.All",
    "Chat.Read.All",
    "ChannelMessage.Read.All",
    "TeamSettings.Read.All",
    "Contacts.Read",
    "Chat.ReadBasic.All",
    "Calls.AccessMedia.All",
    "ChatMember.Read.All"
  ],

Is there any ideas in this occasion. How to retrieve online meetings and reports organized by another user?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,013 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. TH-4749-MSFT 3,360 Reputation points
    2023-08-15T14:48:56.48+00:00

    Hello Alexey Mavrin,

    Thanks for reaching out. For SDK related questions please post them on the respective Graph SDK Github Forum.

    Below is an article with step by step instructions to build a Python application using Graph API including setting up an Application in Azure and authentication.

    https://learn.microsoft.com/en-us/graph/tutorials/python?tabs=aad

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

    Thanks.

    0 comments No comments