chrome.enterprise.deviceAttributes (original) (raw)

chrome.enterprise.deviceAttributes

Description

Use the chrome.enterprise.deviceAttributes API to read device attributes. Note: This API is only available to extensions force-installed by enterprise policy.

Permissions

enterprise.deviceAttributes

Availability

Methods

getDeviceAnnotatedLocation()

chrome.enterprise.deviceAttributes.getDeviceAnnotatedLocation(): Promise

Fetches the administrator-annotated Location. If the current user is not affiliated or no Annotated Location has been set by the administrator, returns an empty string.

Returns

getDeviceAssetId()

chrome.enterprise.deviceAttributes.getDeviceAssetId(): Promise

Fetches the administrator-annotated Asset Id. If the current user is not affiliated or no Asset Id has been set by the administrator, returns an empty string.

Returns

getDeviceHostname()

chrome.enterprise.deviceAttributes.getDeviceHostname(): Promise

Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the enterprise policy, returns an empty string.

Returns

getDeviceSerialNumber()

chrome.enterprise.deviceAttributes.getDeviceSerialNumber(): Promise

Fetches the device's serial number. Please note the purpose of this API is to administrate the device (e.g. generating Certificate Sign Requests for device-wide certificates). This API may not be used for tracking devices without the consent of the device's administrator. If the current user is not affiliated, returns an empty string.

Returns

getDirectoryDeviceId()

chrome.enterprise.deviceAttributes.getDirectoryDeviceId(): Promise

Fetches the value of the device identifier of the directory API, that is generated by the server and identifies the cloud record of the device for querying in the cloud directory API. If the current user is not affiliated, returns an empty string.

Returns

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-11 UTC.