DENY Schema Permissions
DENY permissions on schema
What changes
- Input
- principal and securable names
- Output or change
- permission metadata
Syntax at a glance
DENY permission [ ,...n ] } ON SCHEMA :: schema_name TO database_principal [ ,...n ] [ CASCADE ] [ AS denying_principal ]
Work example
A database user must be blocked from an operation across one schema.
Review schema ownership and object-level grants that could affect the expected result.
Check your work The test user cannot perform the named action in the schema.
Open Microsoft Learn for full syntax, permissions, and details for your version.