Jeyjee
Jeyjee

Reputation: 135

Snowflake System Roles - USERADMIN vs SECURITYADMIN

Looking for inputs on when to leverage USERADMIN vs SECURITYADMIN, As per documentation SECURITYADMIN inherits privileges of USERADMIN

What is the right approach in leveraging these two roles for User, Role and Grants management. I am using as below

USERADMIN - Used for the following

SECURITYADMIN - Used for the following

Question is, who should be performing the following. Is it USERADMIN or SECURITYADMIN? If both these roles can technically perform, is there any standard guidance on this.

Thank you.

Upvotes: 2

Views: 3481

Answers (1)

Felipe Hoffa
Felipe Hoffa

Reputation: 59235

The USERADMIN role didn't exist before April 2020, as this new role was introduced as an improvement to enable accounts to separate the management of users and roles from the SECURITYADMIN role - if desired.

You can use either system role to GRANT ROLE. The best practice should be determined by your own security policy.

Because the USERADMIN role is assigned to the SECURITYADMIN role, users with the SECURITYADMIN role can still administer users and roles. However, companies can now assign the USERADMIN role to separate the management of users and roles from the management of all grants.

Use of the USERADMIN role to separate these duties is optional. The decision to use the USERADMIN role is driven entirely by the security model implemented for your account.

My own recommendation: Since USERADMIN can GRANT ROLE, and USERADMIN is the more restricted role — then choose to use USERADMIN when granting roles.

Upvotes: 7

Related Questions