Grant-CsApplicationAccessPolicy PS command doesn't work

Maksym Rossiitsev 1 Reputation point
2023-11-01T18:00:40.41+00:00

I'm using Azure application to access MS Graph API endpoints on multiple accounts for some time.

But, for some reason, I can't make Grant-CsApplicationAccessPolicy work on one of the applications, to grant access to Online Meetings API (using Java SDK for that).

Even after I execute the commands in the order, provided by the documentation:

Connect-MicrosoftTeams

New-CsApplicationAccessPolicy -Identity MeetingsPolicy -AppIds "af2d5b07-xxxx-xxxx-xxxx-284d936c063a" -Description "new meetings policy"

Grant-CsApplicationAccessPolicy -PolicyName MeetingsPolicy -Global

It still gives me a "No application access policy found for this app." error:

x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"Central US","Slice":"E","Ring":"2","ScaleUnit":"002","RoleInstance":"DS3PEPF00001666"}}
{
  "error": {
    "code": "General",
    "message": "No application access policy found for this app.",
    "innerError": {
      "request-id": "4129063a-e355-4179-8552-b1490e7f363c",
      "date": "2023-11-01T17:37:49",
      "client-request-id": "efa28c6c-993f-43cf-9841-3347792478aa"
    }
  }
}

What I have tried so far:

  • Recreated an application from scratch
  • Waited for 24 hours after assigning access policies
  • Recreated client secrets
  • Granted extra permissions and roles to the user on behalf of which PS commands are executed
  • Repeated the process

Is there anything I can do to fix it?

Thank you

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

1 answer

Sort by: Most helpful
  1. Vasil Michev 103.4K Reputation points MVP
    2023-11-03T07:20:43.9733333+00:00

    Looks like a backend issue, likely some sync needs to happen. Best open a support case.

    0 comments No comments

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.