-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Webapp that queries Google ChromeosDevices API for details on provided serial number in URL
I try to keep the English version up to date, but since I develop this for my own needs, the Swedish version often gets the new features and ideas first. Do check it out, as I comment in English, so the code should be fairly easy to understand anyway.
CB_DeviceDetails can be found over here
https://tools.no-substitute.com/cb-tools/cb_lookup
Demo doesn't have all features!
Create a new project in https://script.google.com (name it CB_QueryDetails) and add the all files listed here as files in your project. The .html files are of course created with "File/New/HTML file" in the menu. The .gs files are created with "File/New/Script file".
Then you save all your code and go to Deploy as web app.
Choose to run the app as "User accessing the web app". You have to make sure each user that needs to use it actually has a proper admin role with the necessary access to devices, else nothing happens. Also make sure to limit the web app to your domain users in the setting "Who has access to the app".
When you have selected your options, click Deploy / New deployment. You are then given the exec URL of your web app, which you can distribute to users who should have access to the app, and more importanly is required for the most recent update of CB_LookUp!
If you ever need to change the code, don't forget to publish a new version under Deploy / Manage deployments (don't use Deploy/new deployment), so your new code is made available to your users. While experimenting, you yourself can always use Deploy / Test deployments", which is a dev version of your code, which doesn't require publishing to run.