Tags | Security | Authentication | SCIM |
This documentation is for Stack Internal Enterprise. Free, Basic, and Business users can access their documentation here. Find your plan.
Overview
System for Cross-domain Identity Management (SCIM) is an open API for securely sharing user information between online systems. In Stack Internal Enterprise, SCIM support allows an Identity Provider (IdP) to automatically update Stack Overflow with the user's activation status and/or role. Unlike SAML 2.0 single sign-on (SSO), which passes user information only at login, SCIM sends updates whenever they occur. This provides Stack Internal Enterprise near-real-time updates to user status and role as changes happen at the IdP.
THIS ARTICLE APPLIES TO STACK INTERNAL ENTERPRISE ONLY.
Other Stack Internal users should read this article instead. Find your plan.
Supported activities
The SCIM integration supports the following activities:
Create (provision) a new user.
Deactivate a user.
Reactivate a deactivated user.
Permanently delete a user. Learn more in the Automated User Deletion article.
Promote/demote a user between administrator, moderator, and regular user roles.
Update a user’s department and title
NOTE: Enabling SCIM support does not disable user management options within Stack Internal Enterprise. This means a user may have an active status in the IdP, yet be deactivated in Stack Internal Enterprise through the admin user management settings. We recommend standardizing on a single provisioning workflow within your organization to avoid confusion.
Configure SCIM support on Stack Internal Enterprise
The SCIM configuration on Stack Internal Enterprise is the same regardless of IdP.
As a Stack Internal Enterprise admin, click Admin Settings in the left-hand menu. Click SCIM under the "ACCESS MANAGEMENT" heading.
Configure the following settings:
SCIM Set to On to enable SCIM.
SCIM authorization bearer token Create a token (password) you'll later enter into the SCIM configuration on Entra ID. You can enter any string of characters, but be sure to follow best practices for creating a strong password. Stack Internal Enterprise hides the value by default. Click Show password to view and copy the value.
Allow Moderator Promotion via a userType property Check this box to enable SCIM promotion/demotion between regular user and moderator roles.
Allow Admin Promotion via a userType property Check this box to enable SCIM promotion/demotion between regular user and admin roles.
Click Save settings.
Configure the Identity Provider
The following instructions are general instructions for SCIM compliant systems. If you're using one of the following IdPs, follow the links for detailed configuration information.
The IdP must send SCIM requests to https://[your_site].stackenterprise.co/api/scim/v2. In addition, the IdP must send the following values part of the user resource to correctly map the user and set their status:
userNameThe user ID (must match the User Identifier Assertion at https://[your_site].stackenterprise.co/enterprise/auth-settings).active(true/false) Determines whether or not the user should be deactivated or reactivated in Stack Internal Enterprise.Required fields for SCIM (these are commonly mapped for you by your IdP, requiring no action on your part):
name.givenNamename.familyNameemails
userType(optional, not used on Microsoft Entra ID) Requires enabling Allow Moderator Promotion via a userType property and/or Allow Admin Promotion via a userType property on the SCIM Integration settings page on Stack Internal Enterprise. Stack Internal Enterprise will change a user's role based on the followinguserTypevalues: Registered, Moderator, or Admin.stackUserType(optional, Microsoft Entra ID only) Because Entra ID uses theuserTypefield for other purposes, you'll instead use thestackUserTypeAllows you to update the user's role on your Stack Internal Enterprise site. Values are Registered, Moderator, or Admin.department(optional) Allows you to update the user's department on your Stack Internal Enterprise site.title(optional) Allows you to update the user’s title on your Stack Internal Enterprise site.
NOTE: Adding the optional user department and job title fields allows you to use Stack Internal Enterprise's connectivity reporting feature. Learn more in the Connectivity article.
If your IdP does not support SCIM, an alternative is to have a separate application issuing the SCIM API calls to https://[your_site].stackenterprise.co/api/scim/v2 as outlined above.
If you need further support or have questions, contact your site administrator.


