Least-privilege access to customer tenants: a worksheet for each SOC job

Give each SOC job one Microsoft access model, such as GDAP, B2B guest access, Azure Lighthouse or a consented enterprise application, and the smallest role it needs. Make write and admin roles eligible or time-bound, and write down each grant's removal step when you create it.

Managed security operations · Checklist · 11 min read ·

Who this is for

Security leads at service providers, and teams that run several Microsoft Entra tenants, who decide what access each person and tool on the SOC team gets.

You'll learn

Least privilege across customer tenants starts with the job, not the access model. List what each person and tool on your SOC team does in a customer's Microsoft Defender XDR and Microsoft Sentinel environment. Then give each job one Microsoft access model, the smallest role that does the work, a time limit and a removal step.

This worksheet covers four jobs almost every SOC has, plus offboarding a customer, using four Microsoft access models: granular delegated admin privileges (GDAP), Microsoft Entra B2B guest access, Azure Lighthouse and admin-consented enterprise applications. For more on the models themselves, or the detail behind a row, see these pages:

To compare the models side by side, read GDAP, B2B, cross-tenant sync or tenant governance for an MSSP.

If your analysts reach Defender XDR through GDAP, read what Unified RBAC auto-enablement changes for their access.

For just-in-time elevation with Microsoft Entra Privileged Identity Management (PIM) across many customers, see whether one activation can span tenants.

How do you fill in the worksheet?

For each job, fill in the model, the smallest role, a time limit and the removal step. Assign every role to a security group rather than to a person, so joiners and leavers only change group membership.

Pick the model from these four:

Where these four leave a gap, Microsoft's newer governance relationships can fill it. Cross-tenant delegated administration in Microsoft Defender, built on these governance relationships with cross-tenant GDAP, has been generally available since 2026-10-20. Any two Microsoft Entra tenants can set up a governance relationship, so you don't need to be a Cloud Solution Provider partner. The customer approves the roles that security groups in your tenant get, with no guest accounts and no Partner Center relationship.

A governance relationship can't coexist with a Partner Center GDAP relationship between the same two tenants, so choose one for each customer. If you move a customer to a governance relationship, remove the Partner Center relationship first, and put the Microsoft Entra roles your help desk needs, such as Password Administrator, in the governance relationship's template.

For how to set each model up in the Defender portal, use Microsoft's Defender portal implementation guide for MSSPs.

What access does an analyst working incidents need?

Analysts triage, investigate and close incidents. They need to read and update incidents and the data behind them, and nothing that changes how the tenant is configured.

Worksheet entryAnalyst working incidents
Access modelDefender XDR incidents: GDAP, a governance relationship or B2B guest access. Sentinel incidents: a governance relationship or B2B guest access, in the Defender portal. Azure Lighthouse on the Sentinel resource group covers Sentinel in the Azure portal (supported only until March 31, 2027) and queries of a secondary workspace in another tenant.
Smallest roleDefender XDR: Security Operator to update incidents, Security Reader to view them, or a Defender unified RBAC custom role with only the permissions the job needs. Sentinel: Microsoft Sentinel Responder on the Sentinel resource group. A guest who assigns Sentinel incidents also needs Directory Readers.
Time limitAnalysts use these roles every shift, so limit the grant rather than the role. Every GDAP relationship has an end date, and a guest can be invited through an entitlement management access package that expires, for example after 180 days.
Removal stepRemove the person from the security group in your tenant (GDAP, governance relationships and Lighthouse). For a guest, the customer removes the role assignments first, then deletes the guest account.

Plan analyst access around the Defender portal, and don't build it on Azure Lighthouse alone. Microsoft Sentinel won't be supported in the Azure portal after March 31, 2027. In the Defender portal, multitenant management gives your analysts one incident queue across customer tenants, and a governance relationship or B2B guest access reaches each customer's Sentinel data.

Does GDAP reach Microsoft Sentinel?

Yes, since 2026-10-20, through a governance relationship rather than a Partner Center one. That day Microsoft made cross-tenant delegated administration in Microsoft Defender generally available and extended it to Microsoft Sentinel. Governance invitations are off by default. Once they're on, the customer invites your tenant and approves your request, your security groups appear in its tenant as remote tenant groups, and the customer can assign them Sentinel roles through Defender unified RBAC or Azure RBAC, with no guest accounts. Both tenants need at least one Microsoft Entra ID P1 license, plus a Microsoft 365 E5 license or Sentinel enabled in Defender. Some Microsoft Learn pages written before 2026-10-20 still say Sentinel doesn't support GDAP. Check which model your customer can set up before you plan Sentinel access.

What access does a detection engineer editing analytics rules need?

Detection engineers write and tune Sentinel analytics rules and Defender XDR custom detections. That changes what fires in the customer's tenant, so treat it as privileged write access.

