Users
Fetch user with a given name or email address using SCIM operators
Examples:
emails.value eq "[email protected]"
name.givenName eq "James" and name.familyName eq "Bond"
The 1-based start index of the first user to be returned
The number of users to be returned. A maximum of 50 users will be returned in a page.
Comma-separated SCIM defined attributes to be returned. Required attributes are always returned
Comma-separated SCIM defined attributes to be excluded. Required attributes cannot be excluded
List of users
Bad Request
Forbidden
Not Found
GET /scim/v2/Users HTTP/1.1
Host: apipub.firstbasehq.com
Authorization: YOUR_API_KEY
Accept: */*
{
"totalResults": 102,
"itemsPerPage": 1,
"startIndex": 1,
"Resources": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"addresses": [
{
"country": "US",
"locality": "New York City",
"postalCode": "10123",
"region": "NY",
"streetAddress": "123 Sesame Street\nSuite 103",
"primary": true
}
],
"userName": "[email protected]",
"emails": [
{
"value": "[email protected]",
"primary": true
}
],
"name": {
"familyName": "Smith",
"givenName": "Jenny"
},
"phoneNumbers": [
{
"value": "1+555-867-5309",
"primary": true
}
],
"urn:ietf:params:scim:schemas:extension:firstbase:1.0:User": {
"packageId": "d1b0fd87-5fc9-410c-b641-0b7146896ccd",
"startDate": "2022-02-01",
"status": "ACTIVE",
"skipUserActivation": false
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:firstbase:1.0:User"
]
}
],
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:ListResponse"
]
}
Unique id of the user
Comma-separated SCIM defined attributes to be returned. Required attributes are always returned
Comma-separated SCIM defined attributes to be excluded. Required attributes cannot be excluded
User has been found
Bad Request
Forbidden
Unable to find user
GET /scim/v2/Users/{id} HTTP/1.1
Host: apipub.firstbasehq.com
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"addresses": [
{
"country": "US",
"locality": "New York City",
"postalCode": "10123",
"region": "NY",
"streetAddress": "123 Sesame Street\nSuite 103",
"primary": true
}
],
"userName": "[email protected]",
"emails": [
{
"value": "[email protected]",
"primary": true
}
],
"name": {
"familyName": "Smith",
"givenName": "Jenny"
},
"phoneNumbers": [
{
"value": "1+555-867-5309",
"primary": true
}
],
"urn:ietf:params:scim:schemas:extension:firstbase:1.0:User": {
"packageId": "d1b0fd87-5fc9-410c-b641-0b7146896ccd",
"startDate": "2022-02-01",
"status": "ACTIVE",
"skipUserActivation": false
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:firstbase:1.0:User"
]
}
Comma-separated SCIM defined attributes to be returned. Required attributes are always returned
Comma-separated SCIM defined attributes to be excluded. Required attributes cannot be excluded
The schemas defining the attributes of the resources.
["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:firstbase:1.0:User"]
User has been created
Bad Request
Forbidden
Unable to find organization or package
Unable to create user due to conflict
POST /scim/v2/Users HTTP/1.1
Host: apipub.firstbasehq.com
Authorization: YOUR_API_KEY
Content-Type: application/scim+json
Accept: */*
Content-Length: 664
{
"addresses": [
{
"country": "US",
"locality": "New York City",
"postalCode": "10123",
"region": "NY",
"streetAddress": "123 Sesame Street\nSuite 103",
"primary": true
}
],
"userName": "[email protected]",
"emails": [
{
"value": "[email protected]",
"primary": true
}
],
"name": {
"familyName": "Smith",
"givenName": "Jenny"
},
"phoneNumbers": [
{
"value": "1+555-867-5309",
"primary": true
}
],
"urn:ietf:params:scim:schemas:extension:firstbase:1.0:User": {
"packageId": "d1b0fd87-5fc9-410c-b641-0b7146896ccd",
"startDate": "2022-02-01",
"status": "ACTIVE",
"skipUserActivation": false
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:firstbase:1.0:User"
]
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"addresses": [
{
"country": "US",
"locality": "New York City",
"postalCode": "10123",
"region": "NY",
"streetAddress": "123 Sesame Street\nSuite 103",
"primary": true
}
],
"userName": "[email protected]",
"emails": [
{
"value": "[email protected]",
"primary": true
}
],
"name": {
"familyName": "Smith",
"givenName": "Jenny"
},
"phoneNumbers": [
{
"value": "1+555-867-5309",
"primary": true
}
],
"urn:ietf:params:scim:schemas:extension:firstbase:1.0:User": {
"packageId": "d1b0fd87-5fc9-410c-b641-0b7146896ccd",
"startDate": "2022-02-01",
"status": "ACTIVE",
"skipUserActivation": false
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:firstbase:1.0:User"
]
}
Comma-separated SCIM defined attributes to be returned. Required attributes are always returned
Comma-separated SCIM defined attributes to be excluded. Required attributes cannot be excluded
The schemas defining the attributes of the resources.
["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:firstbase:1.0:User"]
User has been updated
Bad Request
Forbidden
Unable to find person, organization or package
Unable to update user due to conflict
PUT /scim/v2/Users/{id} HTTP/1.1
Host: apipub.firstbasehq.com
Authorization: YOUR_API_KEY
Content-Type: application/scim+json
Accept: */*
Content-Length: 664
{
"addresses": [
{
"country": "US",
"locality": "New York City",
"postalCode": "10123",
"region": "NY",
"streetAddress": "123 Sesame Street\nSuite 103",
"primary": true
}
],
"userName": "[email protected]",
"emails": [
{
"value": "[email protected]",
"primary": true
}
],
"name": {
"familyName": "Smith",
"givenName": "Jenny"
},
"phoneNumbers": [
{
"value": "1+555-867-5309",
"primary": true
}
],
"urn:ietf:params:scim:schemas:extension:firstbase:1.0:User": {
"packageId": "d1b0fd87-5fc9-410c-b641-0b7146896ccd",
"startDate": "2022-02-01",
"status": "ACTIVE",
"skipUserActivation": false
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:firstbase:1.0:User"
]
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"addresses": [
{
"country": "US",
"locality": "New York City",
"postalCode": "10123",
"region": "NY",
"streetAddress": "123 Sesame Street\nSuite 103",
"primary": true
}
],
"userName": "[email protected]",
"emails": [
{
"value": "[email protected]",
"primary": true
}
],
"name": {
"familyName": "Smith",
"givenName": "Jenny"
},
"phoneNumbers": [
{
"value": "1+555-867-5309",
"primary": true
}
],
"urn:ietf:params:scim:schemas:extension:firstbase:1.0:User": {
"packageId": "d1b0fd87-5fc9-410c-b641-0b7146896ccd",
"startDate": "2022-02-01",
"status": "ACTIVE",
"skipUserActivation": false
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:firstbase:1.0:User"
]
}
Deleting a User will start the Offboarding process for the user. This is a SOFT delete, in which the user will still have access to the Firstbase platform until offboarding has completed
Unique id of the user
User has been deleted and offboarding has started
Bad Request
Forbidden
Unable to find user
DELETE /scim/v2/Users/{id} HTTP/1.1
Host: apipub.firstbasehq.com
Authorization: YOUR_API_KEY
Accept: */*
No content
Last updated