top of page

Script to find role assigned to the user in snowflake

  • Writer: Kunal Ranpura
    Kunal Ranpura
  • Mar 8, 2023
  • 1 min read

select GRANTEE_NAME AS "USERNAME", ROLE

from SNOWFLAKE.ACCOUNT_USAGE.GRANTS_TO_USERS

where DELETED_ON is null and Role = 'ROLENAME'

and Grantee_name like '%username%'

order by USERNAME;


Recent Posts

See All

Comments


bottom of page