If someone takes over an ordinary user account in Microsoft 365, you have a bad day. If they take over an admin account, they can read every mailbox, switch off your security policies, create their own accounts and lock you out of your own tenant. Admin accounts are the most valuable thing an attacker can get, and in most tenants they’re protected about as well as everyone else’s.
Every admin role in our tenant now sits behind Privileged Identity Management (PIM), so nobody holds standing admin rights day to day. More recently, we brought in a managed service provider to share our service desk, which meant deciding exactly how outsiders would get admin access too. Working through both made me look hard at how admin access should be set up. This guide is that setup, in the order I’d tackle it in any Microsoft 365 tenant.
1. Give admins a separate admin account
Nobody should do admin work from the account they use for email. That account opens attachments, clicks links and signs in to dozens of web services. If it’s also a Global Administrator, one convincing phishing email is all it takes.
Give each admin a second account used only for admin tasks, with a clear naming convention such as adm-firstname.lastname. Don’t license it for a mailbox, Teams or OneDrive. It doesn’t need them, and leaving them off removes the most common ways an account gets compromised.
2. Make admin accounts cloud-only
In a hybrid environment, it’s tempting to sync admin accounts from on-premises Active Directory like everything else. Don’t. Microsoft’s best practices for Entra roles recommend cloud-native accounts for Entra roles. The reason is simple: if your on-premises AD is compromised, a synced admin account hands the attacker your cloud tenant as well.
In a hybrid environment like ours, that means an admin who works on both sides has one admin account in on-premises AD for server work and a separate cloud-only account for Microsoft 365. It’s one more account per person, and it keeps a compromise on one side from spreading to the other.
3. Use the least-privileged role
Global Administrator gets handed out because it’s the role that always works. Most admin tasks need far less. These are the roles I reach for first:
| Task | Least-privileged role |
|---|---|
| Reset passwords for ordinary users | Helpdesk Administrator |
| Create users and assign licences | User Administrator |
| Mailbox permissions and distribution lists | Exchange Recipient Administrator |
| Devices, compliance and app deployment | Intune Administrator |
| Teams settings and policies | Teams Administrator |
| SharePoint and OneDrive settings | SharePoint Administrator |
| Billing and subscriptions | Billing Administrator |
| Reports and read-only investigation | Global Reader or Reports Reader |
Microsoft’s best practices guide recommends fewer than five Global Administrators, and fewer than ten privileged role assignments in total. If your tenant has more, that’s your first clean-up job. If one team only needs to manage a subset of users or groups, roles can also be scoped to an administrative unit instead of the whole tenant.
4. Remove standing access with PIM
Even the right role is a risk if it’s switched on around the clock. PIM changes role assignments from permanent to eligible. An admin activates the role when they need it, gives a reason, completes MFA, and the role switches itself off after a set time.
We’ve made every admin role eligible rather than permanent. Activating a role at the start of a task quickly becomes habit, and the activation history doubles as a record of who did what and why.
A few settings are worth getting right from the start:
- Activation duration. Long enough to finish a typical task, short enough that a forgotten session doesn’t stay live all day. A few hours suits most roles.
- Approval for the top roles. Require a second person to approve activation of Global Administrator and Privileged Role Administrator.
- Notifications. Have activations of the most powerful roles emailed to the security team.
PIM settings apply to a role across the whole tenant, not to individual assignments, so set them with every holder of that role in mind. PIM also needs Entra ID P2 or ID Governance licences for the people who activate roles.

5. Require phishing-resistant MFA for admin roles
Ordinary MFA stops password spraying. It doesn’t stop an attacker-in-the-middle phishing kit that relays the MFA prompt in real time and steals the session. Admin accounts are exactly what those kits are built for.
Create a Conditional Access policy that targets your admin roles directly, under Directory roles in the policy’s user assignment, and requires the built-in Phishing-resistant MFA authentication strength. That means passkeys, FIDO2 security keys or Windows Hello for Business. Targeting roles rather than a group means anyone given an admin role is covered automatically, including through PIM activation.
6. Set up emergency access accounts
The more tightly you lock things down, the more you need a way back in when something goes wrong: a Conditional Access policy that blocks everyone, an MFA outage, a federation problem. Microsoft’s best practices recommend two cloud-only emergency access accounts with permanent Global Administrator.
Treat them differently from everything else:
- Use the tenant’s
onmicrosoft.comdomain, so they don’t depend on your custom domain or federation. - Exclude them from any Conditional Access policy that could lock them out.
- Protect them with phishing-resistant credentials, such as FIDO2 keys kept in a safe, not someone’s phone.
- Alert on every sign-in. These accounts should almost never be used, so any sign-in is worth an immediate look.
- Test them a couple of times a year, so you know they work before you actually need them.
7. Decide how third parties get admin access
Sooner or later someone outside your organisation needs admin access: an MSP, a consultant, a vendor’s support team. You have two options.
GDAP (granular delegated admin privileges) is Microsoft’s partner model. The provider requests specific roles through Partner Center, you approve them, and their technicians use their own accounts from their own tenant. You don’t manage any accounts. On the other hand, you can’t see which of their staff hold your roles, and Microsoft’s GDAP FAQ notes that the partner can auto-extend the relationship in six-month blocks without asking you again. GDAP also only reaches the cloud, not on-premises servers.
Named accounts in your own tenant give each external technician an identity you create and control. Your Conditional Access, PIM and access reviews apply to them exactly as they do to your own staff.
When we brought in our MSP, we chose named accounts. The deciding factor was the audit trail. I want every admin action in our tenant tied to a specific person whose account we control, not to someone in another company’s directory. Being hybrid, and already running PIM for every role, made it an easy call. The technicians follow the same rules as our own admins, and they would need accounts in our on-premises environment regardless.
If you go the same way, put leaver notification in the contract, review the MSP’s accounts every quarter, and disable them all on the last day of the agreement. If you use GDAP, you can still apply Conditional Access to the provider’s technicians using the Service provider users external user type, which Microsoft recommends instead of broader external user policies.
8. Review who still has standing access
Role sprawl comes back if nobody checks. This lists every active role assignment in the tenant, so you can spot anything permanent that should be eligible:
Connect-MgGraph -Scopes "RoleManagement.Read.Directory", "Directory.Read.All"
$roleNames = @{}
Get-MgRoleManagementDirectoryRoleDefinition -All | ForEach-Object { $roleNames[$_.Id] = $_.DisplayName }
Get-MgRoleManagementDirectoryRoleAssignment -All -ExpandProperty Principal |
Select-Object @{ n = "Role"; e = { $roleNames[$_.RoleDefinitionId] } },
@{ n = "Principal"; e = {
$p = $_.Principal.AdditionalProperties
if ($p.userPrincipalName) { $p.userPrincipalName } else { $p.displayName }
} },
DirectoryScopeId |
Sort-Object RoleAnyone who has activated a role through PIM at that moment also appears, so run it when nobody’s mid-task, or check anything unexpected against PIM’s active assignments. Your emergency access accounts should be the only permanent Global Administrators. Service principals in the list deserve a look too, because apps with admin roles are a common blind spot.
If you have P2 or ID Governance, schedule access reviews on your privileged roles so each holder is asked every quarter whether they still need it.

From my early days on the helpdesk through roles as a service desk manager, systems administrator, and network engineer, I’ve spent more than 25 years in the IT world. As I transition into cyber security, my goal is to make tech a little less confusing by sharing what I’ve learned and helping others wherever I can.

