The Containers in a Directory Service Are Referred to As
In standard identity tools, the containers in a directory service are referred to as organizational units, or OUs. You create these logical folders to group user accounts, computers, and service roles inside your domain. Most engineering teams set up this structure by department, location, or job function. When admins place too many users in one broad container, permissions spread too far. A single bad rule can give an entire team full admin rights across production apps. Why the containers in
Service-to-Service Authentication + Authorization as a Service: the complete guide
Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.
In standard identity tools, the containers in a directory service are referred to as organizational units, or OUs. You create these logical folders to group user accounts, computers, and service roles inside your domain. Most engineering teams set up this structure by department, location, or job function. When admins place too many users in one broad container, permissions spread too far. A single bad rule can give an entire team full admin rights across production apps.
Why the containers in a directory service are referred to as organizational units
Directory tools store every identity object in a tree structure. At the top of this tree sits the root domain. Below the root, admins build smaller branches to keep objects neat and separate. Because these branches mirror how a business groups its staff, the containers in a directory service are referred to as organizational units. Each unit acts as a boundary for both admin control and system policies.
To set this up, an admin first maps out the teams that need distinct rules. Next, the admin creates a dedicated unit for each group, such as finance, backend devs, or database hosts. You can also nest smaller units inside larger ones to match sub-teams. Once the folders exist, the admin moves user accounts and server objects into the right spot.
After placing objects in a unit, you can link group policies or role rules to that container. Every user or machine inside the folder gets those exact settings right away. You can also give a team lead the power to reset passwords only within their own unit. This setup keeps local admins from changing settings in other parts of the directory tree.
What directory containers solve and where gaps remain
Grouping accounts into clear containers solves big management headaches for growing teams. You do not have to assign rules to one user at a time. When a new developer joins the team, you place their account into the engineering unit. That developer gets the base login rights and machine rules for their group right away. When someone changes roles, moving their object to a new folder updates their base permissions.
Still, directory containers only handle static grouping and initial login checks. A container decides who can log into a server or open a database session. It cannot see or control what that user does after the session starts. Once an engineer logs in, the directory service steps out of the way.
Service-to-Service Authentication + Authorization as a Service: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
This leaves a wide operational gap during live work on production systems. Two developers in the same container might need very different commands for their daily tasks. If both share the same container role, both can run risky queries or read private customer tables. Directory folders cannot block a bad drop command or mask emails and card numbers in query results. They also fail to log the exact commands or database statements a user runs during a session.
Best practices for structuring directory containers
Keep your container tree shallow and easy to read. Deeply nested folders make it hard to track which rules apply to an account. Group your units by technical role rather than by office location whenever possible. Separate human user accounts from service accounts and server objects by using distinct top-level containers.
Review the objects inside your high-privilege containers every month. Remove old accounts and temporary contractors as soon as their work ends. Never link broad admin rights to a default container where new accounts land by mistake. Pair your clean directory tree with runtime controls that check every command and query in flight.
Govern statements and responses across databases and APIs
Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.
First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.
Frequently asked questions
What is the difference between a directory group and a container?
A container is a folder that holds objects and applies system policies to them. Each user or computer object can live in only one container at a time. A security group is a tag you use to grant shared permissions, and one user can belong to many groups.
Can a container hold other containers inside a directory service?
Yes, you can place child containers inside parent containers to build a tree structure. Child folders inherit the rules and admin permissions set on the parent folder above them. Most teams limit nesting to three or four levels so policy checks stay fast and clear.
Do default folders in a directory act the same as organizational units?
No, standard default folders for users and computers are plain system containers, not organizational units. You cannot link group policy templates directly to those basic default folders. Admins create custom organizational units so they can apply custom security rules and delegate local control.
Related guides
In this post