Set Primary User
Set a new primary user on a managed Intune device
Last updated
Was this helpful?
Set a new primary user on a managed Intune device
This runbook assigns a new primary user to an Intune managed device. It resolves the Intune managed device from the Entra Object ID provided by the portal, retrieves the current primary user and device details, removes the existing user assignment, and then sets the specified user as the new primary user. The output shows the previous and new assignment for audit purposes.
Device → General → Set Primary User
Full Runbook name
rjgit-device_general_set-primary-user
Type: Microsoft Graph
DeviceManagementManagedDevices.ReadWrite.All
User.Read.All
The Entra Object ID of the device. Pre-filled from the RealmJoin Portal and hidden in the UI.
Required
true
Default Value
Type
String
The user to assign as the new primary user of the device.
Required
true
Default Value
Type
String
Last updated
Was this helpful?
Was this helpful?