Adfs Entra Id
You set up an adfs entra id workflow by linking your local directory to cloud identity. This link lets users log in once and use cloud apps or databases. Most teams map broad directory groups straight to shared database roles or server profiles. When those roles carry too much power, one login exposes all production data. How adfs entra id sign-in works Active Directory Federation Services runs on local servers inside your private network. It checks user passwords against your local domain co
Microsoft Entra ID (Azure AD): the complete guide
Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.
You set up an adfs entra id workflow by linking your local directory to cloud identity. This link lets users log in once and use cloud apps or databases. Most teams map broad directory groups straight to shared database roles or server profiles. When those roles carry too much power, one login exposes all production data.
How adfs entra id sign-in works
Active Directory Federation Services runs on local servers inside your private network. It checks user passwords against your local domain controllers during sign-in. Microsoft Entra ID sits in the cloud and manages modern app access. Teams either link these two systems through federation or move apps straight to the cloud.
In a federated setup, the cloud directory sends the user back to the local server. The local server checks the user and creates a signed security token. The user brings this token back to the cloud directory to finish logging in. From there, the cloud directory passes group claims to your internal tools and databases.
Many teams also move away from local federation servers to reduce server maintenance. They sync password hashes to the cloud directory and let it handle sign-in. Either way, your databases and servers trust the group claims inside the identity token. A user in the engineering group gets the matching database role right at login.
What directory roles solve and what they miss
Linking local and cloud identity solves a major problem for IT teams. You get one place to turn off accounts when someone leaves the company. You can also enforce multi-factor checks before anyone reaches internal networks or cloud consoles. Auditors can see which directory groups map to which production servers.
Still, an identity provider only decides who can open the front door. Once a user logs in, the directory steps out of the way. It cannot see which queries run inside a Postgres database session. It also cannot check which commands an engineer types on a Linux host.
Because directory groups are hard to manage at a fine level, teams grant broad roles. Everyone on the backend team gets the same read and write role. If a support engineer runs a wide query, raw emails and card numbers return in full. Directory logs show a valid login at 9 AM, not the data read at 9:15 AM.
Microsoft Entra ID (Azure AD): architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Scoping permissions beyond directory groups
To keep production safe, you must separate login identity from session actions. Start by shrinking the default roles tied to your big directory groups. Do not give write permissions to default engineering groups in your cloud directory. Instead, keep default database and server roles read-only or empty by default.
Next, look at how data comes back during a standard read session. Even read-only roles can pull thousands of phone numbers or national IDs. You need rules that act on the query results in flight. Masking rules can rewrite matched fields like emails and card numbers before results reach the user.
You should also require peer approval for single write commands or high-risk queries. Rather than placing a user in a permanent admin group, approve the exact action. This keeps your directory clean while giving engineers a fast path for urgent fixes. You also get a clear log of every query and command tied to that user.
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 ADFS and Entra ID?
ADFS is a local server role that provides single sign-on using local domain controllers. Entra ID is a cloud identity service that manages users, groups, and app logins.
Does moving to cloud identity stop risky database queries?
No, cloud identity only checks who the user is during the initial login step. It does not inspect, block, or log the SQL queries run after login.
How can teams protect sensitive columns after a user logs in?
Teams apply data masking rules that inspect query results in real time. These rules rewrite matched fields like phone numbers, emails, and card numbers in results.
Related guides
In this post