NetworkAccess.Read.All
Allows the app to read all network access information and configuration settings without a signed-in user.
Permission Details
Read all network access information
Allows the app to read all network access information and configuration settings without a signed-in user.
e30060de-caa5-4331-99d3-6ac6c966a9a4
Read all network access information
Allows the app to read all network access information on behalf of the signed-in user.
2f7013e0-ab4e-447f-a5e1-5d419950692d
Properties
Properties is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
| Property | Type | Description |
|---|---|---|
description |
String |
A description of the policy. Inherited from microsoft.graph.networkaccess.policy. Optional. |
id |
String |
A unique identifier for the policy. Inherited from microsoft.graph.entity. Key. Not nullable. Read-only. |
lastModifiedDateTime |
DateTimeOffset |
The date and time when the policy was last modified. Read-only. |
name |
String |
A unique display name for the policy. Inherited from microsoft.graph.networkaccess.policy. Required. |
settings |
networkaccess.cloudFirewallPolicySettings |
Configuration settings for the cloud firewall policy, including the default action. Required. |
version |
String |
The version of the policy. Inherited from microsoft.graph.networkaccess.policy. Read-only. |
branches |
networkaccess.branchSite collection |
The locations for connectivity. DEPRECATED AND TO BE RETIRED SOON. Use the remoteNetwork relationship and its associated APIs instead. |
remoteNetworks |
networkaccess.remoteNetwork collection |
The locations, such as branches, that are connected to Global Secure Access services through an IPsec tunnel. |
webCategories |
networkaccess.webCategory collection |
The URL category. |
JSON Representation
JSON representation is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
{
"@odata.type": "#microsoft.graph.networkaccess.cloudFirewallPolicy",
"id": "String (identifier)",
"name": "String",
"description": "String",
"version": "String",
"lastModifiedDateTime": "String (timestamp)",
"settings": {
"@odata.type": "microsoft.graph.networkaccess.cloudFirewallPolicySettings"
}
}
Relationships
Relationships is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
| Relationship | Type | Description |
|---|---|---|
policyRules |
networkaccess.cloudFirewallRule collection |
The rules that define specific firewall behaviors within this policy. Inherited from microsoft.graph.networkaccess.policy. Supports $expand. |
branches |
networkaccess.branchSite collection |
The locations for connectivity. DEPRECATED AND TO BE RETIRED SOON. Use the remoteNetwork relationship and its associated APIs instead. |
remoteNetworks |
networkaccess.remoteNetwork collection |
The locations, such as branches, that are connected to Global Secure Access services through an IPsec tunnel. |
webCategories |
networkaccess.webCategory collection |
The URL category. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
No API methods available for this version.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsMicrosoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.NetworkAccess.Connectivity.MicrosoftGraphNetworkaccessGetWebCategoryByUrlWithUrl("{url}").GetAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.@url = "msn.com/en-us/sports";
});
const options = {
authProvider,
};
const client = Client.init(options);
let webCategory = await client.api('/networkaccess/connectivity/getWebCategoryByUrl(url='@url')')
.version('beta')
.get();
Import-Module Microsoft.Graph.Beta.NetworkAccess
Get-MgBetaNetworkAccessConnectivityWebCategoryByUrl -@url "msn.com/en-us/sports"
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.network_access.connectivity.microsoft.graph.networkaccess.get_web_category_by_url(url='{url}').get_web_category_by_url_with_url_request_builder import GetWebCategoryByUrlWithUrlRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
query_params = GetWebCategoryByUrlWithUrlRequestBuilder.GetWebCategoryByUrlWithUrlRequestBuilderGetQueryParameters(
@url = "msn.com/en-us/sports",
)
request_configuration = RequestConfiguration(
query_parameters = query_params,
)
result = await graph_client.network_access.connectivity.microsoft_graph_networkaccess_get_web_category_by_url_with_url("{url}").get(request_configuration = request_configuration)
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Application permissions or delegated permissions and search for NetworkAccess.Read.All
Grant Admin Consent
Application permissions always require admin consent.