Data model
The Oneflow SCIM API has two main resource types, User and Group.
User
The User resource type defines only a subset of the attributes defined in the SCIM core schema (urn:ietf:params:scim:schemas:core:2.0:User).
While our resource definition for a user does list the extended EnterpriseUser schema (urn:ietf:params:scim:schemas:extension:enterprise:2.0:User), it is only there for compatibility purposes with specific SCIM clients.
Note:None of the fields defined in the EnterpriseUser schema is present in our User resource type.
You can find the following attributes in our user resource type:
| Attribute | Description | Notes |
|---|---|---|
active |
Enabled/disabled user |
|
displayName |
Display name |
Required |
roles |
SCIM user roles |
optional |
externalId |
SCIM client mapping ID |
|
groups |
The groups the user is a member of |
Read-only |
id |
Oneflow ID |
Read-only |
locale |
Language setting |
ISO 639‑1 |
meta |
SCIM meta info |
Read-only |
phoneNumbers |
Phone number of user for SMS |
A maximum of one phone number is allowed. |
schemas |
SCIM schemas info |
Read-only |
title |
Title |
|
userName |
User email address |
Required, must be unique |
Note:Currently, the API Reference uses the same request and response body parameters for the Create User and Update User endpoints. Check below to distinguish the required request parameters between these endpoints.
For Create User:
displayName,schemasanduserNameare required.active,externalId,locale,phoneNumbersandtitlearen't required and default values are"active": trueand"locale": "en"For Update User:
active,displayName,locale,schemasanduserNameare required.externalId,phoneNumbersandtitlearen't required.If you don’t send all the required parameters above, you will get a 400 error.
Group
The Group resource type defines all attributes from the SCIM core schema (urn:ietf:params:scim:schemas:core:2.0:Group).
| Attribute | Description | Notes |
|---|---|---|
| displayName | Displays the name of the group. | Required; must be unique. |
| externalId | SCIM client mapping ID | |
| id | Oneflow ID | Read-only |
| members | The list of members in the group. | Only users; cannot nest groups. |
| meta | SCIM meta info | Read-only |
| schemas | SCIM schema info | Read-only |
You can use the schemas endpoint to see which of the attributes from the core schemas are defined on our resource types, their mutability if required, and so on.
Note:Currently, in the API Reference, for Create Group and Update Group endpoints, request and response body parameters are same. For both these endpoints,
displayNameandschemasare required request parameters.externalIdandmembersaren't required.If you don’t send all the required parameters above, you will get a 400 error.
Updated 7 days ago

