Create a user
curl --request POST \
--url https://api.lighton.ai/scim/v2/Users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"externalId": "<string>",
"userName": "<string>",
"name": {
"givenName": "<string>",
"familyName": "<string>"
},
"displayName": "<string>",
"emails": {
"value": "<string>"
},
"title": "<string>",
"active": true,
"password": "<string>"
}
'import requests
url = "https://api.lighton.ai/scim/v2/Users"
payload = {
"externalId": "<string>",
"userName": "<string>",
"name": {
"givenName": "<string>",
"familyName": "<string>"
},
"displayName": "<string>",
"emails": { "value": "<string>" },
"title": "<string>",
"active": True,
"password": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
externalId: '<string>',
userName: '<string>',
name: {givenName: '<string>', familyName: '<string>'},
displayName: '<string>',
emails: {value: '<string>'},
title: '<string>',
active: true,
password: '<string>'
})
};
fetch('https://api.lighton.ai/scim/v2/Users', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"id": "<string>",
"externalId": "<string>",
"userName": "<string>",
"name": {
"givenName": "<string>",
"familyName": "<string>",
"formatted": "<string>"
},
"displayName": "<string>",
"emails": [
{
"value": "<string>",
"primary": true
}
],
"title": "<string>",
"preferredLanguage": "ar",
"active": true,
"groups": [
{
"value": "<string>",
"display": "<string>"
}
],
"meta": {
"created": "2023-11-07T05:31:56Z",
"lastModified": "2023-11-07T05:31:56Z",
"location": "<string>",
"resourceType": "User"
}
}{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"detail": "Unauthorized",
"status": 401
}SCIM
Create a user
Automatic filtering on company defined in get_extra_model_filter_kwargs_getter()
POST
/
scim
/
v2
/
Users
Create a user
curl --request POST \
--url https://api.lighton.ai/scim/v2/Users \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"externalId": "<string>",
"userName": "<string>",
"name": {
"givenName": "<string>",
"familyName": "<string>"
},
"displayName": "<string>",
"emails": {
"value": "<string>"
},
"title": "<string>",
"active": true,
"password": "<string>"
}
'import requests
url = "https://api.lighton.ai/scim/v2/Users"
payload = {
"externalId": "<string>",
"userName": "<string>",
"name": {
"givenName": "<string>",
"familyName": "<string>"
},
"displayName": "<string>",
"emails": { "value": "<string>" },
"title": "<string>",
"active": True,
"password": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
externalId: '<string>',
userName: '<string>',
name: {givenName: '<string>', familyName: '<string>'},
displayName: '<string>',
emails: {value: '<string>'},
title: '<string>',
active: true,
password: '<string>'
})
};
fetch('https://api.lighton.ai/scim/v2/Users', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"id": "<string>",
"externalId": "<string>",
"userName": "<string>",
"name": {
"givenName": "<string>",
"familyName": "<string>",
"formatted": "<string>"
},
"displayName": "<string>",
"emails": [
{
"value": "<string>",
"primary": true
}
],
"title": "<string>",
"preferredLanguage": "ar",
"active": true,
"groups": [
{
"value": "<string>",
"display": "<string>"
}
],
"meta": {
"created": "2023-11-07T05:31:56Z",
"lastModified": "2023-11-07T05:31:56Z",
"location": "<string>",
"resourceType": "User"
}
}{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"detail": "Unauthorized",
"status": 401
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Show child attributes
Show child attributes
Show child attributes
Show child attributes
ar- Arabicen- Englishfr- Frenchde- German
Available options:
ar, en, fr, de Maximum string length:
128Response
Created user
Show child attributes
Show child attributes
Show child attributes
Show child attributes
ar- Arabicen- Englishfr- Frenchde- German
Available options:
ar, en, fr, de Show child attributes
Show child attributes
Show child attributes
Show child attributes