Forum Discussion
PoorMens_Bravo
Feb 23, 2024Copper Contributor
New-applicationaccesspolicy is resulting in error
Hi,
I am running the below command and i am getting the below error
New-ApplicationAccessPolicy -AppId clientid -PolicyScopeGroupId grpname-GraphAppAccess -AccessRight RestrictedAccess -Description "Restrict application access to the members of group grpname-GraphAppAccess"
Write-ErrorMessage : A server side error has occurred because of which the operation could not be completed. Please try again after some time. If the problem still persists,
please reach out to MS support.
I am totally clueless of why i am seeing this message, i checked App is registered in Azure, grp is visible in Exchange
- Actually, I found what could be the issue. It is nothing but, i was doing a typo, instead of RestrictAccess i was keying RestrictedAccess.
2 Replies
Sort By
- Might be a backend issue, the error message doesn't really give us anything to work with.
That said, Microsoft is going to deprecate application access policies in the future, in favor of the "native" RBAC controls for applications: https://learn.microsoft.com/en-us/exchange/permissions-exo/application-rbac - PoorMens_BravoCopper ContributorActually, I found what could be the issue. It is nothing but, i was doing a typo, instead of RestrictAccess i was keying RestrictedAccess.