The Simplest Way to Make Azure Active Directory and Port Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams link azure active directory and port to let users log in with work accounts. This setup maps company groups to portal roles and controls who runs actions. Port acts as an internal developer portal that tracks apps, services, and cloud resources. Azure Active Directory, now Microsoft Entra ID, stores your user list and group rules. When you join them, developers see the right catalogs and forms on day one. Platform teams stop managing separate portal passwords and manual role assignments.

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Teams link azure active directory and port to let users log in with work accounts. This setup maps company groups to portal roles and controls who runs actions.

Port acts as an internal developer portal that tracks apps, services, and cloud resources. Azure Active Directory, now Microsoft Entra ID, stores your user list and group rules. When you join them, developers see the right catalogs and forms on day one. Platform teams stop managing separate portal passwords and manual role assignments.

How login and roles work in azure active directory and port

The link between the two tools starts with a standard single sign-on flow. An admin registers Port as an enterprise app inside the directory tenant. During login, the directory checks the user password and multi-factor token. It then sends a signed identity token back to the developer portal.

That token holds claims about the user, including their email and group IDs. Port reads those group claims and matches them to internal portal teams. A user in the backend group gets backend portal views and action forms. If HR removes someone from the directory, they lose portal login right away.

Group mapping also controls who can edit the software catalog itself. Platform leads get admin rights to change blueprints and data models. Regular developers get read rights on prod views and write rights on dev items. This clear split keeps the catalog clean without blocking daily team work.

Common failure modes in portal and directory setups

Linking user login is only the first half of the security puzzle. Problems start when a portal action triggers a change in live cloud systems. Many teams use one shared service key for the portal runner backend. That single key often holds broad admin rights across every cloud account.

When a user clicks a self-service button, the runner uses that broad key. Cloud logs show the shared runner account instead of the real human user. Auditors cannot tell who ran a database query or restarted a service. Worse, a bug in a portal form can wipe out prod data.

Active Directory + Azure RBAC: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Group claim limits can also break role checks for large companies. If a user belongs to too many groups, the directory drops the group list. The portal then fails to map the user to their proper team role. Admins must scope group emission so only portal groups travel in the token.

Scoping permissions and securing runtime actions

To fix shared key risks, separate catalog read tasks from live write actions. Give the portal ingester read-only keys to pull service metadata into the catalog. Never let the catalog reader hold rights to change live prod workloads.

For self-service actions, pass the user identity all the way to the target. Check the user group again right before the backend job runs. Scope each action runner to the single cluster or database it needs. Keep network paths closed by default and log every command with the user email.

When workloads return sensitive data, add data masking to your output flow. Masking rewrites matched fields like emails, phone numbers, card numbers, and national IDs in results. This lets developers check app state in the portal while keeping private values safe.

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

How do group claims map between the directory and the portal?

The directory sends group object IDs or names inside the login token. The portal matches those values to internal team roles during each user login.

What happens when a developer leaves the company?

Once an admin disables the user in the directory, active portal login fails. You can also set up directory sync to remove their portal profile right away.

How can teams secure self-service actions triggered from the portal?

Avoid using one big admin key for all portal runner jobs. Tie every action to the logged-in user and log each command at runtime.

The query runs. The emails stay hidden.