DENY Availability Group Permissions
DENY permissions on availability group
What changes
- Input
- principal and securable names
- Output or change
- permission metadata
Syntax at a glance
DENY permission [ ,...n ] ON AVAILABILITY GROUP :: availability_group_name TO < server_principal > [ ,...n ] [ CASCADE ] [ AS SQL_Server_login ]
Work example
A login must be denied a named permission on an availability group.
Check server role inheritance and the operations that need the group permission.
Check your work The test login cannot perform the restricted group operation.
Open Microsoft Learn for full syntax, permissions, and details for your version.