Welcome What's new in Chrome extensions API reference Samples
Welcome What's new in Chrome extensions API reference Samples

chrome.enterprise.networkingAttributes

Important: This API works only on ChromeOS
  • 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

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

  • Chrome 96+

    Promises are supported in Manifest V3 and later, but callbacks are provided for backward compatibility. You cannot use both on the same function call. The promise resolves with the same type that is passed to the callback.

This site uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more about our use of cookies.