The Simplest Way to Make Phabricator and Scim Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Phabricator and SCIM work together by syncing user accounts from your identity provider into your code tools. This setup lets teams add or remove developer accounts from one central place. Phabricator does not include a built-in SCIM endpoint out of the box. Engineering teams must bridge the two systems using API tokens and custom sync scripts. Getting this workflow right prevents stale accounts and keeps project permissions clean. How phabricator and scim handle user data and roles SCIM sen

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.

Phabricator and SCIM work together by syncing user accounts from your identity provider into your code tools. This setup lets teams add or remove developer accounts from one central place.

Phabricator does not include a built-in SCIM endpoint out of the box. Engineering teams must bridge the two systems using API tokens and custom sync scripts. Getting this workflow right prevents stale accounts and keeps project permissions clean.

How phabricator and scim handle user data and roles

SCIM sends user and group updates from your identity provider in a standard format. When a new developer joins the team, the identity provider sends a create request. A small sync service reads that SCIM payload and calls the Phabricator API. The script then creates the user record or updates their group membership.

Log in still happens through your main identity provider using standard web flows. SCIM only manages the life cycle of the user profile and team roles. When someone leaves the company, the identity provider sends a disable signal over SCIM. The sync worker catches that event and disables the matching Phabricator account right away.

Data flows one way from the identity provider to the code review system. The identity system holds the source of truth for emails, phone numbers, and team roles. Phabricator receives these attributes and maps them to local project groups. This keeps project permissions tied to real job roles across the whole team.

Common failure modes and how to scope permissions

The biggest risk in this setup is an overprivileged API token for the sync worker. Many teams tie the sync script to a full admin account in Phabricator. If an attacker steals that broad token, they can read source code and change settings. Instead, run the sync worker under a dedicated bot account with limited rights.

Shared service accounts also create blind spots in your security audit logs. When five different scripts use one bot token, you cannot trace who changed a role. Give the SCIM worker its own unique account and rotate its key on a set schedule. Log every user change request with a timestamp and the source request ID.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Network paths between the identity provider and your Phabricator server need strict rules too. Do not expose the Phabricator API to the public internet just for user sync. Place the SCIM translation worker inside a private network segment with strict firewall rules. Only allow inbound traffic from your identity provider IP ranges, and check every token signature.

Keeping user sync reliable in daily operations

Sync scripts often fail when a user changes their email address or username. If the script matches accounts by email alone, it might create a duplicate profile. Always match users by a permanent external ID from your identity provider. Store that unique ID inside the user map so updates hit the right account.

Rate limits and network drops can also break group updates during big team changes. Build retry logic into your sync worker so dropped requests run again later. Compare the full user list once a day to catch any missed deprovisioning events. If a script fails three times, send an alert to your security team.

Test your offboarding flow in a staging setup before turning it on for everyone. Make sure disabled users lose their active sessions and API keys right away. Check that their past code reviews and comments stay intact for audit history. A clean sync flow saves hours of manual admin work every single week.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Does Phabricator support SCIM out of the box?

No, Phabricator does not ship with a native SCIM server endpoint. Teams build a small translation service that turns SCIM requests into Phabricator API calls.

What happens to code reviews when SCIM disables a user?

Disabling a user blocks their log in and stops their active API tokens. Their past commits, comments, and code reviews remain safe in the system history.

How should we secure the bot token used for SCIM sync?

Create a dedicated bot account that only has permission to manage user profiles. Store the API key in a secure secret manager and rotate it often.

The query runs. The emails stay hidden.