Org Usage View
Resolve organization-level telemetry questions using SNOWFLAKE.ORGANIZATION_USAGE.
When to Use
Use this skill when users ask:
- "Which ORGANIZATION_USAGE views are available to me?"
- "Which view should I use for org-wide billing/cost/security usage?"
- "Why can’t I query a specific ORGANIZATION_USAGE view?"
- "Which Snowflake database role do I need for this view?"
When NOT to Use
- Account-local telemetry questions — If the user asks for data about a SINGLE account or their CURRENT account, advise them to use
SNOWFLAKE.ACCOUNT_USAGElocally.SNOWFLAKE.ORGANIZATION_USAGEis ONLY for cross-account or org-level queries. - Control-plane mutations (create/alter/drop)
- Org Hub executive synthesis (use
org-hub/SKILL.md)
Setup
- Load
../references/global_guardrails.md: Required context for all organization management operations.
Workflow
Step 1: Set Role Context
Follow the Role Context rules in global_guardrails.md.
Step 2: Clarify Ask and Scope
Identify:
- requested business domain (
billing,usage,security,objects,governance) - specific view(s) requested (if any)
- whether user needs access troubleshooting, mapping guidance, or both
Step 3: Validate Access Context
Organization usage data is in shared database/schema:
SNOWFLAKE.ORGANIZATION_USAGE
Run minimal discovery first:
SHOW VIEWS IN SCHEMA SNOWFLAKE.ORGANIZATION_USAGE;
If user asks for account inventory context:
SELECT ACCOUNT_NAME
FROM SNOWFLAKE.ORGANIZATION_USAGE.ACCOUNTS
ORDER BY ACCOUNT_NAME;
Step 4: Map Domain -> Recommended Views
Use these defaults before suggesting alternatives:
- Billing/Spend
USAGE_IN_CURRENCY_DAILYMETERING_DAILY_HISTORYMETERING_HISTORYWAREHOUSE_METERING_HISTORYCONTRACT_ITEMSREMAINING_BALANCE_DAILY
- Storage
STORAGE_DAILY_HISTORYDATABASE_STORAGE_USAGE_HISTORYSTAGE_STORAGE_USAGE_HISTORYTABLE_STORAGE_METRICS
- Security/Auth
TRUST_CENTER_FINDINGSUSERSLOGIN_HISTORYSESSIONS
- Operations/Reliability
QUERY_HISTORYQUERY_ATTRIBUTION_HISTORYTASK_HISTORYWAREHOUSE_LOAD_HISTORYWAREHOUSE_EVENTS_HISTORY
- Object Inventory/Governance
DATABASES,SCHEMATA,TABLES,VIEWS,COLUMNSTAGS,TAG_REFERENCES,POLICY_REFERENCES
Step 5: Provide Access Role Mapping
When users lack access, map requested view to expected SNOWFLAKE database role:
ORGANIZATION_BILLING_VIEWERfor billing-focused views (for exampleUSAGE_IN_CURRENCY_DAILY)ORGANIZATION_USAGE_VIEWERfor operational usage viewsORGANIZATION_SECURITY_VIEWERfor security-focused views (for exampleTRUST_CENTER_FINDINGS,USERS,SESSIONS)ORGANIZATION_OBJECT_VIEWERfor object metadata viewsORGANIZATION_GOVERNANCE_VIEWERfor governance/tag/policy viewsORGANIZATION_ACCOUNTS_VIEWERfor account-scoped org visibility use cases
For ORGADMIN-enabled regular accounts, remind users that access to the shared SNOWFLAKE database privileges may still require explicit grants.
Step 6: Return Actionable Mapping + Caveats
Always return:
- recommended view(s)
- why each view is chosen
- expected latency/freshness caveat
- required role hints for missing access
- unknowns requiring owner confirmation
SQL Construction Rules
- Use fully qualified names:
SNOWFLAKE.ORGANIZATION_USAGE.<VIEW_NAME>. - Avoid
SELECT *; select only needed columns. - Bound time ranges for historical views.
- Prefer daily aggregate views when user asks for trend summaries.
- Include account dimension (
ACCOUNT_NAME) when cross-account output is expected.
Latency and Freshness Guidance
- Many ORGANIZATION_USAGE views have non-zero latency (commonly hours, often up to 24h depending on view class).
- If near-real-time precision is requested, explicitly state freshness limitations.
- For each answer, include one caveat line indicating expected lag impact.
Troubleshooting Playbook
If query fails due to access:
- Confirm schema visibility:
SHOW VIEWS IN SCHEMA SNOWFLAKE.ORGANIZATION_USAGE;
- Confirm role context:
SELECT CURRENT_ROLE();
- Report likely missing SNOWFLAKE database role and required owner follow-up.
If view exists but data appears empty:
- verify time window
- check latency expectations
- confirm organization account vs regular account context
Output Contract
Return in this order:
Requested CapabilityRecommended ORGANIZATION_USAGE ViewsWhy These ViewsAccess and Role RequirementsLatency/Freshness CaveatsOpen Gaps / Owner Follow-up