Zum Inhalt springen

Grant and Revoke Members to SQL Server Agent Roles in SQLServer Flex

Diese Seite ist noch nicht in deiner Sprache verfügbar. Englische Seite aufrufen

With one of the following required roles, the permission required for the SQLServer Agent (Manager / User) can be set automatically via the portal:

  • ##STACKIT_ServerManager##
    This role contains ##STACKIT_SQLAgentManager## role by default.
  • ##STACKIT_SQLAgentManager##
    The role acts as SQL Server agent manager and corresponds to the existing role in an SQLServer -SQLAgentOperatorRole.
  • ##STACKIT_SQLAgentUser##
    The role acts as SQL Server agent user and corresponds to the existing role in an SQLServer -SQLAgentUserRole.

Brief comparison between ##STACKIT_SQLAgentManager## and ##STACKIT_SQLAgentUser## agent roles

Task##STACKIT_SQLAgentManager####STACKIT_SQLAgentUser##
Create jobs
View/execute their own jobs
View/execute any jobs
Modify/delete their own jobs
Modify/delete jobs owned by others
View their own job history
View other jobs history
View job schedules
Modify job schedules
Create alerts/operators
View alerts/operators
Modify existing alerts/operators

The corresponding roles can be granted to the user via the portal in the respective project of the SQLServer instance:

  • ##STACKIT_ServerManager##
  • ##STACKIT_SQLAgentManager##
  • ##STACKIT_SQLAgentUser##

Example:

Currently, roles can be granted via the portal only during user creation process.

Granting SQL agent roles to existing users

It is possible to grant the roles ##STACKIT_SQLAgentManager## or ##STACKIT_SQLAgentUser## to an existing user afterwards,
e.g. via the SQL Management Studio (with the Stored Procedures see Tab “via SQL Management Studio”).

The roles cannot currently be revoked via the portal.

Revoking SQL agent roles from existing users

It is possible to revoke roles ##STACKIT_SQLAgentManager## and ##STACKIT_SQLAgentUser## from an existing users retrospectively. e.g. via the SQL Management Studio (with the Stored Procedure see Tab “via SQL Management Studio”).