Comments (10)
Hi, confirmed, I tried this some time ago and had the same result.
from loaner.
I've been having to manually update datastore, on behalf of our desktop team who don't have gcp access, to get the asset tags to work with auditing a shelf
from loaner.
from loaner.
If you go to Datastore -> Entities and filter by Device (The 'kind' option) you'll see all the registered devices (It seems to have all of the devices that are registered in GSuite, not just the loaner/grab and go ones):
Search for the serial number, click on the value in the Name/Id column to Edit it and you can then add the asset tag to the asset_tag property
That enables being able to use the asset tags for shelf audits, but you need to do it for every device after you've initially enrolled it
from loaner.
Hi "iamgeef" thank you for your comment but...
I tried editing the asset_tag directly on the entity in the GCP, but in some part of the process the relation is lost and the device is not recognized, so at the end the "device" become a "ghost" and it cannot be unrolled, audit, extend the loaner period, etc. I tried with "Clear device (in settings)" but this did not work.
In recap, I don not recommend to do this manually in the GCP.
Does anybody has another suggestion?
Thank you in advance for your time.
Kind regards,
Josh S.
from loaner.
Just a bit of clarification here on using asset tag.
-
Currently there is no way to manually add asset tags to devices unless you do it manually through datastore (not recommended). If you do it this way, you will need to reindex all of the devices in the configuration menu under Search Indexing.
-
If you want to do this automatically, you will need to create your own custom action that will translate an asset tag to a serial number using an asset management system you have (assuming it has an API you can utilize). This action can then be tied to the event called 'device_enroll' which is raised during device enrollment.
from loaner.
Hi Sasho11,
Thank you for the clarifications (#1 seems that is the easy way to use the asset tag, but could be a little bit risky, #2 definitively it's an interesting proposal that it has to be tried on the test environment).
Kind regards!
from loaner.
Raises an interesting question of what the "Use asset tags" option does if the feature isn't available without creating it ourselves...
I've got a workaround, that works for my use case anyway. Maybe it'll help others.
We use the 'Asset ID' field of the chrome_devices GSuite config to store our asset tags, entered during Enterprise Enrollment process by our desktop team, BUT the Directory API doesn't provide the ability to get the asset tag field: https://developers.google.com/admin-sdk/directory/v1/reference/chromeosdevices
It does allow you to get the contents of the 'notes' field so I've been able to convince the desktop team to also enter the asset tag into the devices 'notes' field at enrollment time.
It's then just 4 lines that need to be changed - sorry for the formatting...:
loaner/web_app/constants.py - appending 'notes' as a new field mask:
CHROME_FIELDS_MASK = 'deviceId,serialNumber,model,orgUnitPath,notes'
CHROME_LIST_FIELDS_MASK = ( 'chromeosdevices(deviceId,serialNumber,model,orgUnitPath,notes)')
loaner/web_app/backend/clients/directory.py - adding ASSET_TAG = u'notes'
DEVICE_ID = u'deviceId'
+ASSET_TAG = u'notes'
MODEL = u'model'
ORG_UNIT_PATH = u'orgUnitPath'
SERIAL_NUMBER = u'serialNumber'
_NEXT_PAGE = 'nextPageToken'
loaner/web_app/backend/models/device_model.py - adding a new line to assign the notes to device.asset_tag field:
device.chrome_device_id = directory_device_object[directory.DEVICE_ID]
device.current_ou = directory_device_object[directory.ORG_UNIT_PATH]
device.device_model = directory_device_object[directory.MODEL]
+device.asset_tag = directory_device_object[directory.ASSET_TAG]
I still have to enroll with the serial number, but it now gets the asset Id.
from loaner.
If anyone else uses the same 'Asset ID' field, I've raised a feature request to get the 'Asset ID' field available in the Directory API to avoid using the 'notes' field to store the ID:
https://issuetracker.google.com/issues/132368945
from loaner.
using annotatedAssetId instead of notes in the code above worked for me.
from loaner.
Related Issues (20)
- [Question] How's the notifications/reminder email works? HOT 5
- [QUESTION] Where in the code are stored the devices when enrolled in Grab and Go HOT 1
- Is there a simple way to update a Datastore entity HOT 3
- Please incorporate Alan's version of GnG HOT 2
- Precondition Failed when unenrolling a device HOT 2
- Completely reset Loaner data/Downgrading issues HOT 3
- Exploring options where Chromebooks and Chromebase used in an organisation. Dont want to pin grabngo app to all users. HOT 3
- [QUESTION] Chrome app deprectiation HOT 2
- Loaner: 8719G03U8X HOT 3
- Newbie trying to get this to work ~ FAILED: Build did NOT complete successfully (0 packages loaded) HOT 1
- Another Newbie having problems - Error occurred during the fetch of repository 'io_bazel_rules_appengine
- Grab and Go issues: Multi domain option. HOT 1
- Device not found using device_identifier HOT 2
- 02368551_Chromebook extension needed until Jan 15th HOT 1
- 02346073_Chrome book extension needed until 18th Feb HOT 1
- Unable to enroll new devices to GnG loaner portal
- Cannot access to the web app locally HOT 9
- Could not find public key information in Chome Web Store Dashboard HOT 3
- Web app internal server error, DirectoryRPCError: Forbidden, initial Bootstrapping HOT 7
- Multiple Domain, first bootstrap login error unauthorized HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loaner.