Granting SQL Server permissions - For the Security Center Directory role to run, service users who are not Windows administrators and who are not members of the SQL Server sysadmin role must have the VIEW SERVER STATE SQL Server permission. - Security Center 5.13.2.0 - Installation guides

Security Center Installation and Upgrade Guide 5.13.2.0

Product
Security Center
Content type
Guides > Installation guides
Version
5.13
Release
5.13.2.0
ft:locale
en-US
Last updated
2026-01-07

For the Security Center Directory role to run, service users who are not Windows administrators and who are not members of the SQL Server sysadmin role must have the VIEW SERVER STATE SQL Server permission.

What you should know

You can skip this procedure if you are using the default setup with a local SQL Server Express instance.
  • The minimum SQL Server server-level roles required by Security Center are:
    • dbcreator
    • processadmin
    • public
  • The minimum SQL Server database-level roles required by Security Center are:
    • db_backupoperator
    • db_datareader
    • db_datawriter
    • db_ddladmin
    • public
  • Make sure that members of the above-mentioned roles have been granted the VIEW SERVER STATE permission at the SQL Server instance level. For information about the minimum SQL Server roles and permissions required by Security Center roles, see Avoiding connections to SQL Server with an account that has administrative privileges (Basic) on the TechDoc Hub.
  • For more information about SQL Server roles and their capabilities, see your Microsoft documentation.
NOTE: The following procedure is for SQL Server 2022 Express Advanced. If you’re using a different version of SQL Server, see your Microsoft documentation for information about granting permissions.

Procedure

  1. Connect to SQL Server Management Studio.
  2. Add the Security Center service users to the SQL Server Logins, then assign them to the above-mentioned roles.
  3. For each added service user, do one of the following:
    • Run the following query:
      GRANT VIEW SERVER STATE TO [login name]
    • Manually modify the user permissions:
      1. In the Object Explorer panel, right-click the top level of the database instance and click Properties.
      2. Click the Permissions page.
      3. Under Logins or roles, select the user or role you want to modify.
      4. In the Permissions section, click the Explicit tab and select the Grant checkbox beside the View server state permission.
      5. Click OK.