Tip |
---|
Tip |
Tip: Prior to IS 5.4.0, SCIM 2.0 was supported as an external connector that could be plugged in to WSO2 Identity Server. From 5.4.0 onwards, SCIM 2.0 is supported OOTB with WSO2 IS. |
This REST API implements the SCIM 2.0 Protocol according to the SCIM 2.0 specification.The following endpoints are supported with WSO2 Identity Server.
Table of Contents |
---|
Users endpoint
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User
This endpoint is used to create and manage users and their profile attributes.
Info |
---|
From WSO2 5.8.0 onwards, new configurations have been added to support filtering users and groups only from the PRIMARY domain. If these properties are enabled, the responses recieved for the users endpoint and groups endpoint will change. For more information, see /wiki/spaces/IS580/pages/41127141 topic. |
Panel | |||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
GET/ Get User by ID
This API is used to retrieve users by their user ID. It returns an
Parameters
Responses
|
Panel | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
POST/ Create User
This API creates a user and returns the user details along with the user's unique ID. It returns
Parameters
Responses
|
Panel | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
DELETE/ Delete User by ID
This API deletes a user using the user's unique ID. It returns
Parameters
Responses
|
Panel | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GET/ Get Users (User Listing/Filtering)
This API returns users according to the filter, sort and pagination parameters. It returns an
Parameters
Responses
|
Panel | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
POST/ Search Users
This API returns users according to the filter, sort and pagination parameters. It returns an
Parameters
Responses
|
Panel | |||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
PATCH/ Update User
This API updates user details and returns the updated user details using a PATCH operation. It returns an
Parameters
Responses
|
Panel | |||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
PUT/ Update User
This API updates user details and returns the updated user details using a PUT operation. It returns an
Parameters
Responses
|
Groups endpoint
This endpoint is used to create and manage groups and group members.
Info |
---|
From WSO2 5.8.0 onwards, new configurations have been added to support filtering users and groups only from the PRIMARY domain. If these properties are enabled, the responses recieved for the users endpoint and groups endpoint will change. For more information, see /wiki/spaces/IS580/pages/41127141 topic. |
Panel | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||
GET/ Group by ID
This API returns the group details of a particular group using its unique ID. It returns an
Parameters
Responses
|
Panel | |||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
POST/ Create Group
This API creates a group and returns the details of the created group including its unique ID. It returns an
Parameters
Responses
|
Panel | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
POST/ Create Group
This API creates a group and returns the details of the created group including its unique ID. It returns an
Parameters
Responses
|
Panel | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
DELETE/ Delete Group By ID
This API deletes a particular group using its unique ID. It returns an
Parameters
Responses
|
Panel | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GET/ Filter Groups
This API returns groups according to the specified filter, sort and pagination parameters. It returns HTTP 404 if the groups are not found.
Parameters
Responses
|
Panel | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
POST/ Search Groups
This API returns groups according to the specified filter, sort and pagination parameters. It returns an
Parameters
Responses
|
Panel | |||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
PATCH/ Update User
This API updates the group details and returns the updated group details using a PATCH operation. It returns an
Parameters
Responses
|
Panel | |||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
PUT/ Update User
This API updates the group details and returns the updated group details using a PUT operation. It returns an
Parameters
Responses
|
Me Endpoint
This endpoint is used to create and manage the currently authenticated user.
Panel | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||
POST/ Create Me
This API is used to register a user anonymously. It returns an
Parameters
Responses
|
Panel | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
DELETE/ Delete Me
This API is used to delete the currently authenticated user. It returns
Parameters
Responses
|
Panel | |||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||
GET/ Get Me
This API returns the user details of the currently authenticated user. These endpoints are secured by default. Therefore, to invoke this API anonymously, set the secured property for the SCIM2 resource in the
Parameters
Responses
|
Panel | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||
PATCH/ Update Me
This API uses a PATCH operation to update user details Returns
Parameters
Responses
|
Panel | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||
PUT/ Update User
This API uses a PUT operation to update user details. It returns HTTP 404 if the user is not found.
Parameters
Responses
|
Bulk Endpoint
This endpoint is used for bulk operations.
Panel | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
POST/ Create Users in Bulk
This API is used to create multiple users at once. It returns an
Parameters
Responses
|
ResourceType Endpoint
This endpoint is used to retrieve meta data about the resource types.
Panel | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
GET/ Get Resource Types
This API lists and returns metadata about resource types. It returns an
Parameters None Responses
|
ServiceProviderConfig Endpoint
This endpoint is used to retrieve the service provider's configuration details.
Panel | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||
GET/ Get Service Provider Config
This API is used to create multiple users at once. It returns an
Parameters None Responses
|
Required permissions for SCIM 2.0 APIs
The default permissions required to access each resource in SCIM 2.0 are given below.
Endpoint | HTTP Method | Permission | ||
---|---|---|---|---|
/scim2/Users | /scim2/Users | POST
| /permission/admin/manage/identity/usermgt/create | |
/scim2/Users | GET | /permission/admin/manage/identity/usermgt/list | ||
/scim2/Groups | POST | /permission/admin/manage/identity/rolemgt/create | /scim2/Groups | /create |
/scim2/Groups GET | GET | /permission/admin/manage/identity/rolemgt/view
| ||
/scim2/Users/(.*) | GET | /permission/admin/manage/identity/usermgt/view | ||
/scim2/Users/(.*) | PUT | /permission/admin/manage/identity/usermgt/update | ||
/scim2/Users/(.*) | PATCH | /permission/admin/manage/identity/usermgt/update | ||
/scim2/Users/(.*) | DELETE | /permission/admin/manage/identity/usermgt/delete delete | ||
/scim2/Groups/(.*)
| GET | /permission/admin/manage/identity/rolemgt/view | ||
/scim2/Groups/(.*) | PUT | /permission/admin/manage/identity/rolemgt/update | ||
/scim2/Groups/(.*) | PATCH | /permission/admin/manage/identity/rolemgt/update | ||
/scim2/Groups/(.*) | DELETE | /permission/admin/manage/identity/rolemgt/delete | ||
/scim2/Me | GET | /permission/admin/login | ||
/scim2/Me
| DELETE | /permission/admin/login | ||
/scim2/Me | PUT | /permission/admin/login | ||
/scim2/Me | PATCH | /permission/admin/login | ||
/scim2/Me | POST | /permission/admin/manage/identity/usermgt/create | ||
/scim2/ServiceProviderConfig | all | - | ||
/scim2/ResourceType | all | - | ||
/scim2/Bulk | all |
| all | /permission/admin/manage/identity/usermgt
|
Note | ||
---|---|---|
The
| ||
Info | ||
If the OverrideUsernameClaimFromInternalUsername property in
|
...