SCIM 2.0 Me API
The SCIM 2.0 Me API (version v1).
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
You can use the following OAuth grant types to securely access the respective API endpoints.
Authorization Code OAuth Flow
Authorization URL: 'https://api.asgardeo.io/t/{org-name}/oauth2/authorize'
This flow type is used for the me endpoint of SCIM2 APIs. You can use the following scope for this endpoints.
internal_login: Grant permission for an authenticated user for self management.
Client Credentials OAuth Flow
Token URL: https://api.asgardeo.io/t/{org-name}/oauth2/token
This flow type is used for the following endpoints:
-
usersendpoint -
groupendpoint -
bulkendpoint -
resource typeendpoint -
service provider configendpoint
You can use the following scopes for each of the endpoints.
-
internal_user_mgt_list: Grant permissions to read user records. -
internal_user_mgt_create: Grant permissions to create new users. -
internal_user_mgt_update: Grant permissions to update existing users. -
internal_user_mgt_delete: Grant permissions to delete users. -
internal_group_mgt_view: Grant permissions to read group records. -
internal_group_mgt_create: Grant permissions to create new group records. -
internal_group_mgt_update: Grant permissions to update existing group records. -
internal_group_mgt_delete: Grant permissions to delete group records.
Me Endpoint
This endpoint performs actions on the logged in user.
Get Me
GET /Me
This API returns the user details of the currently authenticated user.
-
Scope(Permission) required:
internal_login -
Flow type: Authorization Code OAuth Flow
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
attributes | query | string | SCIM defined | |
excludedAttributes | query | string | SCIM defined |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Valid user is found | UserResponseObject |
401 | Unauthorized | ErrorUnauthorized |
404 | Valid User is not found | ErrorUserNotAvailable |
Update Me
PUT /Me
This API uses a PUT operation to update user details.
-
Scope(Permission) required:
internal_login -
Flow type: Authorization Code OAuth Flow
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
attributes | query | string | SCIM defined attributes parameter. | |
excludedAttributes | query | string | SCIM defined excludedAttribute parameter. |
Request body (required): 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 | User is updated | UserResponseObject |
401 | Unauthorized | ErrorUnauthorized |
404 | Valid user is not found | ErrorUserNotAvailable |
Update Me - PATCH
PATCH /Me
This API uses a PATCH operation to update user details.
-
Scope(Permission) required:
internal_login -
Flow type: Authorization Code OAuth Flow
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: PatchOperationInput
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of object | ||
Operations | array of OperationMeItem |
Responses
| Code | Description | Schema |
|---|---|---|
200 | User is updated | PatchOperationResponseOutput |
401 | Unauthorized | ErrorUnauthorized |
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 |
PatchOperationResponseOutput
Type: object
16 properties
| Name | Type | Required | Description |
|---|---|---|---|
meta | object | Yes | |
meta.created | string | ||
meta.location | string | ||
meta.lastModified | string | ||
meta.resourceType | string | ||
schemas | array of string | ||
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 | array of object | ||
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
SPConfigResponse
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 |
ErrorNotAcceptable
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | string | ||
scimType | string |
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 |
ErrorSchemaNotFound
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?