Make a user
POST
/scim/v2/Users
const url = 'https://forge.example.com/scim/v2/Users';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://forge.example.com/scim/v2/Users \ --header 'Authorization: Bearer <token>'userName is the person’s e-mail address, of a domain the organization has verified. Also externalId, name.givenName, name.familyName, displayName, the work address of emails and active; anything else is passed over, roles and password included. Sends no invitation: the person signs in through the organization’s single sign-on, with the default role until their groups give others. 409 with uniqueness when someone of the organization has the address. A seat is needed.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The user, with its address in Location.
Media typeapplication/scim+json
string
Example generated
exampledefault
Section titled “default”A refusal or an error on the SCIM endpoints, as SCIM’s error document (RFC 7644 section 3.12).
Media typeapplication/scim+json
object
schemas
Array<string>
status
string
scimType
string
detail
string
Example generated
{ "schemas": [ "example" ], "status": "example", "scimType": "example", "detail": "example"}