Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

SCIM 2.0 Users API

Download OpenAPI (YAML)Version v1

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

NameInTypeRequiredDescription
attributesquerystring

SCIM defined attributes parameter.

excludedAttributesquerystring

SCIM defined excludedAttribute parameter.

filterquerystring

The expression used for filtering. Supported filters are ‘Ew’, ‘Eq’, ‘Co’, ‘Sw’, ‘Ne’ and ‘and’.

startIndexqueryinteger (int32)

The 1-based index of the first query result

countqueryinteger (int32)

Specifies the desired maximum number of query results per page.

domainquerystring

The name of the user store where filtering needs to be applied.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
attributesquerystring

SCIM defined attributes parameter.

excludedAttributesquerystring

SCIM defined excludedAttribute parameter.

Request body: application/scim+json

Schema: one of: UserObject, UserObjectPassInvite

Responses

CodeDescriptionSchema
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

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstringYes

Unique ID of the resource type.

attributesquerystring

SCIM defined attributes parameter.

excludedAttributesquerystring

SCIM defined excludedAttribute parameter.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstringYes

Unique ID of the resource type.

attributesquerystring

SCIM defined attributes parameter.

excludedAttributesquerystring

SCIM defined excludedAttribute parameter.

Request body: application/scim+json

Schema: UserUpdateObject

8 properties
NameTypeRequiredDescription
schemasobject
nameobject
name.givenNamestring
name.familyNamestring
userNamestring
emailsarray of object
urn:ietf:params:scim:schemas:extension:enterprise:2.0:Userobject
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.managerobject

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstringYes

Unique ID of the user that you want to delete.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstringYes

Unique id of the resource type.

attributesquerystring

SCIM defined attributes parameter.

excludedAttributesquerystring

SCIM defined excludedAttribute parameter.

Request body: application/scim+json

Schema: PatchOperationInput

2 properties
NameTypeRequiredDescription
schemasarray of object
Operationsarray of OperationMeItem

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
schemasobject
nameobject
name.givenNamestring

The givenName you specify will be entered for the First Name attribute in the user's profile.

name.familyNamestring

The familyName you specify will be entered for the Last Name attribute in the user's profile.

userNamestring

By default, the username should be the email address and it will be stored in the DEFAULT user store. However, if username validation is changed to Alphanumeric in your WSO2 Identity Platform organization, you need to specify an alphanumeric value (a-z, A-Z, 0-9) as the username instead of the email.

passwordstringYes

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.

emailsarray 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:Userobject
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.managerobject
urn:scim:wso2:schemaobject
urn:scim:wso2:schema.verifyEmailboolean

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 true, an email is sent to the user's email address requesting confirmation.

UserObjectPassInvite​

Type: object

10 properties
NameTypeRequiredDescription
schemasobject
nameobject
name.givenNamestring

The givenName you specify will be entered for the First Name attribute in the user's profile.

name.familyNamestring

The familyName you specify will be entered for the Last Name attribute in the user's profile.

userNamestring

By default, the username should be the email address and it will be stored in the DEFAULT user store. However, if username validation is changed to Alphanumeric in your WSO2 Identity Platform organization, you need to specify an alphanumeric value (a-z, A-Z, 0-9) as the username instead of the email.

emailsarray 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:Userobject
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.managerobject
urn:scim:wso2:schemaobject
urn:scim:wso2:schema.askPasswordboolean

If this parameter is set to true, users will be allowed configure their own password. An email is sent to the specified email address, which will have instructions for the user to set the password and confirm the new user account.

UserResponseObject​

Type: object

15 properties
NameTypeRequiredDescription
metaobjectYes
meta.createdstring
meta.locationstring
meta.lastModifiedstring
meta.resourceTypestring
schemasobject
usernamestring
idstring
nameobject
name.givenNamestring
name.familyNamestring
emailsarray of object
urn:ietf:params:scim:schemas:extension:enterprise:2.0:Userobject
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.managerobject
rolesobject

UserUpdateObject​

Type: object

8 properties
NameTypeRequiredDescription
schemasobject
nameobject
name.givenNamestring
name.familyNamestring
userNamestring
emailsarray of object
urn:ietf:params:scim:schemas:extension:enterprise:2.0:Userobject
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.managerobject

PatchOperationInput​

Type: object

2 properties
NameTypeRequiredDescription
schemasarray of object
Operationsarray of OperationMeItem

OperationMeItem​

Type: object

3 properties
NameTypeRequiredDescription
opstring

Allowed values: add, remove, replace

valueobject
value.nickNamestring

UserObjectListResponseObject​

Type: object

5 properties
NameTypeRequiredDescription
totalResultsinteger
startIndexinteger
itemsPerPageinteger
schemasobject
Resourcesarray of UserResponseObject

UserSearchRequestObject​

Type: object

ErrorInvalidInput​

Type: object

4 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
scimTypestring
detailstringYes

ErrorUnauthorized​

Type: object

3 properties
NameTypeRequiredDescription
schemasstring
detailstring
statusstringYes

ErrorForbidden​

Type: object

3 properties
NameTypeRequiredDescription
schemasstring
detailstring
statusstringYes

ErrorUserNotAvailable​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
detailstringYes

ErrorInternalServerError​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
detailstringYes

Was this page helpful?