Closed dandirk closed 2 years ago
This sounds like a service issue since the service isn't returning the UI updated property values. Also, the SDK does not cache responses from the service. I would suggest you:
Closing as not actionable by the SDK. Please open a question/ticket at https://developer.microsoft.com/graph/support for the service owners to investigate. This repo is for issues directly caused by the SDK.
If we change Primary User in intune portal, Graph doesn't seem to reflect info of that change.
get-MgDeviceManagementManagedDevice retains info on the previous primary user. Checked about 24 hours later as well.
Also tried using mggraphrequest (beta too): Invoke-MgGraphRequest -Method GET -URI 'https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/IntuneDeviceID' which returned same results.
Not entirely sure which properties should be updated... In the past I know I saw either/both email and UPN update.
UserPrincipalName EmailAddress UserID
Though if I run: Invoke-MgGraphRequest -Method GET -URI 'https://graph.microsoft.com/beta/deviceManagement/managedDevices/IntuneDeviceID/users' the UserID of the new user is returned almost immediately after change. AB#10026