Skip to content
Kim Nilsson edited this page Apr 17, 2021 · 10 revisions

CB_QueryDetails

Webapp that queries Google ChromeosDevices API for details on provided serial number in URL

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.

PRIVACY POLICY

You are in full control of all the data. The script is only accessing data you yourself have access to. No data is sent anywhere, except between you and Google. No matter if you create a copy of my Sheet or my scripts, I will never gain access to any of your data. All data reading and writing is done by you on your own account.

paypal

Clone this wiki locally