No Application Access Policy found for this app

Susac, Karlo 41 Reputation points
2023-09-12T08:38:01.4566667+00:00

Hello, I have an issue with Microsoft Graph API call to create an online meeting.

As a dev that uses the API, this used to work, then suddenly it just stopped working and I am always getting an error that there is no application access policy for my application.

This is what I use: https://learn.microsoft.com/en-us/graph/api/application-post-onlinemeetings?view=graph-rest-1.0&tabs=http

I am also using application permissions so I need this:
User's image

User's image

Besides permissions, I know that I need an application access policy and I have indeed granted it to my application

User's image

User's image

So I have created an application access policy, I have needed permission to create an online meeting but whenever I try to create one, I get this response:
User's image

Any idea what could be wrong here?

Microsoft Teams | Development
Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 9,061 Reputation points Microsoft External Staff Moderator
    2023-09-14T06:41:07.4833333+00:00

    Susac, Karlo - Could you please make sure that you have followed this document properly while configuring application access policy and granting it to the user to allow the app IDs contained in the policy to access online meetings on behalf of the granted user?

    1. Create an application access policy containing a list of app IDs.
      New-CsApplicationAccessPolicy -Identity Test-policy -AppIds "ddb80e06-92f3-4978-bc22-a0eee85e6a9e", "ccb80e06-92f3-4978-bc22-a0eee85e6a9e", "bbb80e06-92f3-4978-bc22-a0eee85e6a9e" -Description "description here"
    2. Grant the policy to the user to allow the app IDs contained in the policy to access 1) online meetings on behalf of the granted user, and 2) virtual events created by 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.

    For validating application access policy, you can run this command
    Get-CsApplicationAccessPolicy to check if the policy created successfully or not.
    https://learn.microsoft.com/en-us/powershell/module/skype/get-csapplicationaccesspolicy?view=skype-ps

    Thanks, 

    Prasad Das

    ************************************************************************* 

    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.


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.