Worksheet entryDetection engineer
Access modelSentinel analytics rules: a governance relationship or B2B guest access, in the Defender portal. Add Azure Lighthouse for rules that query a secondary workspace in another tenant, or to work in the Azure portal until March 31, 2027. Custom detections on Defender data: GDAP, a governance relationship or B2B guest access.
Smallest roleSentinel: Microsoft Sentinel Contributor on the Sentinel resource group, because Responder can't create or edit analytics rules. Defender custom detections: the Security settings (manage) permission in Defender unified RBAC, or Security Administrator.
Time limitMake Sentinel Contributor eligible, not standing. For a guest, the customer can make the role an eligible assignment in PIM, with an end date. A Lighthouse eligible authorization activates for 30 minutes to 8 hours, can require MFA and up to 10 approvers, and needs a Microsoft Entra ID Governance license in your managing tenant.
Removal stepRemove the person from the group. To end the delegation itself, see the offboarding table below.

If you add Lighthouse, two limits shape this row. Each eligible authorization needs a permanent authorization for the same group with a role that includes Reader, or its members can't elevate in the Azure portal. And Lighthouse takes Azure built-in roles only: no custom roles, no Owner and no roles with DataActions.

Multitenant advanced hunting queries each tenant's primary Sentinel workspace without Azure Lighthouse. To query a secondary workspace in another tenant, for example with the workspace() operator in advanced hunting or in an analytics rule, Microsoft pages written before 2026-10-20 say you need Lighthouse, and that some automation rule and playbook scenarios might too.

What access does the help desk need to reset a compromised user's password?

When an account is compromised, someone resets the password and revokes the user's sessions. Those are Microsoft Entra ID directory tasks, so they need an Entra role in the customer's tenant. Azure Lighthouse can't do them: its users never sign in to the customer's tenant and hold no Entra permissions there.

Worksheet entryHelp desk password reset
Access modelGDAP, with the role assigned to a security group in your tenant. If you aren't a Microsoft partner managing customers in Partner Center (for example, you run your own organization's tenants), use a governance relationship or a B2B guest account that holds the same role.
Smallest rolePassword Administrator to reset a non-admin user's password and invalidate their refresh tokens. User Administrator for limited admins. Privileged Authentication Administrator only for privileged admins.
Time limitPut PIM on the GDAP security group in your tenant, so a technician activates the role for the reset and loses it automatically afterward. Request Global Administrator only time-bound, and only to work around a known issue. A governance relationship has no end date unless its template sets a lifetime of 1 to 730 days (in preview).
Removal stepRemove the technician from the security group. To end the whole relationship, terminate it in Partner Center under the customer's admin relationships; the customer can remove it from their side too.

A GDAP relationship can't be permanent. It lasts at most two years, and auto extend adds six months at a time until someone turns it off, except for relationships that include Global Administrator. A request the customer doesn't approve expires after 90 days.

Plan identities before you invite anyone. Guest accounts don't work with GDAP: a partner user can't hold GDAP roles and a guest account, and the customer has to remove the guest account for GDAP to work. Decide which people get guest accounts for Sentinel work and which sit in GDAP groups.

What access does tooling that reads and updates incidents need?

Ticketing sync, SOAR and reporting tools read incidents and write back status and classification around the clock. Software should get its own identity: an enterprise application with application permissions, which work with no one signed in. For tools that sync incidents with a ticketing system, Microsoft recommends the Microsoft Graph security API.

Worksheet entryIncident tooling
Access modelAn enterprise application in the customer's tenant, with application permissions an admin there consents to.
Smallest roleMicrosoft Graph SecurityIncident.Read.All if the tool only reads incidents, or SecurityIncident.ReadWrite.All if it also updates them. A tool that uses the Sentinel API instead needs Microsoft Sentinel Responder to manage incidents.
Time limitUsually none. Application permissions stay until someone revokes them, and Lighthouse eligible authorizations can't be given to service principals. Keep the permission list short and review it on a schedule instead.
Removal stepIn the customer's Enterprise applications, revoke the app's admin-consented permissions. Then remove any directory roles or Azure role assignments it holds, because permissions aren't the only way an app gets access.

Consent is where least privilege for tooling gets decided. Granting Microsoft Graph application permissions needs at least a Privileged Role Administrator; Cloud Application Administrator and Application Administrator can grant other permissions, but not those. Tenant-wide consent can give the app's publisher access to large parts of the customer's data, so review the permission list itself, not the vendor's description of it.

How do you remove access when a customer leaves?

Remove each model on its own. GDAP and Azure Lighthouse are decoupled, parallel paths, so ending one leaves the other in place. Guest accounts and consented applications live in the customer's directory, separate again.

Access modelRemoval stepWho can do it
GDAPIn Partner Center, open Customers, select the customer, then Admin relationships, and terminate the relationship. Members of its security groups lose access, and both sides get an email confirmation.You, with the Admin agent role, or the customer.
Microsoft Entra B2B guest accessRemove the guest's role assignments, then delete the guest account. If the customer invited the guest through an access package, this can happen on its own: by default, the guest is blocked from signing in when their last assignment ends, then removed after 30 days.The customer. Removing Azure role assignments needs a role such as User Access Administrator or Owner.
Azure LighthouseDelete the delegation. The customer does it from Service providers, then Service provider offers. You do it from My customers, then Delegations.The customer, with a role such as Owner. You, only if the delegation gave you the Managed Services Registration Assignment Delete Role.
Enterprise applicationRevoke its admin-consented permissions, and remove any roles it holds in the directory or on Azure resources.The customer. Cloud Application Administrator or Application Administrator can review and revoke permissions.

