This page describes the permissions that you need to access Network Analyzer.

To access the analysis results of a project, you must have
`compute.networks.list` and `compute.instances.list` permissions.

To access the analysis results of monitored projects of a Cloud Monitoring
metrics scope, you must have `compute.networks.list` and
`compute.instances.list` permissions on the scoping project of the metrics
scope. On the Network Analyzer console of the scoping project, you can see
the analysis results of all the monitoring projects.

## Access Network Analyzer logs in Cloud Logging

Network Analyzer writes insights as [platform logs](https://docs.cloud.google.com/logging/docs/api/platform-logs.md.txt#network_analyzer)
within Cloud Logging. You can access Network Analyzer logs by using the
following options: the [Cloud Logging API](https://docs.cloud.google.com/logging/docs/reference/v2/rest.md.txt), the
[Logs Explorer](https://docs.cloud.google.com/logging/docs/view/logs-explorer-interface.md.txt),
and the
[Google Cloud CLI](https://docs.cloud.google.com/logging/docs/reference/tools/gcloud-logging.md.txt).

- To receive Network Analyzer logs, you must enable the Logging API. For more information, see [Enable the Logging API](https://docs.cloud.google.com/logging/docs/api/enable-api.md.txt).
- To access the logs data in the [Logging API](https://docs.cloud.google.com/logging/docs/reference/v2/rest.md.txt), the [Logs Explorer](https://docs.cloud.google.com/logging/docs/view/logs-explorer-interface.md.txt), and the [gcloud CLI](https://docs.cloud.google.com/logging/docs/reference/tools/gcloud-logging.md.txt), you must grant the required Identity and Access Management (IAM) roles and permissions. For more information, see [Access control with IAM](https://docs.cloud.google.com/logging/docs/access-control.md.txt).

## Access Network Analyzer insights in Recommender API

To access insights by using the Recommender API and the gcloud CLI,
perform the following tasks:

1. Enable the [Recommender API](https://docs.cloud.google.com/recommender/docs/overview) for your project.
2. Grant the required IAM roles and permissions to access Network Analyzer insight types in the Recommender API. For more information, see [Recommender roles](https://docs.cloud.google.com/iam/docs/roles-permissions/recommender.md.txt).