I'm attempting to create a dashboard for admins to allow them to reset a chrome device managed by GoogleAdmin using google apps script.
I don't see any way to perform a reset using Admin SDK API. Can this be done?
I'm attempting to create a dashboard for admins to allow them to reset a chrome device managed by GoogleAdmin using google apps script.
I don't see any way to perform a reset using Admin SDK API. Can this be done?
Copyright © 2021 Jogjafile Inc.
If you want to deprovision and/or disable a ChromeOS device
The supported actions when using the Directory API, according to the documentation here are:
Taking this into account, this is how the request would look like:
If you want to reboot and/or remote powerwash a ChromeOS device
However, if you simply plan on doing a
powerwash
or areboot
, you can make use of the below information:Taking this into account, this is how the request would look like:
Apps Script
As for applying any of these in Apps Script, you will have to add the Admin SDK API advanced service and choose the
directory _v1
version and simulate any of the above requests.Code
Assuming you want to remote powerwash a device, you will have to write something similar to this:
Not what you are looking for?
You can simply create a feature request on Google's Issue Tracker and provide the details with regards to your task by filling in the form here.
Reference