The Azure permission of Connect and test
When you test the connection to an Azure resource in EasyLife 365 Admin Insiders, the Admin Portal asks for a delegated Azure permission the first time you test. This page says what it allows, why the Admin Portal asks for it, and how you remove it again. It applies to EasyLife 365 Collaboration Insiders, EasyLife 365 Identity Insiders and EasyLife 365 Mail Insiders: each product has its own app, and each asks for the permission for its own app.
The permission
| API | Azure Service Management |
| Permission | user_impersonation, delegated (full name https://management.azure.com/user_impersonation) |
| Shown in the Microsoft consent prompt as | Access Azure Service Management as organization users (Microsoft's wording, which Microsoft may change) |
| Asked for | Only when you test an Azure resource, never when you sign in or set up a product |
The first time you select Test, the Admin Portal shows Read your permissions in Azure. Select Allow, and Microsoft Entra ID shows its consent prompt.
A delegated permission acts as the person who is signed in. With it, the product's app can do in Azure whatever your own Azure roles allow, which includes changes, in every subscription you have access to. It gets no more than you have. The test uses it only to read.
Why EasyLife 365 Admin asks for it
With your permission, the test reads these things in Azure, as you:
- It finds the resource by its name, in the subscriptions you can see.
- It checks that you may give access on the resource (
Microsoft.Authorization/roleAssignments/write). See Who may connect a resource. - It checks that the product's app holds the role the feature needs on the resource.
Then the test checks that the product's app itself can reach and read the resource. That last check uses the app's own role, not your permission.
The test never creates a resource, never changes a setting and never assigns a role: you do that with the Azure setup scripts.
Consent for the whole organization
If your organization lets users consent, each person who tests consents for themselves the first time. If it doesn't, the Admin Portal says that an administrator must approve the permission. An administrator who can grant consent for the organization, such as a Cloud Application Administrator, then consents once for everyone: they test a resource in the Admin Portal, select Allow, and in Microsoft's prompt consent on behalf of the organization. Each product has its own app, so this is done once for each product you use.
Revoke the permission
Each product has its own app, and each app has its own consent. Do the steps below for the app of each product you use: EasyLife 365 Collaboration Insiders, EasyLife 365 Identity Insiders and EasyLife 365 Mail Insiders. The application ID of a product's app is in the commands the Admin Portal shows for that product.
To revoke a consent an administrator gave for the organization:
- Open the Microsoft Entra admin center and go to Enterprise applications.
- Open the app of the product, for example the EasyLife 365 Collaboration Insiders app.
- Under Security, select Permissions.
- On Admin consent, find Azure Service Management with
user_impersonation, and revoke the permission.
A consent a person gave for themselves is listed on User consent, and the Microsoft Entra admin center can't revoke it there. Remove it with Microsoft Graph PowerShell instead, signed in to your tenant with a role that can manage consent, such as Cloud Application Administrator. When Microsoft Graph PowerShell asks for consent itself, don't select the box to consent on behalf of your organization: the commands need the permission only for this sign-in.
The commands remove every consent of the product's app to Azure Service Management: the one for the organization and every person's own. Everyone who tests afterwards is asked again.
Connect-MgGraph -TenantId '<tenant-id>' -Scopes 'DelegatedPermissionGrant.ReadWrite.All', 'Application.Read.All'
$app = Get-MgServicePrincipal -Filter "appId eq '<application-id>'"
$azure = Get-MgServicePrincipal -Filter "appId eq '797f4846-ba00-4fd7-ba43-dac1f8f63013'"
$grants = @(Get-MgOauth2PermissionGrant -All -Filter "clientId eq '$($app.Id)' and resourceId eq '$($azure.Id)'")
"$($grants.Count) consent(s) of $($app.DisplayName) to Azure Service Management"
$grants | ForEach-Object { Remove-MgOauth2PermissionGrant -OAuth2PermissionGrantId $_.Id }
<application-id> is the application (client) ID of the product's app, and 797f4846-ba00-4fd7-ba43-dac1f8f63013 is Azure Service Management. The commands show how many consents they found, then remove them, for this app only. A sign-in that already holds an Azure token keeps it until it expires, usually within an hour.
After you revoke it, the Admin Portal asks for the permission again at the next test, and a person who may consent can give it again. Removing it doesn't touch the roles you gave with the scripts: the product keeps its access to your resources until you remove those role assignments in Azure.