diff --git a/snippets/general-shared-text/snowflake.mdx b/snippets/general-shared-text/snowflake.mdx index 85347a1a..b70f17ff 100644 --- a/snippets/general-shared-text/snowflake.mdx +++ b/snippets/general-shared-text/snowflake.mdx @@ -24,7 +24,17 @@ - A Snowflake user, which can be a service user (recommended) or a human user. - To create a service user (recommended): + To create a service user entry and get their login name (not username): + + 1. Log in to [Snowsight](https://docs.snowflake.com/user-guide/ui-snowsight-homepage) with your Snowflake account. 2. In Snowsight, on the navigation menu, click **Projects > Worksheets**. @@ -41,8 +51,21 @@ ``` 5. Click the arrow icon to run the worksheet, which creates the service user. + 6. To get their login name, on the navigation menu, click **Admin > Users & Roles**. + 7. On the **Users** tab, in the list of available users, click the name of the target user. + 8. In the **About** tile, note the **Login Name** for the user. - To create a human user: + To create a human user entry and get their login name (not username): + + 1. Log in to [Snowsight](https://docs.snowflake.com/user-guide/ui-snowsight-homepage) with your Snowflake account. 2. In Snowsight, on the navigation menu, click **Admin > Users & roles**. @@ -50,33 +73,22 @@ 4. Click **+ User**. 5. Follow the on-screen guidance to specify the user's settings. 6. Click **Create User**. + 7. To get their login name, on the navigation menu, click **Admin > Users & Roles**. + 8. On the **Users** tab, in the list of available users, click the name of the target user. + 9. In the **About** tile, note the **Login Name** for the user. -- The Snowflake [user's login name (not username)](https://docs.snowflake.com/user-guide/admin-user-management#creating-users) in the account, and - a programmatic access token (PAT) for the Snowflake user. +- A programmatic access token (PAT) for the Snowflake user. - To view the login name for a user: - - 1. Log in to [Snowsight](https://docs.snowflake.com/user-guide/ui-snowsight-homepage) with your Snowflake account. - 2. In Snowsight, on the navigation menu, click **Admin > Users & Roles**. - 3. On the **Users** tab, in the list of available users, click the name of the target user. - 4. In the **About** tile, note the **Login Name** for the user. - - Alternatively, the following Snowflake query returns information about the user with the username of ``, including their `login_name` value representing their login name: - - ```text - SHOW USERS LIKE ''; - ``` - To create a programmatic access token (PAT) for a user: 1. Log in to [Snowsight](https://docs.snowflake.com/user-guide/ui-snowsight-homepage) with your Snowflake account. @@ -142,30 +154,6 @@ - (No longer recommended, as passwords are being deprecated by Snowflake—use PATs instead) The Snowflake [user's login name (not username) and the user's password](https://docs.snowflake.com/user-guide/admin-user-management#creating-users) in the account. This user must be a human user. Passwords are not supported for service users. - - - - To view the login name for a user: - - 1. Log in to [Snowsight](https://docs.snowflake.com/user-guide/ui-snowsight-homepage) with your Snowflake account. - 2. In Snowsight, on the navigation menu, click **Admin > Users & Roles**. - 3. On the **Users** tab, in the list of available users, click the name of the target user. - 4. In the **About** tile, note the **Login Name** for the user. - - Alternatively, the following Snowflake query returns information about the user with the username of ``, including their `login_name` value representing their login name: - - ```text - SHOW USERS LIKE ''; - ``` - - The name of the Snowflake [role](https://docs.snowflake.com/sql-reference/sql/create-role) that the user belongs to and that also has sufficient access to the Snowflake database, schema, table, and host.