diff --git a/knowledge base/snowflake/README.md b/knowledge base/snowflake/README.md index b694b76..a5b37f8 100644 --- a/knowledge base/snowflake/README.md +++ b/knowledge base/snowflake/README.md @@ -118,9 +118,13 @@ USE ROLE USERADMIN; SHOW USERS; SHOW USERS LIKE 'BILLY'; SHOW USERS LIKE '%john%'; +-- List service users +-- requires running in a warehouse +SELECT LOGIN_NAME FROM snowflake.account_usage.users WHERE TYPE = 'SERVICE'; -- Get information about users DESC USER zoe; +DESCRIBE USER william; -- Create users CREATE USER alice; @@ -135,6 +139,7 @@ CREATE USER IF NOT EXISTS data_service TYPE='SERVICE' -- Change user attributes ALTER USER bob SET DEFAULT_WAREHOUSE = NULL; +ALTER USER my_service_user SET TYPE = SERVICE; ALTER USER my_service_user UNSET PASSWORD; -- Show permissions users have SHOW GRANTS TO USER CLAUDE; @@ -595,6 +600,7 @@ Refer [RoleOut]. - [Overview of Access Control] - [Programmatically Accessing Snowflake Model Inference Endpoints] - [Programmatic Access Token (PAT) in Snowflake] +- [Unpacking Snowflake's New User Type Property]