CreateSCIMConfiguration
client.organizations.scimConfigurations.create(ScimConfigurationCreateParams { organizationId, ssoConfigurationId, allowUnverifiedEmailAccountLinking, 2 more } body, RequestOptionsoptions?): ScimConfigurationCreateResponse { token, scimConfiguration, tokenExpiresAt }
POST/gitpod.v1.OrganizationService/CreateSCIMConfiguration
Creates a new SCIM configuration for automated user provisioning.
Use this method to:
- Set up SCIM 2.0 provisioning from an identity provider
- Generate a bearer token for SCIM API authentication
- Link SCIM provisioning to an existing SSO configuration
Examples
-
Create basic SCIM configuration:
Creates a SCIM configuration linked to an SSO provider with default 1 year token expiration.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" ssoConfigurationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68" -
Create SCIM configuration with custom token expiration:
Creates a SCIM configuration with a 90-day token expiration.
organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" ssoConfigurationId: "d2c94c27-3b76-4a42-b88c-95a85e392c68" tokenExpiresIn: "7776000s"
CreateSCIMConfiguration
import Gitpod from '@gitpod/sdk';
const client = new Gitpod({
bearerToken: process.env['GITPOD_API_KEY'], // This is the default and can be omitted
});
const scimConfiguration = await client.organizations.scimConfigurations.create({
organizationId: 'b0e12f6c-4c67-429d-a4a6-d9838b5da047',
ssoConfigurationId: 'd2c94c27-3b76-4a42-b88c-95a85e392c68',
});
console.log(scimConfiguration.token);{
"token": "token",
"scimConfiguration": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"createdAt": "2019-12-27T18:11:19.117Z",
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"tokenExpiresAt": "2019-12-27T18:11:19.117Z",
"updatedAt": "2019-12-27T18:11:19.117Z",
"allowUnverifiedEmailAccountLinking": true,
"enabled": true,
"name": "name",
"ssoConfigurationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
},
"tokenExpiresAt": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"token": "token",
"scimConfiguration": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"createdAt": "2019-12-27T18:11:19.117Z",
"organizationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"tokenExpiresAt": "2019-12-27T18:11:19.117Z",
"updatedAt": "2019-12-27T18:11:19.117Z",
"allowUnverifiedEmailAccountLinking": true,
"enabled": true,
"name": "name",
"ssoConfigurationId": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
},
"tokenExpiresAt": "2019-12-27T18:11:19.117Z"
}