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 Me API

Download OpenAPI (YAML)Version v1

Base URL: https://api.asgardeo.io/t/<ORGANIZATION_NAME>/scim2

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:

  • users endpoint

  • group endpoint

  • bulk endpoint

  • resource type endpoint

  • service provider config endpoint

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

NameInTypeRequiredDescription
attributesquerystring

SCIM defined attributes parameter.

excludedAttributesquerystring

SCIM defined excludedAttribute parameter.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
attributesquerystring

SCIM defined attributes parameter.

excludedAttributesquerystring

SCIM defined excludedAttribute parameter.

Request body (required): 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

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

NameInTypeRequiredDescription
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

User is updated

PatchOperationResponseOutput
401

Unauthorized

ErrorUnauthorized
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

PatchOperationResponseOutput​

Type: object

16 properties
NameTypeRequiredDescription
metaobjectYes
meta.createdstring
meta.locationstring
meta.lastModifiedstring
meta.resourceTypestring
schemasarray of string
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
rolesarray of object
nickNamestring

UserObjectListResponseObject​

Type: object

5 properties
NameTypeRequiredDescription
totalResultsinteger
startIndexinteger
itemsPerPageinteger
schemasobject
Resourcesarray of UserResponseObject

UserSearchRequestObject​

Type: object

SPConfigResponse​

Type: object

ErrorInvalidInput​

Type: object

4 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
scimTypestring
detailstringYes

ErrorUnauthorized​

Type: object

3 properties
NameTypeRequiredDescription
schemasstring
detailstring
statusstringYes

ErrorNotAcceptable​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
scimTypestring

ErrorForbidden​

Type: object

3 properties
NameTypeRequiredDescription
schemasstring
detailstring
statusstringYes

ErrorUserNotAvailable​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
detailstringYes

ErrorSchemaNotFound​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
detailstringYes

ErrorInternalServerError​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
detailstringYes

Was this page helpful?