Microsoft Entra ID
General

User Source Of Authority Configure

In brief

The documentation now explains how to install and connect with Microsoft Graph PowerShell, select cloud environments, grant required permissions, and update a user’s source of authority with PowerShell.

What Entra admins need to know

Administrators using PowerShell should follow the documented consent requirements, sign in as a Hybrid Administrator, and use consistent tenant and cloud settings when reconnecting.

This editorial summary was generated by AI from the documentation changes. Verify important details in the full Microsoft Learn article.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

:::image type="content" source="media/how-to-user-source-of-authority-configure/graph-permissions.png" alt-text="screenshot of graph permissions.":::

Connect with Microsoft Graph PowerShell

As an alternative to Graph Explorer, use Microsoft Graph PowerShell. First, install Microsoft Graph PowerShell, including the Microsoft.Graph.Users module.

Permissions are granted to the application that calls Microsoft Graph. Consent granted to Graph Explorer doesn't grant permissions to the Microsoft Graph PowerShell application. Have an Application Administrator or Cloud Application Administrator grant the User-OnPremisesSyncBehavior.ReadWrite.All delegated permission to the PowerShell application by using the consent procedure.

Sign in as a Hybrid Administrator to perform SOA operations. Replace <tenant-id> with your tenant ID:

Import-Module Microsoft.Graph.Users
Connect-MgGraph -TenantId "<tenant-id>" -Scopes "User-OnPremisesSyncBehavior.ReadWrite.All"

By default, the connection targets the global cloud. For another cloud, add -Environment China, -Environment USGov, or -Environment USGovDoD, as appropriate. Use the same tenant and cloud settings whenever you reconnect. For more information, see Microsoft Graph PowerShell cloud authentication.

The SOA permission doesn't grant permission to update user properties such as displayName. The display-name tests in the following procedure also require User.ReadWrite.All, with consent granted to the application you use for those tests.

Transfer SOA for a test user

  1. Confirm that the synced user is read-only. Because the user is managed on-premises, any write attempts to the user in the cloud fail. The error message differs for mail-enabled users, but updates still aren't allowed.
PATCH https://graph.microsoft.com/v1.0/users/{ID}/

1. Search the Microsoft Entra admin center for the user. Verify that all user fields are greyed out, and that source is Windows Server AD DS.

1. Now you can update the SOA of the user to be cloud-managed. Run the following HTTP operation in Microsoft Graph Explorer, or use `Update-MgUserOnPremiseSyncBehavior -UserId "<user-object-id>" -BodyParameter @{ isCloudManaged = $true }` in Microsoft Graph PowerShell. Replace `<user-object-id>` with the object ID of the user you want to transfer to the cloud. For more information about this API, see [Update onPremisesSyncBehavior](/graph/api/onpremisessyncbehavior-update).

```https
PATCH https://graph.microsoft.com/v1.0/users/{ID}/onPremisesSyncBehavior
Daily Entra.News

Get daily email updates

Get a concise summary of the latest Microsoft Entra updates delivered straight to your inbox.

Loading the secure signup form…