ALTER USER SET INGRESS POLICY

statementnot supportedIntegrations, network & secretspreview

docs.snowflake.com ↗

Attaches an ingress policy to a user, or removes that attachment. This syntax is the ingress-policy clause of ALTER USER. The rest of ALTER USER is unchanged.

Syntax

ALTER USER <name> SET INGRESS POLICY <policy_name> [ FORCE ]

ALTER USER <name> UNSET INGRESS POLICY

Parameters

NameRequiredDescription
nameIdentifier for the user. The user name is required.
policy_nameIdentifier for the ingress policy to attach. Use a fully qualified name when the policy is outside the current schema.
FORCEReplaces an ingress policy that is already set on the user without unsetting it first.

Usage notes

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes APPLY INGRESS POLICY | User | Required on the user to attach or detach the policy. OWNERSHIP | Ingress policy | OWNERSHIP is a special privilege on an object that is automatically granted to the role that created the object, but can also be transferred using the GRANT OWNERSHIP command to a different role by the owning role (or any role with the MANAGE GRANTS privilege).. Either this privilege or APPLY is required. APPLY | Ingress policy | Required when the role does not own the policy. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.

See also

Referenced by