User Search API

The FLOW User Search API provides an endpoint to search the CMS users in FLOW.

Endpoint

/api/roles
/api/user-search/{publicationDomain}

where publicationDomain is the domain e.g. example.com

Roles

Returns a keyed array of User Roles as an object, the key is the machine name which is what the Search API expects, the value is the human-readable name.

https://indy-api-dev.brightsites.co.uk/api/roles

Search

Simple elastic search endpoint for searching the user entities

Search Arguments

ArgumentsDescriptionExample
qQuery for NameTest Search
limitSet the number of users to be return20
offsetSet the offset e.g. return users from position 4040
sortAny of the numeric fields on the user object, eg, accesschanged
directionasc or descdesc
roleThe machine name of a role, eg: cms_editor, cms_admincms_editor
statusOptional, filters by status when set, values are 0 or 11

Full API call based on example below:

https://indy-api-dev.brightsites.co.uk/api/user-search/independent.co.uk?sort=created&direction=DESC&q=Simon&role=cms_editor&status=1&limit=1&offset=1