---
title: NetworkAccessPolicy type | Wartiva GraphQL API
description: Controls anonymous access, shares, and remote access restrictions for the Windows network stack. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/network-access-policy.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `NetworkAccessPolicy` type

Controls anonymous access, shares, and remote access restrictions for the Windows network stack.

## Fields

| Field Name | Description |
|---|---|
| `restrictAnonymousSAM` - [`Boolean`](https://wartiva.com/api-docs/types/boolean.html) | Restrict anonymous SID/Name translation for SAM accounts. |
| `restrictAnonymous` - [`Boolean`](https://wartiva.com/api-docs/types/boolean.html) | Restrict enumeration of SAM accounts. |
| `disableDomainCreds` - [`Boolean`](https://wartiva.com/api-docs/types/boolean.html) | Restrict storage of passwords and credentials for network authentication. |
| `everyoneIncludesAnonymous` - [`Boolean`](https://wartiva.com/api-docs/types/boolean.html) | Let everyone permissions apply to anonymous users. |
| `nullSessionPipes` - [`[String!]`](https://wartiva.com/api-docs/types/string.html) | Named pipes that can be accessed anonymously. |
| `allowedExactPaths` - [`[String!]`](https://wartiva.com/api-docs/types/string.html) | Remotely accessible registry paths. |
| `allowedPaths` - [`[String!]`](https://wartiva.com/api-docs/types/string.html) | Remotely accessible registry path and sub-paths. |
| `restrictNullSessAccess` - [`Boolean`](https://wartiva.com/api-docs/types/boolean.html) | Restrict anonymous access to named pipes and shares. |
| `restrictRemoteSAM` - [`String`](https://wartiva.com/api-docs/types/string.html) | Restrict clients allowed to make remote calls to SAM. |
| `nullSessionShares` - [`[String!]`](https://wartiva.com/api-docs/types/string.html) | Shares that can be accessed anonymously. |
| `forceGuest` - [`ForceGuestType`](https://wartiva.com/api-docs/types/force-guest-type.html) | Sharing and security model for local accounts. |

## Used by

- [`LocalPoliciesWindows`](https://wartiva.com/api-docs/types/local-policies-windows.html) type: Windows-specific local security and system policies.

## Example

### Example

```json
{
  "restrictAnonymousSAM": false,
  "restrictAnonymous": true,
  "disableDomainCreds": false,
  "everyoneIncludesAnonymous": false,
  "nullSessionPipes": ["abc123"],
  "allowedExactPaths": ["abc123"],
  "allowedPaths": ["xyz789"],
  "restrictNullSessAccess": false,
  "restrictRemoteSAM": "xyz789",
  "nullSessionShares": ["xyz789"],
  "forceGuest": "LOCAL_USERS_AUTHENTICATE_AS_THEMSELVES"
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
