SCIM - Example messages

Note: All provided examples of messages are in JSON format.

POST User

Minimal Representation

The following request is the minimal request for creating a user, since username is the only mandatory field.

The response messages shows:

  • Generated ID for the newly created user.
  • Metadata as specified by SCIM.
  • Metadata in metadata-extension as defined by OneWelcome.
  • OneWelcome's user extension, containing state and segment.
  • OneWelcome extensions.

Request

example
Copy

Response

example
Copy

GET User

Search a User by Name

example
Copy

Request GET USER Using Filtering on Custom Attribute

example
Copy

The filtering can be done by using more operators. These operators can be concatenated using AND or OR operators, and this will represent a filter query. In the following table there are represented the supported operators for filtering with the specific description.

GET User Response with OneWelcome Extensions

This example shows:

  • OneWelcome User extension (segment and state).
  • OneWelcome attribute metadata extension and how that references attributes in core schema and references attribute 'segment' in OneWelcome User extension.

Request

example
Copy

Response

example
Copy

PATCH User

Change User's Password

Request

example
Copy

Change User's Password Using bcrypt

Note: This is optional. It needs to be configured, if required.

When a user's password needs to be updated to Ne@am!ros, the hashed value using the bcrypt-algorithm is $2a$10$4pmvJAAZuTW7mmaVuzyDaeIPL77nB/zTsOsy5bE5eYj3XjMlATbBy and that can be provisioned towards OneWelcome using the following PATCH command.

For testing purposes the following site can be used to hash passwords using the bcrypt algorithm: https://www.bcrypt-generator.com.

Request

example
Copy

After OneWelcome has successfully processed this request, the user can log in to OneWelcome using his password "Ne@am!ros".

Update Singular Simple Attribute in Custom User Extension

Request

example
Copy

Add Additional Email Addresses

Request

example
Copy

Update User's familyName (Singular Complex Attribute)

Request

example
Copy

Add Two User's Addresses

Request

example
Copy

Response

example
Copy

Delete One of the User's Addresses

Request

example
Copy

Response

example
Copy

Change One of the User's Addresses (multi-valued complex attribute)

Request

example
Copy

Response

example
Copy

Block a User

Request

example
Copy

Response

example
Copy

Remove a Block from a User

A user can have one or multiple blocks. The following is an example request that removes a single block.

If no blocks remain, OneWelcome will change the 'state' and 'active' attributes of the user.

Request

example
Copy

Response

example
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated by Stein Welberg