Loading
Salesforce now sends email only from verified domains. Read More
Identify Your Users and Manage Access
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          SCIM and REST API Reference Sheet

          SCIM and REST API Reference Sheet

          To manage Salesforce user objects with SCIM, you can send REST API create, read, update, and disable (CRUD) operations to SCIM endpoints. You must supply an OAuth 2.0 access token to perform these operations.

          Required Editions

          Available in: Salesforce Classic and Lightning Experience
          Available in: All Editions

          For help with configuring your REST API operations, refer to these sections.

          SCIM Endpoints and CRUD Operations

          This table lists the SCIM endpoints and their supported operations.

          SCIM Endpoint Description Supported Operations
          https://MyDomainName.my.salesforce.com/services/scim/v2/ServiceProviderConfigs Request the capabilities of the Salesforce SCIM implementation. Read: GET
          https://MyDomainName.my.salesforce.com/services/scim/v2/Schemas Introspect resources and attribute extensions. Read: GET
          https://MyDomainName.my.salesforce.com/services/scim/v2/ResourceTypes Discover the types of resources available, such as users and entitlements. Read: GET
          https://MyDomainName.my.salesforce.com/services/scim/v2/Entitlements

          View support entitlements, such as profiles and permission sets, assigned to users.

          When querying for all entitlements in an org, this endpoint returns a maximum of 200 records. To view more than 200 records, query for specific entitlements.

          Read: GET
          https://MyDomainName.my.salesforce.com/services/scim/v2/Roles View roles assigned to users. Read: GET

          https://MyDomainName.my.salesforce.com

          /services/scim/v2/Users

          https://MyDomainName.my.salesforce.com/services/scim/v2/Users/<user_Id>

          Provision and manage user objects.

          Create: POST

          Read: GET

          Update: PATCH

          Deactivate: PATCH or DELETE

          https://MyDomainName.my.salesforce.com/services/scim/v2/Groups View and manage public groups to which users belong.

          Read: GET

          Update: PATCH

          Operation Rules

          When writing SCIM operations, keep these rules in mind.

          • In a clause, AND doesn’t have precedence over OR. If a clause contains both AND and OR, explicitly add brackets to the clauses.
          • In a clause, attribute names and operators are case-sensitive.
          • Filter these fields on their own.
            • Users: entitlements, groups
            • Groups: members
            • Entitlements: members

          Supported SCIM Extensions

          Salesforce supports these Salesforce User extensions under the URN urn:salesforce:schemas:extension:2.0.

          • alias
          • callCenterId
          • extension
            Note
            Note In the context of this URN, the extension field describes the user’s phone extension, not a SCIM schema extension.

          Salesforce also supports these Enterprise User extensions, which show up under the URN urn:scim:schemas:extension:enterprise:2.0.

          • organization
          • employeeNumber
          • department
          • manager (managerId and displayName)
          • delegatedApprover (delegatedApproverId and displayName)
          • division

          Salesforce also supports custom fields, which show up under the URN urn:salesforce:schemas:extension:18CHARORGID.

          These supported extensions for Experience Cloud and Salesforce Customer Identity users show up under the URN urn:salesforce:schemas:extension:external:2.0. Customer Identity users have the Entitlements profileId of type external identity. Likewise, Experience Cloud users have the Entitlements profileId of type community.

          • accountId
          • contactId
          • community

          If accountId or contactId values aren't provided, Salesforce creates contact and account records for the user. The new account name is in the format usernameJITUserAccount. For example: user@corpname.orgJITUserAccount.

          These extensions show up under the URN urn:salesforce:schemas:extension:communities.

          • networkID
          • networkName

          REST API Mappings to SCIM Attributes

          This table shows the supported mappings of REST API object fields to SCIM schema attributes. Use this sheet as a quick reference. For a more detailed view of the supported attributes for each schema, including characteristics, send a GET request to the https://MyDomainName.my.salesforce.com/services/scim/v2/Schemas endpoint. See Understand the SCIM Implementation.

          REST API Object Field SCIM Schema Attribute
          City address.[type eq "work"].locality
          CommunityNickname nickName
          CompanyName Not compatible
          Country address.[type eq "work"].country
          CreatedDate created
          Department department
          Division division
          Email emails
          EmailEncodingKey emailEncodingKey
          EmployeeNumber employeeNumber
          FederationIdentifier ExternalID
          FirstName name.givenName
          Id Id
          IsActive active
          LanguageLocaleKey preferredLanguage
          LastModifiedDate lastModified
          LastName name.familyName
          LocaleSidKey locale
          ManagerId manager
          MobilePhone phoneNumbers.[type eq "mobile"].value
          PermisisonSets Entitlement
          Phone phoneNumbers.[type eq "work"].value
          PostalCode address.[type eq "work"].postalCode
          ProfileId Entitlement
          ProfileName Entitlement
          State address.[type eq "work"].region
          TimeZoneSidKey timezone
          Title title
          Username userName
          UserPermissionsCallCenterAutoLogin Not compatible
          UserPermissionsMarketingUser Not compatible
          UserPermissionsOfflineUser Not compatible
          UserRoleId Role
           
          Loading
          Salesforce Help | Article