|
24 | 24 |
|
25 | 25 | - A Snowflake user, which can be a service user (recommended) or a human user. |
26 | 26 |
|
27 | | - To create a service user (recommended): |
| 27 | + To create a service user entry and get their login name (not username): |
| 28 | + |
| 29 | + <iframe |
| 30 | + width="560" |
| 31 | + height="315" |
| 32 | + src="https://www.youtube.com/embed/n755MKunb0k" |
| 33 | + title="YouTube video player" |
| 34 | + frameborder="0" |
| 35 | + allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
| 36 | + allowfullscreen |
| 37 | + ></iframe> |
28 | 38 |
|
29 | 39 | 1. Log in to [Snowsight](https://docs.snowflake.com/user-guide/ui-snowsight-homepage) with your Snowflake account. |
30 | 40 | 2. In Snowsight, on the navigation menu, click **Projects > Worksheets**. |
|
41 | 51 | ``` |
42 | 52 |
|
43 | 53 | 5. Click the arrow icon to run the worksheet, which creates the service user. |
| 54 | + 6. To get their login name, on the navigation menu, click **Admin > Users & Roles**. |
| 55 | + 7. On the **Users** tab, in the list of available users, click the name of the target user. |
| 56 | + 8. In the **About** tile, note the **Login Name** for the user. |
44 | 57 |
|
45 | | - To create a human user: |
| 58 | + To create a human user entry and get their login name (not username): |
| 59 | + |
| 60 | + <iframe |
| 61 | + width="560" |
| 62 | + height="315" |
| 63 | + src="https://www.youtube.com/embed/CECTR2QE__w" |
| 64 | + title="YouTube video player" |
| 65 | + frameborder="0" |
| 66 | + allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
| 67 | + allowfullscreen |
| 68 | + ></iframe> |
46 | 69 |
|
47 | 70 | 1. Log in to [Snowsight](https://docs.snowflake.com/user-guide/ui-snowsight-homepage) with your Snowflake account. |
48 | 71 | 2. In Snowsight, on the navigation menu, click **Admin > Users & roles**. |
49 | 72 | 3. Click the **Users** tab. |
50 | 73 | 4. Click **+ User**. |
51 | 74 | 5. Follow the on-screen guidance to specify the user's settings. |
52 | 75 | 6. Click **Create User**. |
| 76 | + 7. To get their login name, on the navigation menu, click **Admin > Users & Roles**. |
| 77 | + 8. On the **Users** tab, in the list of available users, click the name of the target user. |
| 78 | + 9. In the **About** tile, note the **Login Name** for the user. |
53 | 79 |
|
54 | | -- The Snowflake [user's login name (not username)](https://docs.snowflake.com/user-guide/admin-user-management#creating-users) in the account, and |
55 | | - a programmatic access token (PAT) for the Snowflake user. |
| 80 | +- A programmatic access token (PAT) for the Snowflake user. |
56 | 81 |
|
57 | 82 | <iframe |
58 | 83 | width="560" |
59 | 84 | height="315" |
60 | | - src="https://www.youtube.com/embed/sFLPGVe4VBM" |
| 85 | + src="https://www.youtube.com/embed/8u41UJ8lN3w" |
61 | 86 | title="YouTube video player" |
62 | 87 | frameborder="0" |
63 | 88 | allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
64 | 89 | allowfullscreen |
65 | 90 | ></iframe> |
66 | 91 |
|
67 | | - To view the login name for a user: |
68 | | - |
69 | | - 1. Log in to [Snowsight](https://docs.snowflake.com/user-guide/ui-snowsight-homepage) with your Snowflake account. |
70 | | - 2. In Snowsight, on the navigation menu, click **Admin > Users & Roles**. |
71 | | - 3. On the **Users** tab, in the list of available users, click the name of the target user. |
72 | | - 4. In the **About** tile, note the **Login Name** for the user. |
73 | | - |
74 | | - Alternatively, the following Snowflake query returns information about the user with the username of `<my-user>`, including their `login_name` value representing their login name: |
75 | | - |
76 | | - ```text |
77 | | - SHOW USERS LIKE '<my-user>'; |
78 | | - ``` |
79 | | - |
80 | 92 | To create a programmatic access token (PAT) for a user: |
81 | 93 |
|
82 | 94 | 1. Log in to [Snowsight](https://docs.snowflake.com/user-guide/ui-snowsight-homepage) with your Snowflake account. |
|
142 | 154 |
|
143 | 155 | - (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. |
144 | 156 | This user must be a human user. Passwords are not supported for service users. |
145 | | - |
146 | | - <iframe |
147 | | - width="560" |
148 | | - height="315" |
149 | | - src="https://www.youtube.com/embed/sFLPGVe4VBM" |
150 | | - title="YouTube video player" |
151 | | - frameborder="0" |
152 | | - allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
153 | | - allowfullscreen |
154 | | - ></iframe> |
155 | | - |
156 | | - To view the login name for a user: |
157 | | - |
158 | | - 1. Log in to [Snowsight](https://docs.snowflake.com/user-guide/ui-snowsight-homepage) with your Snowflake account. |
159 | | - 2. In Snowsight, on the navigation menu, click **Admin > Users & Roles**. |
160 | | - 3. On the **Users** tab, in the list of available users, click the name of the target user. |
161 | | - 4. In the **About** tile, note the **Login Name** for the user. |
162 | | - |
163 | | - Alternatively, the following Snowflake query returns information about the user with the username of `<my-user>`, including their `login_name` value representing their login name: |
164 | | - |
165 | | - ```text |
166 | | - SHOW USERS LIKE '<my-user>'; |
167 | | - ``` |
168 | | - |
169 | 157 | - 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. |
170 | 158 |
|
171 | 159 | <iframe |
|
0 commit comments