chrome.enterprise.networkingAttributes

Description

Use the chrome.enterprise.networkingAttributes API to read information about your current network. Note: This API is only available to extensions force-installed by enterprise policy.

Permissions

enterprise.networkingAttributes

Availability

Chrome 85+ ChromeOS only Requires policy

Types

NetworkDetails

Properties

  • ipv4

    string optional

    The device's local IPv4 address (undefined if not configured).

  • ipv6

    string optional

    The device's local IPv6 address (undefined if not configured).

  • macAddress

    string

    The device's MAC address.

Methods

getNetworkDetails()

chrome.enterprise.networkingAttributes.getNetworkDetails(): Promise<NetworkDetails>

Retrieves the network details of the device's default network. If the user is not affiliated or the device is not connected to a network, runtime.lastError will be set with a failure reason.

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.