Forum Discussion
Ihor_Piontkovskyi
May 28, 2024Copper Contributor
Cant call 'Get-SecOpsOverridePolicy' after successfully authentication to Exchange online
I have the following issue after my code has been working without issues for a long time in production. Nothing new has been installed lately. After successfully connecting to Exchange Online us...
Jun 02, 2024
You can use Get-ManagementRole to view the required roles for a certain cmdlet. Here's my output:
C:\Users\HarmVeenstra> Get-ManagementRole -Cmdlet Get-SecOpsOverridePolicy
Name RoleType
---- --------
Organization Configuration OrganizationConfiguration
Security Admin SecurityAdmin
Security Reader SecurityReader
View-Only Configuration ViewOnlyConfigurationIhor_Piontkovskyi
Jun 03, 2024Copper Contributor
Harm_Veenstra
Thank you for your response.
As I mentioned in the question I ensured that the application for which the token has been issued possesses both Security Administrator and Exchange Administrator assignments, along with Exchange.ManageAsApp permission.
In this scenario, Exchange Administrator is encompassed within the Organization Management role group. Thus, technically, my application holds sufficient permissions to execute that cmdlet.