If you set up a governance relationship, end it too. When it's terminated or expires, access granted only through that relationship is removed.

Where does ContraForce fit in the worksheet?

ContraForce uses consented Microsoft Entra enterprise applications and doesn't use Azure Lighthouse or GDAP. Its access is split across purpose-built applications in the customer's Microsoft Entra ID tenant, each with only the permissions its function needs. Two core applications cover every deployment. The rest are consented per module, so you grant permissions only for the capabilities you use.

Most of that access fits the tooling row above. The applications use application permissions, so response actions can run in a customer's tenant without an operator signed in. Gamebook approval gates and the audit trail on the Gamebooks History page keep those actions under your team's control.

Password resets are the exception. The Reset Password Gamebook runs on behalf of the signed-in user by default, so that person still needs a role that allows the reset. A customer can instead turn on the service-provider password reset add-on. It lets the reset run as the application and gives the ContraForce Gamebooks for Identity application the Authentication Administrator role, for non-administrator users only. Turning the add-on off removes the role.

For Microsoft Sentinel, the ContraForce API application holds Microsoft Sentinel Contributor and Reader directly on the customer's Sentinel resource group. Put those role assignments on the customer's removal list, next to the applications themselves.

To remove everything ContraForce added to a customer's tenant, including the Azure resources the Microsoft Sentinel module deploys, follow Offboarding: Remove ContraForce Apps and Resources.

Inside ContraForce, what someone can do in a customer's workspace follows their ContraForce workspace role, so the same rule applies there. Start analysts as Incident Analyst, who works incidents and requests approval to run Gamebooks, and raise access only when the work needs it.

Every application, its app ID and permissions, and how to revoke consent are in Enterprise Application Permissions and App IDs.

Checklist

Recap

In the ContraForce docs

Go deeper on contraforce.com

Sources

  1. Microsoft Learn, Set up Microsoft Defender multitenant management
  2. Microsoft Learn, Microsoft Defender multitenant management
  3. Microsoft Tech Community, Expanded cross-tenant delegated access in Microsoft Defender is generally available
  4. Microsoft Learn, Configure delegated access with governance relationships for multitenant organizations
  5. Microsoft Learn, Governance relationships in Tenant Governance
  6. Microsoft Learn, Governance policy templates
  7. Microsoft Learn, Cross-tenant delegated administration
  8. Microsoft Learn, Tenant Governance frequently asked questions
  9. Microsoft Learn, Microsoft Sentinel in the Microsoft Defender portal
  10. Microsoft Learn, Microsoft Defender portal implementation guide for MSSPs
  11. Microsoft Learn, GDAP frequently asked questions
  12. Microsoft Learn, GDAP role guidance
  13. Microsoft Learn, Partner-led termination of a granular admin relationship
  14. Microsoft Learn, Tenants, users, and roles in Azure Lighthouse scenarios
  15. Microsoft Learn, Create eligible authorizations (Azure Lighthouse)
  16. Microsoft Learn, Remove access to a delegation (Azure Lighthouse)
  17. Microsoft Learn, Roles and permissions in the Microsoft Sentinel platform
  18. Microsoft Learn, Manage access to Microsoft Defender XDR with Microsoft Entra global roles
  19. Microsoft Learn, Create custom detection rules in Microsoft Defender XDR
  20. Microsoft Learn, List incidents (Microsoft Graph)
  21. Microsoft Learn, Update incident (Microsoft Graph)
  22. Microsoft Learn, Assign Azure roles to external users using the Azure portal
  23. Microsoft Learn, Assign Azure resource roles in Privileged Identity Management
  24. Microsoft Learn, Govern access for external users in entitlement management
  25. Microsoft Learn, Grant tenant-wide admin consent to an application
  26. Microsoft Learn, Review permissions granted to enterprise applications
  27. ContraForce Docs, Enterprise Application Permissions and App IDs
  28. ContraForce Docs, Azure Resources Deployed for Sentinel and Agents
  29. ContraForce Docs, User Roles & Permissions
  30. ContraForce Docs, Offboarding: Remove ContraForce Apps and Resources

Reviewed by the ContraForce team · Published · Updated

Next up

All lessons

Step 2 of 4 · Run Microsoft security across customer tenants

Defender XDR incidents vs alerts: how correlation works and how to triage

See how Microsoft Defender XDR groups alerts into incidents, check what attack disruption, AIR and ZAP already did, and triage in one tenant or many.

Defender XDR · Explainer

Read · 9 min

See it run on your own incidents.

Connect one supported workspace, validate access and your Gamebook workflow, then measure an eligible investigation in your own environment.

Start for free Read the docs

Connect one workspace: scoped Entra ID application consent, no endpoint agents, no log forwarding.