I have created an Automation Account and assigned the Contributor role (this account will be used to update Entra from our HR System). I have specified System Managed Identity.
Here is the role assignment:
Connect-MGGraph -Identity successfully connects, but a simple get-mguser fails with insufficient privileges.
System.Exception: [Authorization_RequestDenied] : Insufficient privileges to complete the operation.
Do I need to do more with the system-managed identity?


Ran the following command for the system-managed identity to grant the permissions:
This will grant the permissions required to the Managed identity object.