SCIM 2.0 Users API
The WSO2 Identity Platform - SCIM 2.0 Users API (version v1).
Download the OpenAPI definition (YAML)
Users Endpoint
Filter Users
GET /Users
This API returns users according to the filter, sort and pagination parameters. Pagination is not supported across user stores and LDAP multi-attribute group filtering. However, filtering is supported across multiple user stores.
-
Scope(Permission) required:
internal_user_mgt_list -
Flow type: Client Credentials OAuth Flow
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
attributes | query | string | SCIM defined attributes parameter. | |
excludedAttributes | query | string | SCIM defined excludedAttribute parameter. | |
filter | query | string | The expression used for filtering. Supported filters are ‘Ew’, ‘Eq’, ‘Co’, ‘Sw’, ‘Ne’ and ‘and’. | |
startIndex | query | integer (int32) | The 1-based index of the first query result | |
count | query | integer (int32) | Specifies the desired maximum number of query results per page. | |
domain | query | string | The name of the user store where filtering needs to be applied. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Valid users are found / Valid users are not found | UserObjectListResponseObject |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
Create User
POST /Users
This API creates a user and returns the user details along with the user's unique ID.
You can create a user in two ways:
- Set a password for the user: Include the
passwordparameter in the request body to set an initial password for the user. - Invite the user to set their own password: Set the
askPasswordparameter totruein theurn:scim:wso2:schemaextension. An email will be sent to the user with instructions to set their password and confirm their account.
Scope(Permission) required:internal_user_mgt_create
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
attributes | query | string | SCIM defined attributes parameter. | |
excludedAttributes | query | string | SCIM defined excludedAttribute parameter. |
Request body: application/scim+json
Schema: one of: UserObject, UserObjectPassInvite
Responses
| Code | Description | Schema |
|---|---|---|
201 | User is created. | UserResponseObject |
400 | Invalid Input | ErrorInvalidInput |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
500 | Internal Server Error | ErrorInternalServerError |
Search Users
POST /Users/.search
This API returns users according to the filter, sort and pagination parameters.
-
Scope(Permission) required:
internal_user_mgt_list -
Flow type: Client Credentials OAuth Flow
Request body: application/scim+json
Schema: UserSearchRequestObject
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of any | ||
attributes | array of any | SCIM defined attributes parameter. | |
filter | string | The expression used for filtering. Supported filters are ew, eq, co, sw, and and. | |
domain | string | The name of the user store where filtering needs to be applied. | |
startIndex | integer (int32) | The 1-based index of the first query result | |
count | integer (int32) | Specifies the desired maximum number of query results per page. </br>(For organizations created on or after November 19, 2024, a threshold value of 100 will be applied to the count parameter. To fetch more users, use pagination.) |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Valid users are found / Valid users are not found | UserObjectListResponseObject |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
Get User by ID
GET /Users/{id}
Return user details if a user found.
-
Scope(Permission) required:
internal_user_mgt_view -
Flow type: Client Credentials OAuth Flow
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Unique ID of the resource type. |
attributes | query | string | SCIM defined attributes parameter. | |
excludedAttributes | query | string | SCIM defined excludedAttribute parameter. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Valid user is found | UserResponseObject |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
404 | Valid user is not found | ErrorUserNotAvailable |
Update User - PUT
PUT /Users/{id}
This API updates user details and return the updated user details using a PUT operation.
-
Scope(Permission) required:
internal_user_mgt_update -
Flow type: Client Credentials OAuth Flow
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Unique ID of the resource type. |
attributes | query | string | SCIM defined attributes parameter. | |
excludedAttributes | query | string | SCIM defined excludedAttribute parameter. |
Request body: application/scim+json
Schema: UserUpdateObject
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | object | ||
name | object | ||
name.givenName | string | ||
name.familyName | string | ||
userName | string | ||
emails | array of object | ||
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User | object | ||
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager | object |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Valid user is found | UserResponseObject |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
404 | Valid user is not found | ErrorUserNotAvailable |
Delete User by ID
DEL /Users/{id}
This API deletes a user using the user's unique ID.
-
Scope(Permission) required:
internal_user_mgt_delete -
Flow type: Client Credentials OAuth Flow
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Unique ID of the user that you want to delete. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | User is deleted | |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
404 | Valid user is not found | ErrorUserNotAvailable |
Update User - PATCH
PATCH /Users/{id}
This API updates user details and returns the updated user details using a PATCH operation.
-
Scope(Permission) required:
internal_user_mgt_update -
Supported Operations:
add,replace,remove -
Flow type: Client Credentials OAuth Flow
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Unique id of the resource type. |
attributes | query | string | SCIM defined attributes parameter. | |
excludedAttributes | query | string | SCIM defined excludedAttribute parameter. |
Request body: application/scim+json
Schema: PatchOperationInput
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of object | ||
Operations | array of OperationMeItem |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Valid user is found | UserResponseObject |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
404 | Valid user is not found | ErrorUserNotAvailable |
Schemas
UserObject
Type: object
11 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | object | ||
name | object | ||
name.givenName | string | The | |
name.familyName | string | The | |
userName | string | By default, the username should be the email address and it will be stored in the | |
password | string | Yes | Use this parameter to set a password for the user account. The user will be able to reset this password later. When setting the password, be sure to follow the password-validation rules configured for your organization. |
emails | array of object | This email will be entered for the Email attribute in the user's profile. | |
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User | object | ||
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager | object | ||
urn:scim:wso2:schema | object | ||
urn:scim:wso2:schema.verifyEmail | boolean | When the administrator sets the password for the new user account, this parameter specifies if the new user should confirm the new account through email. If this parameter is set to |
UserObjectPassInvite
Type: object
10 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | object | ||
name | object | ||
name.givenName | string | The | |
name.familyName | string | The | |
userName | string | By default, the username should be the email address and it will be stored in the | |
emails | array of object | This email will be entered for the Email attribute in the user's profile. | |
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User | object | ||
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager | object | ||
urn:scim:wso2:schema | object | ||
urn:scim:wso2:schema.askPassword | boolean | Yes | If this parameter is set to |
UserResponseObject
Type: object
15 properties
| Name | Type | Required | Description |
|---|---|---|---|
meta | object | Yes | |
meta.created | string | ||
meta.location | string | ||
meta.lastModified | string | ||
meta.resourceType | string | ||
schemas | object | ||
username | string | ||
id | string | ||
name | object | ||
name.givenName | string | ||
name.familyName | string | ||
emails | array of object | ||
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User | object | ||
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager | object | ||
roles | object |
UserObjectListResponseObject
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | ||
startIndex | integer | ||
itemsPerPage | integer | ||
schemas | object | ||
Resources | array of UserResponseObject |
UserSearchRequestObject
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of any | ||
attributes | array of any | SCIM defined attributes parameter. | |
filter | string | The expression used for filtering. Supported filters are ew, eq, co, sw, and and. | |
domain | string | The name of the user store where filtering needs to be applied. | |
startIndex | integer (int32) | The 1-based index of the first query result | |
count | integer (int32) | Specifies the desired maximum number of query results per page. </br>(For organizations created on or after November 19, 2024, a threshold value of 100 will be applied to the count parameter. To fetch more users, use pagination.) |
UserUpdateObject
Type: object
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | object | ||
name | object | ||
name.givenName | string | ||
name.familyName | string | ||
userName | string | ||
emails | array of object | ||
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User | object | ||
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager | object |
PatchOperationInput
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of object | ||
Operations | array of OperationMeItem |
OperationMeItem
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
op | string | Allowed values: | |
value | object | ||
value.nickName | string |
ErrorUnauthorized
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | string | ||
detail | string | ||
status | string | Yes |
ErrorForbidden
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | string | ||
detail | string | ||
status | string | Yes |
ErrorInvalidInput
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | string | ||
scimType | string | ||
detail | string | Yes |
ErrorInternalServerError
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | string | ||
detail | string | Yes |
ErrorUserNotAvailable
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | string | ||
detail | string | Yes |
Was this page helpful?