Looks like a backend issue, likely some sync needs to happen. Best open a support case.
Grant-CsApplicationAccessPolicy PS command doesn't work
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