Simplify user tasks like bulk creation, updates, password resets, deletions, license checks & more — all from one place.
🚀 Launch ToolkitAdministrators in Microsoft 365 hold the keys to your organization’s digital kingdom. They can add or remove users, assign licenses, configure security policies, and even access sensitive information. While this power is essential for managing the environment, it also makes admin accounts a prime target for misuse or attacks.
That’s why tracking administrator role assignments and activities is crucial. By monitoring who holds admin roles, when roles are assigned or revoked, and what actions admins perform, you can:
Let’s dive into how you can achieve this with Microsoft Graph PowerShell.
Admin activity logs provide a transparent view of what’s happening in your Microsoft 365 tenant. Without monitoring:
By actively tracking admin activities, you ensure visibility, accountability, and compliance in your Microsoft 365 environment.
Graph PowerShell gives you the ability to fetch directory role assignments, admin activity logs from Microsoft Entra ID. Below are some useful scripts you can use in your environment.
đź”— Fetching Microsoft 365 Global Administrator Info using Graph PowerShell
This script uses the Get-MgDirectoryRoleMember cmdlet to list all Global Administrators in your tenant. It outputs their display names and email addresses, giving you a clear view of who has the highest-level access.
Why it’s useful:
đź”— Track M365 Admin Role Assignments Using Graph PowerShell
This script leverages the Get-MgAuditLogDirectoryAudit cmdlet to list details about role assignments, including:
Why it’s useful:
đź”— Monitor Admin Activity in Microsoft 365 with Graph PowerShell
This script also uses Get-MgAuditLogDirectoryAudit to capture all admin actions performed in the environment. It records:
Why it’s useful:
đź”— Track M365 Users Demoted From Admin Roles Using Graph PowerShell
This script tracks when admin roles are removed, showing:
Why it’s useful:
Tracking administrator role assignments and activities is not just a best practice—it’s a necessity for protecting your Microsoft 365 environment. With Graph PowerShell, you can:
By combining these scripts, you gain complete visibility into your admin landscape, ensuring better security, accountability, and compliance.
Did You Know? Managing Microsoft 365 applications is even easier with automation. Try our Graph PowerShell scripts to automate tasks like generating reports, cleaning up inactive Teams, or assigning licenses efficiently.
Ready to get the most out of Microsoft 365 tools? Explore our free Microsoft 365 administration tools to simplify your administrative tasks and boost productivity.
© Your Site Name. All Rights Reserved. Design by HTML Codex