NetworkAccessPolicy.Read.All
Allows the app to read your organization's network access policies, without a signed-in user.
Permission Details
Read all security and routing policies for network access
Allows the app to read your organization's network access policies, without a signed-in user.
8a3d36bf-cb46-4bcc-bec9-8d92829dab84
Read security and routing policies for network access
Allows the app to read your organization's security and routing network access policies on behalf of the signed-in user.
ba22922b-752c-446f-89d7-a2d92398fceb
Properties
Properties is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
| Property | Type | Description |
|---|---|---|
description |
StringNullable |
Description. |
id |
String |
Identifier. Inherited from microsoft.graph.entity. |
name |
String |
Policy name. |
version |
String |
Version. |
policyRules |
networkaccess.policyRule collection |
Represents the definition of the policy ruleset that makes up the core definition of a policy. |
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.policy",
"id": "String (identifier)",
"name": "String",
"description": "String",
"version": "String"
}
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.policyRule collection |
Represents the definition of the policy ruleset that makes up the core definition of a policy. |
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.FilteringPolicies["{filteringPolicy-id}"].GetAsync();
const options = {
authProvider,
};
const client = Client.init(options);
let filteringPolicy = await client.api('/networkAccess/filteringPolicies/161760b2-7053-4045-b886-3bce286989ae')
.version('beta')
.get();
Import-Module Microsoft.Graph.Beta.NetworkAccess
Get-MgBetaNetworkAccessFilteringPolicy -FilteringPolicyId $filteringPolicyId
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
result = await graph_client.network_access.filtering_policies.by_filtering_policy_id('filteringPolicy-id').get()
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 NetworkAccessPolicy.Read.All
Grant Admin Consent
Application permissions always require admin consent.