Learn how to set up SCIM to sync identity information between a third-party provider and HubSpot.
hs init
. Learn more about installing the HubSpot CLI.app-hsmeta.json
configuration file in the src/app/
directory. The SCIM feature is configured via a scim/
directory in your project’s app/
directory, which includes a scim-hsmeta.json
configuration file within it.
src/app/app-hsmeta.json
, then replace the boilerplate content with the following:
uid
, description
, and name
if needed, but all other fields should not be changed. The uid
serves to uniquely identify this app from others in your account, so make sure to provide a distinct name from any existing apps you may have.
Next, within the app/scim/
directory, edit the scim-hsmeta.json
file and review the uid
, type
, and config
properties. The config
property has a single subproperty, roleSyncEnabled
, which determines whether to sync user role data (if supported by your provider).
Field | Type | Description |
---|---|---|
uid | String | A unique identifier for your SCIM configuration. This can be set to any value, but it will appear in your project settings in your account, so it should be different from other uid values of other app components. |
type | String | The type of component, which should be scim in this case. |
config | Object | An object containing a single SCIM configuration field, roleSyncEnabled , which is used to control whether or not you want roles from your identity provider synced to permission sets in HubSpot. roleSyncEnabled is set to false by default, but you can set it to true at any time then upload the changes by running hs project upload . Note that for syncing to work properly, the role name in your identifier provider must exactly match the permission set in HubSpot, including letter-casing and spaces. |
app-hsmeta.json
file and reviewed your scim-hsmeta.json
configuration, run the following command to upload the project to your account:
hs project open
command, or consult the section below to learn how to navigate to your app details page from within your HubSpot account.
name
field in your app’s top-level schema file.uid
field of your scim-hsmeta.json
file.https://api.hubspot.com/scim/v2
in your identity provider settings to connect your new SCIM app.