Config API Version 2 Users

Introduction

Every person that logs into the Infinity Platform has a User record that holds their details and roles.

Each User is created under a primary Organisation. Admins of that primary Organisation may manage the User’s details (e.g. login, name, password, etc). Note that passwords are stored as one-way encrypted hashes and may be changed but not viewed.

Search Users

Returns a list of Users that the authenticated user can access and which match a provided search term.

Request:

GET /config/v2/users/search/{search term}

Segment Parameters

GET Params

Filter Types

The Users list may be filtered by any of the returned fields.

Sort Types

The Users list may be sorted by any of the returned fields.

Response:

Returns a list of Users.

{"userId":"42","username":"some.person@example.com","firstName":"Some","lastName":"Person","primaryOrgId":"1","updateDatetime":"2014-03-14 09:30:42","userStatus":"200","primaryOrgName":"Some Organisation"}
{"userId":"59","username":"other.person@example.com","firstName":"Other","lastName":"Person","primaryOrgId":"1","updateDatetime":"2014-02-27 14:06:39","userStatus":"200","primaryOrgName":"Some Organisation"}

List Users

Returns a list of Users that the authenticated user can access.

Request:

GET /config/v2/users

GET Params

Filter Types

The Users list may be filtered by any of the returned fields.

Sort Types

The Users list may be sorted by any of the returned fields.

Response:

Returns a list of Users.

{"userId":"42","username":"some.person@example.com","firstName":"Some","lastName":"Person","primaryOrgId":"1","updateDatetime":"2014-03-14 09:30:42","userStatus":"200"}
{"userId":"59","username":"other.person@example.com","firstName":"Other","lastName":"Person","primaryOrgId":"1","updateDatetime":"2014-02-27 14:06:39","userStatus":"200"}

Read User Config

Returns the properties of a particular User.

Request:

GET /config/v2/users/{USER SPECIFIER}

URL Path Params

Response:

Returns the properties of a particular User.

{"userId":"42","username":"some.person@example.com","firstName":"Some","lastName":"Person","primaryOrgId":"1","updateDatetime":"2014-03-14 09:30:42","userStatus":"200"}

Create User

Creates a new User. Note that all new Users must be created under an existing Organisation.

Request:

POST /config/v2/users

POST Params

Response:

Returns the HTTP 201 (Created) status code if successful.

HTTP 201 - CREATED

Returns the ID of the new user in the response body:

{"userId":"123"}

Update User Config

Updates the properties of an existing User.

Request:

POST /config/v2/users/{USER SPECIFIER}

URL Path Params

POST Params

Response:

Returns the HTTP 204 (No Content) status code if update successful.

HTTP 204 - NO CONTENT

Delete User

Disables an existing user.

Request:

DELETE /config/v2/users/{USER SPECIFIER}

URL Path Params

Response:

Returns the HTTP 204 (No Content) status code if delete successful.

HTTP 204 - NO CONTENT