Welcome What's new in Chrome extensions Getting started API Reference Samples

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+

Note: This API is only for extensions pre-installed by policy.

Summary

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(
  callback?: function,
)
Promise

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.

Parameters

Returns

  • Pending

    This only returns a Promise when the callback parameter is not specified, and with MV3+. The type inside the Promise is the same as the 1st argument to callback.