Grantor does not have GRANT permission

user6826691 picture user6826691 · Jun 30, 2017 · Viewed 9.4k times · Source

I have a gitlab user and a role assigned to it, now the gitlab user needs extra grant permissions.

I am executing the following sentence. [ssms 2012]

GRANT VIEW SERVER STATE to xxx;

ERROR:

Grantor does not have GRANT permission

What is the permission i should give to gitlab user so that it can give grant permissions to another user.

I have also tried this but same error

grant view server state to xxx with grant option

please tell me as a command

Answer

Icarus picture Icarus · Jun 30, 2017

The error is pretty clear - the account that you are using to run the script does not have WITH GRANT permission and therefore it cannot give it to someone else. Check with your DBA.