The growth of self-service adoption has led to a need for structured account hierarchies to identify companies and track user behavior, as traditional sales often requires more effort to step in after initial adoption. To build an actionable hierarchy, one must identify real-world companies using the product, which can be done by analyzing domain names in users' email addresses. The data model should include a workspace concept, such as organizations or teams, where the owner is typically the user who created it. Aggregating users into companies involves grouping by domain and counting users or workspaces, with options to ignore personal email domains or roll them up to a single account. With an established hierarchy, businesses can use it to enrich existing accounts, identify net new logos, orchestrate sales and marketing efforts, and more.