Forum Discussion
maheshspeaks
Jul 13, 2023Copper Contributor
Get-MgPolicyTokenLifetimePolicy - Insufficient privileges to complete the operation
Hello Team, I'm trying to get details of policy token lifetime details but getting error. What Role is required to run this command PS C:\WINDOWS\system32> Connect-MgGraph Welcome To Microsof...
VasilMichev
Jul 13, 2023MVP
As the error message suggests, you need permissions to run this cmdlet. To find out what permissions need to be granted for any given cmdlet from the Graph module, you can use Find-MgGraphCommand:
Find-MgGraphCommand -Command Get-MgPolicyTokenLifetimePolicy
In this case, you need at least Policy.Read.All permissions. If you are and admin user and able to consent to them, connect via:
Connect-MgGraph -Scopes Policy.Read.All
If not, ask an admin to consent.
Find-MgGraphCommand -Command Get-MgPolicyTokenLifetimePolicy
In this case, you need at least Policy.Read.All permissions. If you are and admin user and able to consent to them, connect via:
Connect-MgGraph -Scopes Policy.Read.All
If not, ask an admin to consent.
maheshspeaks
Jul 19, 2023Copper Contributor
Thank you VasilMichev . Command seems to work.