microsoftgraph / msgraph-sdk-powershell

Powershell SDK for Microsoft Graph
https://www.powershellgallery.com/packages/Microsoft.Graph
Other
696 stars 168 forks source link

get-MgDeviceManagementManagedDevice does not update Primary User info #717

Closed dandirk closed 2 years ago

dandirk commented 3 years ago

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

peombwa commented 3 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:

  1. Try use Graph Explorer to see if you can reproduce the issue there.
  2. If so, open a support ticket here for this to be investigated.
peombwa commented 2 years ago

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.