Share via

For Azure AD, endpoint returning error message when trying to update device for Operating System field as "windows"

Anonymous
2022-01-11T02:10:53.29+00:00

Hello Team,

Wnen I am trying to update operating system field for device with value "Windows" then enpoint is also returning error message saying "Operating System category cannot be changed" . But I am able to update with other values than "windows" like "Mac, Win, Window etc ...."

Following is my input that I'm using in POSTMAN.

Endpoint : PATCH : https://graph.microsoft.com/v1.0/devices/\<device_id>
Input body :
{
"operatingSystem": "Windows"
}

Output:
{
"error": {
"code": "Request_BadRequest",
"message": "Operating System category cannot be changed.",
"innerError": {
"date": "2022-01-11T02:03:21",
"request-id": "2e6fcacb-6ec4-425a-b5d0-57c464679929",
"client-request-id": "2e6fcacb-6ec4-425a-b5d0-57c464679929"
}
}
}

Please let me know your opinion on this behavior.

Kind regards

Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Most helpful
  1. Givary-MSFT 35,786 Reputation points Microsoft Employee Moderator
    2022-01-11T06:06:11.907+00:00

    @Anonymous :

    Thank you for reaching out to us. I have thoroughly tested this issue at my end with Windows desktop & Android Device. The word "Windows" is reserved for windows desktop operating system only, i can update "OperatingSystem" value like ex: TestWindows, Windows10, WindowsTest, the word "Windows" should be present for desktop operating system we cannot rename to Mac, Win, Android etc.

    For Android Device "OperatingSystem" value can be updated with any value other than "Windows" As "Windows" word is reserved for only desktop operating system.

    Would like to know, any particular reason you want to use word "windows" to update the OperatingSystem" attribute ?

    If you have any other questions, please let me know.
    Thank you for your time and patience throughout this issue.

    ----------

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.