# ACCOUNT POLICY

Config path: `/account_policy.yaml`

Example:

```yaml
authentication_policy: my_db.my_schema.my_auth_policy
network_policy: my_network_policy
```

## Schema

* **authentication\_policy** (ident) - assign [AUTHENTICATION POLICY](https://docs.snowddl.com/basic/yaml-configs/authentication-policy) to ACCOUNT
* **network\_policy** (ident) - assign [NETWORK POLICY](https://docs.snowddl.com/basic/yaml-configs/network-policy) to ACCOUNT

## Usage notes

1. It is highly recommended to apply ACCOUNT-level policies manually. SnowDDL will only suggest SQL by default. If you want to apply ACCOUNT-level policies automatically, please use `--apply-account-policy` CLI option. Additional privileges for SnowDDL admin user might be required.
2. ACCOUNT-level policies are ignored when SnowDDL runs with [env\_prefix](https://docs.snowddl.com/guides/other-guides/env-prefix).

## Links

* [ALTER ACCOUNT SET](https://docs.snowflake.com/en/sql-reference/sql/alter-account.html)
* [Parser & JSON Schema (GitHub)](https://github.com/littleK0i/SnowDDL/blob/master/snowddl/parser/account_policy.py)
