Permissions
Revert uses three kinds of access: Microsoft Graph application permissions held by two app registrations in each External ID tenant, delegated permissions that you use in your own browser, and Azure roles inside the resource group you deploy into. This page lists the permissions you consent to, the administrator roles you need, and the grants you make yourself.
For how these pieces fit together, see Architecture and security.
Backup App (Read-Only)#
Onboarding a tenant creates the backup app, Revert-Backup-ReadOnly, in that External ID tenant. Backups, and comparisons against the live tenant, sign in as this app. It holds only read permissions, so a backup or a comparison cannot change your tenant.
| Permission | Reads |
|---|---|
User.Read.All |
Users |
Group.Read.All |
Groups, their members and owners |
Application.Read.All |
App registrations and service principals |
Policy.Read.All |
Conditional Access, authentication methods, authorization and other tenant policies |
IdentityUserFlow.Read.All |
User flow configuration |
IdentityProvider.Read.All |
Identity providers |
EventListener.Read.All |
Authentication event flows (user flows) |
CustomAuthenticationExtension.Read.All |
Custom authentication extensions |
Organization.Read.All |
Organization and tenant settings |
RoleManagement.Read.Directory |
Directory roles and role assignments |
Directory.Read.All |
Directory data, including group settings, administrative units and devices |
APIConnectors.Read.All |
API connectors (their credentials can never be exported) |
Policy.Read.PermissionGrant |
Permission grant policies, which Policy.Read.All does not cover |
Restore App (Read-Write)#
Onboarding also creates the restore app, Revert-Restore-ReadWrite. Only restores use it to change your tenant. Certificate rotation signs in as each app only to confirm that its new certificate works.
| Permission | Creates or updates |
|---|---|
User.ReadWrite.All |
Users |
Group.ReadWrite.All |
Groups and their memberships |
Application.ReadWrite.All |
App registrations |
Policy.Read.All |
Reads named locations and other policies before restoring them |
Policy.ReadWrite.ConditionalAccess |
Conditional Access policies and named locations |
Policy.ReadWrite.AuthenticationMethod |
The authentication methods policy and custom authentication strengths |
Policy.ReadWrite.Authorization |
The authorization policy |
Policy.ReadWrite.CrossTenantAccess |
The cross-tenant access policy (default settings and partners) |
Policy.ReadWrite.ApplicationConfiguration |
Token lifetime, claims mapping, token issuance, home realm discovery, app management and activity-based timeout policies |
Policy.ReadWrite.PermissionGrant |
Permission grant policies |
Policy.ReadWrite.ConsentRequest |
The admin consent request policy |
IdentityUserFlow.ReadWrite.All |
User flows |
IdentityProvider.ReadWrite.All |
Identity providers |
EventListener.ReadWrite.All |
Authentication event flows |
CustomAuthenticationExtension.ReadWrite.All |
Custom authentication extensions |
Organization.ReadWrite.All |
Organization settings |
RoleManagement.ReadWrite.Directory |
Directory role assignments |
APIConnectors.ReadWrite.All |
API connectors, with a placeholder credential you update after the restore |
AdministrativeUnit.ReadWrite.All |
Administrative units, their members and scoped role assignments |
Directory.ReadWrite.All |
Group settings and feature rollout policies |
All permissions on both apps are Microsoft Graph application permissions. Onboarding grants admin consent for them as part of its steps, using your own sign-in, so there is no separate Grant admin consent step in the Microsoft Entra admin center. Both apps sign in with certificates only; neither has a client secret.
Delegated permissions used in the browser#
Some steps run with your own account rather than a Revert identity. The deployment's identities hold no Microsoft Graph permissions, so setup, onboarding, offboarding and the Users page all act with the delegated permissions of the administrator who is signed in. A delegated permission never lets you do more than your own account is allowed to do.
| Step | Where | Signed in through | Delegated permissions | What it does |
|---|---|---|---|---|
| First-run setup | Workforce tenant | A sign-in app published by Vambris for the device-code sign-in on the setup screen. It holds no permissions of its own. | Application.ReadWrite.All, AppRoleAssignment.ReadWrite.All |
Creates the Revert-WebUI (<web app name>) app registration with its app roles, assigns you the Admin role, and creates the licensing application's service principal. The dashboard uses your token while setup runs and does not store it. |
| Onboarding and offboarding a tenant (Tenants page) | Each External ID tenant | Revert-WebUI | Application.ReadWrite.All, AppRoleAssignment.ReadWrite.All, and for onboarding also Organization.Read.All |
Onboarding first reads the tenant's type and stops unless it is an External ID tenant. It then creates the backup and restore apps, grants their application permissions and attaches their public certificates; offboarding deletes them. The calls go directly from your browser to Microsoft Graph; the deployment never receives the token. |
| Users page | Workforce tenant | Revert-WebUI | Application.Read.All |
Reads who is assigned which dashboard role. |
| Role grants and private networking | Azure Resource Manager, in your subscription | Revert-WebUI | Azure Service Management user_impersonation |
Grant access (one click) for an export destination, and listing your virtual networks when you choose one for private networking. |
Microsoft Entra ID asks for consent the first time each permission is needed.
Note
Onboarding leaves an Revert-WebUI enterprise application, with the delegated permissions you consented to, in each External ID tenant. Offboarding does not remove it. If you no longer need it, delete it under Enterprise applications in that tenant.
Administrator roles you need#
Revert needs an administrator in the Azure subscription, in the workforce tenant and in every External ID tenant you protect. It can be the same account throughout (for example, a workforce account added to an External ID tenant as a guest and given the role there) or a different account in each tenant. The browser asks you to choose an account at each sign-in.
| Where | Task | What you need |
|---|---|---|
| Azure subscription | Deploy or update Revert | Rights to create resources, role assignments and custom role definitions in the resource group: Owner, or Contributor together with User Access Administrator. To create the resource group from the deployment form, you need these rights on the subscription. |
| Azure subscription | Read the one-time setup key | The account that ran the deployment gets Key Vault Secrets User on the setup-key secret automatically, and on nothing else in the vault. Anyone else needs that role on the secret itself. |
| Workforce tenant (the tenant that holds the subscription) | First-run setup | An administrator who can create app registrations and consent to the two delegated permissions above, such as Cloud Application Administrator, Application Administrator or Global Administrator. |
| Workforce tenant | Assign dashboard roles | Owner of the Revert-WebUI enterprise application, or an Entra role that can manage enterprise applications. See Manage access. |
| Each External ID tenant | Onboard and offboard the tenant | Privileged Role Administrator or Global Administrator, to grant the Microsoft Graph application permissions. The account must also be able to create and manage app registrations (for example as Cloud Application Administrator), which Global Administrator already includes. |
| Azure (optional) | Use Grant access (one click) for an export destination | Owner or User Access Administrator on that storage account. |
Microsoft documents that granting application permissions for Microsoft Graph requires Privileged Role Administrator (or Global Administrator), and that Cloud Application Administrator and Application Administrator cannot grant them. See Grant tenant-wide admin consent to an application.
Important
Complete first-run setup as an administrator of the workforce tenant that holds the Azure subscription. Setup creates the dashboard's sign-in app and the licensing application's service principal in the tenant you sign in to. If that is a different tenant, licensing cannot work.
Also note:
- The Entra roles are needed in every External ID tenant you onboard. The Azure rights are needed once, because all Azure resources live in the workforce tenant's subscription. External ID tenants usually have no subscription of their own.
- These Entra and Azure roles are separate from the dashboard roles (Viewer, Operator, Admin). Onboarding, offboarding and the role grants above also need the Admin role in the dashboard. See Manage access.
Tenant feature requirements#
Backing up and restoring user flows requires the
EnableMsGraphAuthenticationEventListener feature flag on the External ID tenant, and is
available in the global Azure cloud only, not in Azure Government or in Azure operated by
21Vianet.
Azure roles inside the deployment#
The deployment gives Azure roles to three managed identities: one for the dashboard, one that runs jobs, and one used only while a deployment or update is running. Those roles follow these rules:
- Only inside the resource group. Every role assignment the deployment makes is on its resource group or on a resource inside it. None is made at subscription scope. The deployment also creates five custom role definitions: Azure keeps role definitions at subscription level, but each of these can be assigned only within the deployment's resource group.
- Deletion protection cannot be shortened or removed. The deployment locks the deletion protection policy, and Azure then refuses to shorten or remove it for anyone, every identity in the deployment included. The only change Azure allows is an extension, such as an Admin raising the window, and an extension is permanent. See Protect recovery points from deletion.
- The dashboard's identity cannot read certificate private keys, and it holds no Microsoft Graph permissions of its own.
Warning
Never give the dashboard's identity a Key Vault role that can read secrets. The certificates in the vault are the backup and restore apps' credentials, and anything that can read them can sign in as those apps.
Grants you make outside the deployment#
Two optional features need a role on a resource that the deployment does not own. You make these grants yourself; the deployment cannot grant itself access to your resources.
| Feature | Role | Role definition ID | Granted to | Scope |
|---|---|---|---|---|
| Export recovery points | Storage Blob Data Contributor | ba92f5b4-2d11-453d-a403-e96b0029c9fe |
The deployment's jobs identity | Your destination storage account |
| Private networking, when this deployment runs on your own virtual network | Network Contributor | 4d97b98b-1d4f-4787-a291-c67834d212e7 |
The same jobs identity | Your existing virtual network |
There are two ways to make the export grant:
In the dashboard. When you enter the destination, the dashboard checks whether the jobs identity already has the role. If not, select Grant access (one click). The role is assigned with your own Azure account, which needs Owner or User Access Administrator on that resource.
By hand. In the Azure portal, open the storage account, go to Access control (IAM) and assign the role to the jobs identity. The dashboard shows the identity's principal ID next to the grant; you can also find it on the Private networking page. With the Azure CLI:
az role assignment create \ --assignee-object-id <jobs-identity-principal-id> \ --assignee-principal-type ServicePrincipal \ --role "Storage Blob Data Contributor" \ --scope <destination-storage-account-resource-id>
The private networking grant has no one-click option: the dashboard cannot name your virtual network without a read it does not hold. Grant Network Contributor on it to the jobs identity by hand, using the principal ID the Private networking page shows, before you turn private networking on.
Role assignments can take a minute or two to apply. Neither grant is needed to run Revert: export is optional, and private networking can create a new virtual network in the resource group, which needs no grant from you.
Export destination#
Export copies your recovery points and reports to a storage account you own, so that deleting the deployment does not delete your backups. The copy uses Microsoft Entra ID authentication; no account keys or SAS tokens are used. Revert refuses a destination that belongs to the deployment: one of its own storage accounts, or any account in its resource group. See Export recovery points.
Existing virtual network#
Running the jobs on your own virtual network, rather than one Revert creates, is chosen on the deployment form: you name three existing subnets there, each already sized and delegated as the form describes, and Revert validates them at deployment and creates none of its own. See Choose a network.
Network Contributor, granted on the virtual network itself (not its resource group or subscription), is needed only if you later turn on private networking: it lets the jobs identity add private endpoints to the subnet you named for them and link private DNS zones to the network. Revert never attaches a NAT gateway to your network; outbound internet access for the jobs and the dashboard, there, is yours to provide.
What private networking changes in your virtual network#
Turning on private networking adds, inside the subnet you named for private endpoints, one private endpoint each for Key Vault and the two storage accounts, and links four private DNS zones (blob, queue, table and vault) to the network. It changes no subnet's size or delegation: those were validated at deployment, and Revert never writes them.
What existing-network mode leaves behind#
The private endpoints and the deployment's own private DNS zones live in the Revert resource group, so deleting it removes them, including their links into your network. Nothing Revert adds stays behind in your virtual network: unlike a role grant, nothing here needs its own cleanup. If you ever changed a subnet's own configuration to meet the deployment form's requirements, that change is yours, and stays yours.
Removing Revert#
Deleting the resource group removes the Azure resources and the role assignments made by the deployment. Some things live outside the group and need their own steps, all covered in Remove Revert:
- The backup and restore apps in each External ID tenant. Offboard every tenant first; offboarding deletes them and nothing else does.
- The Revert-WebUI (<web app name>) app registration in the workforce tenant. Delete it by hand.
- The Revert-WebUI enterprise application in each External ID tenant you onboarded.
- The seven custom role definitions. Deleting the resource group normally removes them, but Azure can keep listing them for a while and one can occasionally be left behind. See Custom role definitions left behind after a teardown. Remove only the definitions with this deployment's suffix: another Revert deployment in the same subscription has its own seven.
- A second resource group Azure creates beside this deployment's, holding the jobs' platform infrastructure. It is normally deleted automatically along with this deployment's resource group; see Remove Revert.
- The role assignments you made on an export destination or an existing virtual network. They stay on those resources, pointing at an identity that no longer exists; remove them under Access control (IAM).
