Blog/Entra ID

Set up PIM before the migration starts

Engineers need Exchange and SharePoint admin rights in two tenants. Make them eligible, not permanent, and keep a clean audit trail.

Entra IDMigrations
Applies toMicrosoft Entra ID P2 or Governance
Set up byPrivileged Role Administrator
ActivationUp to 8 hours
AuditEvery activation logged

Why it matters

Migration teams often get standing Global Administrator in both tenants because it is quick. Security teams find it later. With Privileged Identity Management the same people get the access only for the hours they work a wave, and every activation is logged with a reason.

EngineerEntra ID1Eligible assignmentPer engineer, per role2Request activationReason + ticket3MFA and approvalPer role settings4Work the waveRole active5Expires ordeactivatedMax 8 hours6Audit logWho, when, why

Which role for which task

TaskRoleTenant
Mailbox batches, MailUsers, permissionsExchange AdministratorBoth
OneDrive trust, identity map, movesSharePoint AdministratorBoth
Devices and AutopilotIntune AdministratorBoth
Consent to the migration appGlobal AdministratorSource, once
Read-only checks and reportsGlobal ReaderBoth

Set it up

  1. 1

    Create eligible assignments

    Both tenants

    Assign each engineer as eligible, not active, for the roles their tasks need. Set an end date that matches the project.

  2. 2

    Configure role settings

    Both tenants

    Maximum activation 8 hours, require MFA, require justification and ticket information. Require approval only for Global Administrator.

  3. 3

    Activate for a wave

    Engineer

    Activate the role at the start of the shift with the change number as justification.

    PowerShell · Engineer
    $body = @{ action = "selfActivate"; principalId = $me; roleDefinitionId = $roleId
      directoryScopeId = "/"; justification = "CHG0042 wave B07"
      scheduleInfo = @{ startDateTime = (Get-Date).ToUniversalTime().ToString("o")
        expiration = @{ type = "afterDuration"; duration = "PT8H" } } }
    Invoke-MgGraphRequest POST "/v1.0/roleManagement/directory/roleAssignmentScheduleRequests" -Body $body

    Expected result: The role shows under Active assignments with an end time.

  4. 4

    Deactivate when done

    Engineer

    End the role as soon as the wave is finished, so the window in the audit log matches the work.

Watch out. A role that needs an authentication context or approval cannot be completed from a script. Activate those in the portal.

Get the next guide by email

The Cutover is a monthly email with new guides and what we learned on recent waves.

Related

GuideMigrationsExchange

Cross-tenant mailbox migration, end to end

The native Exchange Online path from trust setup to cutover, with every step, the PowerShell behind it and the checks that stop a wave failing on the night.

24 Nov 202618 min read
GuideMigrationsSharePoint & OneDrive

Moving OneDrive between tenants with the native tool

Trust, identity map, the move itself and the one rule that decides whether a user goes native or to a third-party tool.

17 Nov 202614 min read
GuideMigrationsIntune

Device migration between tenants: three paths and when to use each

There is no native button to move an Intune device to another tenant. How to choose between a reset, an Autopilot re-registration and a profile move, and the exact steps for each.

10 Nov 202612 min read