question

AndrewFamiano-0230 avatar image
0 Votes"
AndrewFamiano-0230 asked JarvisSun-MSFT commented

Intune - primary user greyed out

I have a machine that’s Azure AD joined. I enrolled it with an admin account. I’m trying to change the primary user but the button is greyed out. The new user has a Office 365 e3 account.

In PowerShell, I’ve updated the registered owner/user to the new user. I can see the owner updated in Azure, but the primary didn’t.

What am I missing?

mem-intune-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JarvisSun-MSFT avatar image
0 Votes"
JarvisSun-MSFT answered

@AndrewFamiano-0230 Thanks for posting in our Q&A.
For our issue, if convenient, could you please share the powershell script which you have used?
I found an article about change the Primary User through graph API, which introduced Set-IntuneDevicePrimaryUser, please refer to:
https://github.com/microsoftgraph/powershell-intune-samples/tree/master/ManagedDevices#9-win10_primaryuser_setps1




If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndrewFamiano-0230 avatar image
0 Votes"
AndrewFamiano-0230 answered JarvisSun-MSFT commented

Sometimes I can change the primary user without running powershell scripts. I don’t understand why it randomly works.

Add-AzureADDeviceRegisteredOwner -ObjectId device's objectid -RefObjectId new owner's objectid

Remove-AzureADDeviceRegisteredOwner -ObjectId device's objectid -OwnerId old owner's objectid

Remove-AzureADDeviceRegisteredUser -objectID Device ObjectID -UserID Old User ObjectID

Add-AzureADDeviceRegisteredUser -ObjectID Device ObjectID -RefObjectID New User ObjectID



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@AndrewFamiano-0230 Thanks for your reply.
It seems to be a very strange problem, I can't give more suggestions, powershell script analysis is beyond our ability. With the limitation of Q&A, it is better to create an online support ticket to handle this issue. It is free. Here is the online support link and hope it will be resolved as soon as possible.
https://docs.microsoft.com/en-us/mem/intune/fundamentals/get-support

0 Votes 0 ·