SCIM 2.0 Users API
Base URL: https://api.asgardeo.io/t/{root-organization-name}/o/scim2
The WSO2 Identity Platform - SCIM 2.0 User Management API (version v1).
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
Authorization code OAuth flow + Organization Switch
Users Endpoint
This endpoint performs actions related to all users in the organization.
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_org_user_mgt_list
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.
Scope(Permission) required: internal_org_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_org_user_mgt_list
Request body: application/scim+json
Schema: UserSearchRequestObject
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_org_user_mgt_view
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_org_user_mgt_update
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_org_user_mgt_delete
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_org_user_mgt_update
Supported Operations:add, replace, remove
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 | 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 |
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 |
UserObjectListResponseObject
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | ||
startIndex | integer | ||
itemsPerPage | integer | ||
schemas | object | ||
Resources | array of UserResponseObject |
UserSearchRequestObject
Type: object
ErrorInvalidInput
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | string | ||
scimType | string | ||
detail | string | Yes |
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 |
ErrorUserNotAvailable
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | string | ||
detail | string | Yes |
ErrorInternalServerError
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | string | ||
detail | string | Yes |
Was this page helpful?