-
Notifications
You must be signed in to change notification settings - Fork 167
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
Update-MgDevice -AccountEnabled for Non-Windows OS #2066
Comments
Thanks for bringing this to our attention. This does appear to be a known issue with API. Here an excerpt from the API known issue page:
Your only option at the moment is to use delegated permissions (authenticate as a user) to update the property on a non-Windows device. I'd also recommend you open a service feature request at https://developer.microsoft.com/en-us/graph/support if this is a scenario you'd like to see supported. |
Closing as known API issue. |
Not sure why this was closed. This isn't on the known API issues page. It's also just some arbitrary limitation that exist for no reason at all. Feedback exist for this at: |
The known issue has been changed since my comment at #2066 (comment) - Wayback link. The API limitation is now documented in the API reference doc :
|
In the Azure portal I can disable non-Windows (e.g., iOS) devices. Using Update-MgDevice an error is generated:
I am connecting via App Registration, with Device.ReadWrite.All and the app registration's service principal is added to the Cloud Device Administrator role. The two methods I attempted to update the AccountEnabled status, both result in the same error:
Full error output:
When copying the API call from Developer Tools in Edge browser, I can see it is setting AccountEnabled to $false in the Invoke-WebRequest call, so I'm wondering if this is an issue with the Update-MgDevice cmdlet, specifically.
The text was updated successfully, but these errors were encountered: