-
Notifications
You must be signed in to change notification settings - Fork 176
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
Rename MgGraph device? I have a tenant with a bunch of devices named "iPhone", want to make them distinct / unique #2450
Comments
Hi luckman212 Are these managed devices, or unmanaged? Have you been able to rename them using the display name property? Something like: If they're managed, you might need to use something like Update-MgDeviceManagementManagedDevice |
If I were hazarding a guess as to why your script was failing to run, it's because you're saying that if you're not supplying an ID, then try to set deviceID in the JSON. You won't be allowed to do that, as the deviceID is an immutable identifier. I think you'd need to re-write this bit to the following, based on this section of the doco https://learn.microsoft.com/en-us/graph/api/device-update?view=graph-rest-1.0&tabs=powershell#http-request:
To be honest though, I reckon it'd be easier to use the cmdlets |
@SeniorConsulting Thanks for trying to help. The devices are typically Unmanaged. Using the cmdlet results in the same Properties other than ExtendedAttribute1..15 can be modified only on windows devices error:
I also modified my function using your suggestion, and that fails in a similar way:
not sure if that So I guess we just can't rename these devices? Seems like a pretty annoying (and insecure) oversight. |
I have many M365 tenants with multiple MgGraph devices named with non-identifying generic names like "iPhone" etc.
I want to make them distinct / unique. There doesn't seem to be any way, either as the admin nor the end user in the https://mysignins.microsoft.com/security-info page, to make these devices more descriptive.
This is not just an inconvenience—it's a legitimate security concern. For example, in the case of a phishing attack or breach, where an attacker is able to register an additional MFA device, how can we tell which is the "real" device and which is the malicious device that should be removed?
I created this small test function Rename-Device to rename a Device using the Graph API Update device method:
However, it returns an error Properties other than ExtendedAttribute1..15 can be modified only on windows devices:
Is there any method for assigning a proper name to a non-windows
MgDevice
please?The text was updated successfully, but these errors were encountered: