Skip to main content
You're reading Identity & Access Management 7.1.0. The newest release is 7.3.0, and Cloud has the newest features. Go to the newest release

SCIM 2.0 Users API

Download OpenAPI (YAML)Version 1.0.0

Base URL: https://localhost:9443/t/carbon.super/o/scim2

The SCIM 2.0 User Management API (version 1.0.0).

Download the OpenAPI definition (YAML)

Security schemes​

OAuth2: oauth2

authorizationCode flow, token URL https://localhost:9443/oauth/token, authorization URL https://localhost:9443/oauth/authorize

3 scopes
ScopeDescription
readGrants read access
writeGrants write access
adminGrants read and write access to administrative information

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. By default, duplicate user entries in the SCIM2 users response are persisted. To remove the duplicate user entries, add the following configuration to the deployment.toml file. </br> </br>

** Note According to the SCIM specification, the totalResutls attribute should return total number of results returned by the list or query operation. But due to the limitation of the LDAP user store, when we use the pagination paramters, we cannot get total number of users in the database. So, we are returning the total number of users per page as the totalResults. This is only applicable for the LDAP user store. The JDBC user store is working according to the specification.

[scim2] remove_duplicate_users_in_users_response = true

Scope(Permission) required:internal_org_user_mgt_list

Parameters

NameInTypeRequiredDescription
attributesquerystring

SCIM defined attributes parameter.

excludedAttributesquerystring

SCIM defined excludedAttribute parameter.

filterquerystring

Filter expression for filtering. Supported filters are ‘Ew’, ‘Eq’, ‘Co’, ‘Sw’, ‘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

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:

  1. Set a password for the user: Include the password parameter in the request body to set an initial password for the user.
  2. Invite the user to set their own password: Set the askPassword parameter to true in the urn:scim:wso2:schema extension. An email will be sent to the user with instructions to set their password and confirm their account.

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

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

Update user - PUT​

PUT /Users/{id}

This API updates user details and returns 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

9 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.employeeNumberstring
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

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 resource type.

Responses

CodeDescriptionSchema
204

User is deleted

401

Unauthorized

ErrorUnauthorized
403

Forbidden

ErrorForbidden

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: PatchOpperationInput

2 properties
NameTypeRequiredDescription
schemasarray of object
Operationsarray of OperationMeItem

Responses

CodeDescriptionSchema
200

Valid user is found

UserResponseObject
401

Unauthorized

ErrorUnauthorized
403

Forbidden

ErrorForbidden

Schemas​

UserObject​

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

The username you specify will be used by the user for log in.

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

Currently, the first email of the array (without a specified type) is treated as the primary email and assigning a type to this email is not supported.

urn:ietf:params:scim:schemas:extension:enterprise:2.0:Userobject
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.employeeNumberstring
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.managerobject

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

The userName you specify will be used by the user for log in.

emailsarray of object

Currently, the first email (without a specified type) is treated as the primary email and assigning a type to this email is not supported.

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

16 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.employeeNumberstring
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.managerobject
rolesobject

UserUpdateObject​

Type: object

9 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.employeeNumberstring
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.managerobject

PatchOpperationInput​

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
statusstringYes
schemasstring
scimTypestring

ErrorForbidden​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
scimTypestring

ErrorInternalServerError​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
detailstringYes

Was this page helpful?