Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure when no Primary User is set #6

Open
JerichoJones opened this issue Jul 7, 2022 · 2 comments
Open

Failure when no Primary User is set #6

JerichoJones opened this issue Jul 7, 2022 · 2 comments

Comments

@JerichoJones
Copy link

JerichoJones commented Jul 7, 2022

No Intune Primary User Id set for Intune Managed Device
Response content:
{"error":{"code":"BadRequest","message":"{\r\n "_version": 3,\r\n "Message": "User id must be in the form of Guid, User id =

The GUID appears to be many guids concatenated together separated by %20

ERROR: Set-IntuneDevicePrimaryUser : Request to https://graph.microsoft.com/beta/deviceManagement/managedDevices('GUID')/users/$ref
ERROR: failed with HTTP Status BadRequest Bad Request

@JerichoJones
Copy link
Author

I think this is happening because we have some devices where the LastLoggedOn field is empty in Intune.

@wisper1977
Copy link

I am having the same issue, would there be a way to tell it to set a specific user in this instance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants