0
0
Snowflakecloud~10 mins

Multi-account and organization management in Snowflake - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - Multi-account and organization management
Create Organization
Add Accounts to Organization
Define Roles and Permissions
Manage Resource Access Across Accounts
Monitor and Audit Activity
End
This flow shows how an organization is created, accounts are added, roles set, resources managed, and activities monitored.
Execution Sample
Snowflake
CREATE ORGANIZATION my_org;
CREATE ACCOUNT my_account1;
ADD ACCOUNT my_account1 TO ORGANIZATION my_org;
GRANT ROLE ORGADMIN TO USER admin_user;
SHOW ORGANIZATION ACCOUNTS;
This code creates an organization, adds an account, assigns an admin role, and lists accounts in the organization.
Process Table
StepActionCommand ResultState Change
1Create organization 'my_org'Organization 'my_org' createdOrganization 'my_org' exists with no accounts
2Create account 'my_account1'Account 'my_account1' createdAccount 'my_account1' exists, not linked
3Add 'my_account1' to 'my_org'Account 'my_account1' added to organization 'my_org''my_account1' linked to 'my_org'
4Grant ORGADMIN role to 'admin_user'Role ORGADMIN granted to user 'admin_user''admin_user' can manage organization
5Show organization accountsLists: 'my_account1'Confirms 'my_account1' is in 'my_org'
6EndNo further actionsSetup complete
💡 All steps executed; organization with one account and admin role configured
Status Tracker
VariableStartAfter Step 1After Step 2After Step 3After Step 4After Step 5Final
Organization 'my_org'NoneExistsExistsExists with 'my_account1'Exists with 'my_account1'Exists with 'my_account1'Exists with 'my_account1'
Account 'my_account1'NoneNoneExistsLinked to 'my_org'Linked to 'my_org'Linked to 'my_org'Linked to 'my_org'
User 'admin_user' rolesNoneNoneNoneNoneHas ORGADMIN roleHas ORGADMIN roleHas ORGADMIN role
Key Moments - 3 Insights
Why do we need to add accounts to the organization after creating them?
Creating an account alone does not link it to the organization. Step 3 shows adding the account to the organization to manage it centrally.
What does granting the ORGADMIN role to a user do?
Step 4 grants the ORGADMIN role, which allows the user to manage organization-wide settings and accounts, as shown in the variable tracker.
How can we confirm the account is part of the organization?
Step 5 runs 'SHOW ORGANIZATION ACCOUNTS' which lists accounts linked to the organization, confirming the state change.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution table, after which step is the account 'my_account1' linked to the organization?
AAfter Step 2
BAfter Step 4
CAfter Step 3
DAfter Step 5
💡 Hint
Check the 'State Change' column for Step 3 in the execution table.
According to the variable tracker, what roles does 'admin_user' have after Step 4?
AORGADMIN role
BNo roles assigned
CAccountAdmin role
DSYSADMIN role
💡 Hint
Look at the 'User admin_user roles' row after Step 4 in the variable tracker.
If we skipped Step 3, what would the 'SHOW ORGANIZATION ACCOUNTS' command display at Step 5?
AIt would list 'my_account1'
BIt would list no accounts
CIt would show an error
DIt would list all accounts in Snowflake
💡 Hint
Refer to the execution table Step 3 and Step 5 state changes.
Concept Snapshot
CREATE ORGANIZATION org_name;  -- creates an organization
CREATE ACCOUNT account_name;  -- creates an account
ADD ACCOUNT account_name TO ORGANIZATION org_name;  -- links account
GRANT ROLE ORGADMIN TO USER user_name;  -- assigns admin role
SHOW ORGANIZATION ACCOUNTS;  -- lists accounts in org
Use these commands to manage multiple accounts centrally.
Full Transcript
This visual execution traces how to manage multiple Snowflake accounts within an organization. First, an organization is created. Then, accounts are created separately and added to the organization to link them. Roles like ORGADMIN are granted to users to allow management of the organization. Finally, commands like SHOW ORGANIZATION ACCOUNTS confirm the setup. Variables track the existence and linkage of organizations, accounts, and user roles step-by-step.