Users

Read-only, and deliberately minimal. Users are who NolaPro attributes work to, so an integrator needs to resolve an id to a name - and nothing more. Credentials, API keys, two-factor secrets and the ninety-odd preference columns are never returned.

The object#

FieldTypeDescription
idread-onlyintegerUser id. This is what entryuserid and friends hold.
nameread-onlystring(50)Login name.
firstnameread-onlystring(35)The user’s first name.
lastnameread-onlystring(35)The user’s last name.
emailread-onlystring(100)Email address.
supervisorread-onlybooleanSupervisor in this company.
cancelread-onlybooleanTrue once the user is cancelled.

Endpoints#

GET/genusers 200403

List users.

Requires scope users:read.

Parameters
NameInTypeNotes
namequerystringname. Partial match, case-insensitive.
cancelquerystringDefaults to false. Pass true or any.
includequerystringComma-separated extras to embed. Only custom_fields is available: the extra fields this install has defined on the record. Off by default, and an unrecognised value is refused rather than ignored. See Conventions.
When it fails
StatusCodeMeaning
403insufficient_scopeToken lacks genusers:read.
curl \
  'https://acme.nolapro.com/!/api/v2/genusers' \
  -H 'Authorization: Bearer $NP_TOKEN'
GET/genusers/{id} 200404

Retrieve one record.

Requires scope users:read.

Parameters
NameInTypeNotes
idrequiredpathintegerThe record id.
includequerystringComma-separated extras to embed. Only custom_fields is available: the extra fields this install has defined on the record. Off by default, and an unrecognised value is refused rather than ignored. See Conventions.
When it fails
StatusCodeMeaning
404not_foundNo record with that id.
curl \
  'https://acme.nolapro.com/!/api/v2/genusers/104' \
  -H 'Authorization: Bearer $NP_TOKEN'
Response 200
{
    "id": 2,
    "name": "jsmith",
    "firstname": "Jane",
    "lastname": "Smith",
    "email": "jane@example.com",
    "supervisor": false,
    "cancel": false
}