I am currently trying to monitor any RBAC changes that happens in our subscriptions example: John.Doe added Sue.Jones as Reader to Resource Group rg-test. Is there any to achieve what I am trying using powershell/cli/rest. From what I have tried and researched, it is not.
Looking in the activity log, for a Write RoleAssignments operation, the summary has all the output I need but when using powershell/cli , you arent able to get what role was assigned or to who. In summary you get:
Operation name
Write RoleAssignments
Time stamp
Wed(Eastern Daylight Time)
Event initiated by: John.Doe
MessageShared with 'Sue.Jones'.
Role: Reader
Scope Resource group: 'rg-test'
Using powershell/cli/alerts you get
Activity log alert alert-iamtesting Time May 19, 2021 15:29 UTC Category Administrative Operation name Microsoft.Authorization/roleAssignments/write
Correlation ID 0000000-000000000-000000000
Level Informational
Resource ID /subscriptions/0000000-000000000-000000000/resourceGroups/rg-test/providers/Microsoft.Authorization/roleAssignments/0000000-000000000-000000000
Caller John.Doe
Properties {"statusCode":"Created","serviceRequestId":"0000000-000000000-000000000","eventCategory":"Administrative","entity":"/subscriptions/0000000-000000000-000000000/resourceGroups/rg-test/providers/Microsoft.Authorization/roleAssignments/00000000000000000