Accessing OnlineMeetings with Azure AD app without global application access policy

Vasyl Yakovishak 0 Reputation points
2024-08-27T15:20:03.6866667+00:00

I have an Azure AD app registration with the following Microsoft Graph permissions:

  • OnlineMeetings.ReadWrite.All
  • OnlineMeetings.Read.All
  • OnlineMeetingTranscript.Read.All

I'm trying to access online meetings across my organization using Graph API endpoints with my app's credentials instead of a specific user's context. I understand that I need to create an application access policy, but I want to avoid using the -Global parameter if possible.

I've attempted to use a security group instead, but it didn't work. Here's what I've tried so far:

  1. Created a security group and added relevant users
  2. Used the following PowerShell commands: New-CsApplicationAccessPolicy -Identity "MeetingAccessPolicy" -AppIds "my-app-id" -Description "Access policy for meetings" Grant-CsApplicationAccessPolicy -PolicyName "MeetingAccessPolicy" -Group "my-security-group-id"
  3. Waited for policy propagation (over 30 minutes)
  4. Tested API calls using the app's access token

https://graph.microsoft.com/v1.0/users/{user-id}/onlineMeetings/{meeting-id} https://graph.microsoft.com/v1.0/users/{user-id}/onlineMeetings/{meeting-id}/transcripts/{transcript-id}/content

I receive the error:

{
    "error": {
        "code": "General",
        "message": "No application access policy found for this app.",
        "innerError": {
            "request-id": "xxxx-xxxx-xxxx-xxxx",
            "date": "2024-08-13T19:47:25",
            "client-request-id": "xxxx-xxxx-xxxx-xxxx"
        }
    }
}

Despite these attempts, I'm still unable to access meetings for users in the security group. Questions:

  1. Is there a way to grant application-level access to online meetings without using a global policy?
  2. Can I use security groups or other Azure AD groups effectively for this purpose?
  3. Are there any specific requirements or configurations I might be missing?
  4. If a global policy is the only option, are there any best practices or security considerations I should be aware of?

Any insights or alternative approaches would be greatly appreciated. Thank you!

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,039 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,943 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,230 questions
{count} votes

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.