1. Setting Up SSO
Creating Your SSO Application
Create an application in your identity provider (Okta, Microsoft Entra ID, or any SAML/OIDC-compliant IdP) and share the following credentials with your Cognition team:You should also provide your verified email domain(s) so Devin knows which email addresses to trust from your IdP.
What Happens After Setup
Once your Cognition team has the credentials, they configure the SSO connection. After setup is complete:- The SSO connection is linked to your Devin enterprise
- Auto-membership on login is enabled — any user who authenticates via SSO is automatically added to your enterprise
- Your email domain(s) are registered as trusted — only emails from those domains are accepted
- Group-based role assignment (RBAC) is enabled — IdP groups sent during login can be mapped to Devin roles
- Default social logins (Google, GitHub) are disabled — SSO becomes the required authentication method
The User Login Experience
- User navigates to your Devin URL
- Redirected to the configured IdP (Okta, Microsoft Entra ID, etc.)
- User authenticates normally
- The IdP sends user info and group memberships back to Devin
- Devin automatically:
- Creates the user’s account if it’s their first login (just-in-time provisioning)
- Assigns them the default Enterprise Member role
- Syncs their IdP group memberships — adds new groups, removes stale ones
- Records the login in the enterprise audit log
Self-Service Administration
The following are available to enterprise admins directly in the Devin webapp.IdP Group Management
Settings → Enterprise → Identity Provider Groups- View all groups that have been synced from user logins
- Assign a group to an enterprise-level role (e.g., “Everyone in
Engineering-Adminsgets the Enterprise Admin role”) - Assign a group to specific orgs with specific roles (e.g., “
Team-Backendgets Member access in the Backend org”) - Bulk add/remove groups across multiple orgs
- View how many orgs each group is assigned to
Member Management
Settings → Enterprise → Members- View all enterprise members, including their IdP group memberships
- Invite new members by email
- Update member roles
- Remove members
Custom Roles
Settings → Enterprise → Roles- Create custom roles with granular permissions
- Assign custom roles to individual users or to IdP groups
API for Automation
Devin provides a V2 API you can use to automate member management:2. Understanding Devin Without SCIM
Devin does not currently support the SCIM protocol. All user and group management happens through SSO login events and the Devin UI/API. Here is what that means in practice.User Provisioning: Login-Triggered Only
When onboarding new employees, the admin can either invite them in advance (Settings → Enterprise → Members → Invite, or via the API) or simply let them be auto-provisioned on first login.
User Deprovisioning: Manual Only
Group Sync: Login-Time Only, Not Real-Time
If an admin changes someone’s IdP group (e.g., moves them from Engineering to Sales), Devin won’t reflect this until the user logs in again. In the meantime, the user keeps their old group-based roles and org access.
Built-in Alternatives to SCIM
Devin includes several features that address common SCIM use cases:- Just-in-time provisioning — users are auto-created on first SSO login with the default enterprise role
- Full group sync on every login — every time a user logs in, Devin does a complete diff of their IdP groups: adds new ones, removes old ones
- Group-based RBAC — you can map IdP groups to enterprise roles and org access in the Devin settings, taking effect on next login
- V2 API for automation — invite, remove, and bulk role changes can be scripted to close the provisioning/deprovisioning gap
- Audit logs — every login is recorded, providing visibility into who has accessed Devin
3. Configuring IdP-Managed Groups
If you use SCIM with other applications (e.g., Slack, Box), this section explains how Devin’s group model works and how to configure your IdP correctly.Context: SCIM Groups vs IdP Groups
- SCIM Groups: The downstream app tells the IdP what groups exist (the IdP “imports” them). The app is the source of truth for group structure. The IdP syncs users into those app-defined groups.
- IdP Groups (what Devin uses): The IdP is the source of truth. Groups are defined in the IdP’s directory, and group memberships flow to Devin via SAML/OIDC claims at login time.
Step 1: Define Groups in the IdP
In your IdP Admin Console (examples below use Okta):- Go to Directory → Groups
- Create groups that map to Devin access levels (e.g.,
Devin-Engineering,Devin-Admins,Devin-DataScience) - Assign users to these groups
Step 2: Configure Group Claims in the IdP App
The groups must be included in the authentication response so Devin can read them.For SAML Connections
- Go to Applications → [Devin App] → SAML Settings → Edit
- Under Group Attribute Statements, add:
- Name:
groups - Filter: “Starts with” →
Devin-(or use “Matches regex” for more complex patterns)
- Name:
- This tells the IdP to include matching group names in the SAML assertion
For OIDC Connections
- Go to Applications → [Devin App] → Sign On → Edit
- Under OpenID Connect ID Token → Groups claim type, select “Filter”
- Set the filter to match Devin groups (e.g., “Starts with” →
Devin-)
Step 3: Map Groups to Roles and Orgs in Devin
Once groups are flowing through on login, map them in Devin.In the Devin UI
- Settings → Enterprise → Identity Provider Groups
- Groups appear automatically after any member of that group logs in
- Click a group → assign it an enterprise-level role (e.g., Enterprise Admin, or a custom role)
- Click a group → assign it to specific orgs with specific org-level roles
Via the API (for Pre-Setup or Automation)
- Pre-create groups before anyone logs in:
PUT /v2/enterprise/groups - List groups and their org assignments:
GET /v2/enterprise/groups
Step 4: If Migrating from SCIM Groups in Other Apps
If you are shifting your overall IdP strategy from SCIM-managed groups to IdP-managed groups across your tooling (not just Devin):- Stop SCIM Group Importing in the other apps:
- In the IdP: go to the app’s Provisioning → Integration tab → uncheck “Import Groups”
- This stops the downstream app from being the source of truth for groups
- Create Matching Groups in the IdP Directory:
- Go to Directory → Groups and create groups that mirror what existed in the downstream app
- Assign users to these IdP-native groups
- Configure Group Push (for apps that support it):
- In the app’s IdP config: Push Groups tab → Find groups by name → Link to existing downstream groups
- This makes the IdP overwrite the app’s internal membership — the IdP becomes the single source of truth
- Devin doesn’t need Group Push because it reads groups directly from the login assertion
- Disable SCIM Group Sync in the other apps:
- Ensure “Import Groups” stays off to prevent the downstream app from re-asserting as source of truth
Key Considerations
Group renames in the IdP
Group renames in the IdP
If a group is renamed, Devin treats it as a new group. The old group’s role mappings don’t transfer automatically — you will need to reconfigure the new group name in Devin’s settings.
Adding to a group does not mean immediate Devin access
Adding to a group does not mean immediate Devin access
A user added to a Devin-mapped IdP group won’t gain that access until they log in.
Removing from a group does not mean immediate Devin removal
Removing from a group does not mean immediate Devin removal
Removing a user from an IdP group doesn’t immediately revoke their Devin access. On their next login, Devin syncs and removes the stale group membership. Any direct membership (assigned outside of groups) is unaffected.
Group names are exact-match
Group names are exact-match
The group name in the IdP must exactly match what Devin sees. Case-sensitive.
No nested groups
No nested groups
Devin doesn’t support nested/hierarchical groups. If the IdP sends a parent group, child group members aren’t automatically included. Each group must be explicitly assigned.
Recommended Setup for “SCIM-Like” Behavior
For the tightest possible control without SCIM, follow this approach:1
Configure your Identity Provider (Source of Truth)
- Define groups:
Devin-Admins,Devin-Backend,Devin-Frontend, etc. - Assign users to groups
- Configure SAML/OIDC group claims filtered to “Starts with:
Devin-”
2
Devin syncs on every login
When a user logs in via SSO, Devin automatically:
- Auto-creates the user if new
- Performs a full group sync (adds new groups, removes stale ones)
- Applies group-to-role and group-to-org mappings immediately
3
Optional: Automate with the V2 API
Set up a scheduled job to close SCIM gaps:
- Read active users from your IdP API
- Read Devin members from
GET /v2/enterprise/members - Invite new employees via
POST /v2/enterprise/members/invite - Remove departed employees via
DELETE /v2/enterprise/members/{user_id}
What This Gives You
- Your IdP as single source of truth for group structure and membership
- Automatic group-based access on every login
- API-driven provisioning/deprovisioning to close the gap SCIM would normally fill
- Full audit trail for all logins and membership changes
Current Limitations
- Real-time group sync between logins — groups only update when users log in
- Instant session revocation on deprovisioning — sessions live until they expire
- IdP-initiated lifecycle events like suspend/reactivate are not supported

