Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Grant create user permission Snowflake

Its a newbie question but still I am trying to grant create user permission to sysadmin role from the accountAdmin role so that I can create users in the sysadmin role.

The statement I am trying to execute is:

grant create user to role sysadmin;

Error

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

SQL compilation error: syntax error line 1 at position 18 unexpected 'to'.

What’s the exact statement to achieve this?
I tried googling but haven’t found any exact query statement in a long time, so posting it here.

>Solution :

Grant create user on account to role role_name ;

Please note that this statement has to be submitted as an ACCOUNTADMIN

https://docs.snowflake.com/en/sql-reference/sql/grant-privilege.html

You could also choose to use the WITH GRANT OPTION which allows the grantee to regrant the role to other users.

Grant create user on account to role role_name WITH GRANT OPTION;

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading