REVOKE Service Broker Permissions
REVOKE permissions on service broker
What changes
- Input
- principal and securable names
- Output or change
- permission metadata
Syntax at a glance
REVOKE [ GRANT OPTION FOR ] permission [ ,...n ] ON { [ CONTRACT :: contract_name ] | [ MESSAGE TYPE :: message_type_name ] | [ REMOTE SERVICE BINDING :: remote_binding_name ] | [ ROUTE :: route_name ] | [ SERVICE :: service_name ] } { TO | FROM } database_principal [ ,...n ] [ CASCADE ] [ AS revoking_principal ]
Work example
A message handler no longer needs a direct broker permission.
Check active services, queue readers, and role inheritance before removing the grant.
Check your work The handler loses only the named broker action and required message flow continues.
Open Microsoft Learn for full syntax, permissions, and details for your version.