Every person who can log in to Qminder has a corresponding User object.
Users can be granted access to locations on a per-location basis, either with the "MANAGER" or "CLERK" access level.
Users can also be granted access to the entire Account, if they are given the "ADMIN" permission.
Fields
Users have the following data fields:
Name | Type | Description |
---|---|---|
id | number | A user's unique ID in Qminder |
string | A user's email address. Users will use this email address to log in to Qminder. | |
firstName | string | The user's first (given) name. |
lastName | string | The user's last (family) name. |
selectedLocation | number | The ID of the location that the user has currently selected. |
roles | array | An array of all access roles that the user has. |
roles[].id | number | The ID of the access role. |
roles[].type | string | The access level granted by this access role.
|
roles[].location | number | The ID of the Location that this access role grants access to. |
Code examples
This is a Line object as returned by our RESTful API and our official libraries.
{
"id": 891,
"email": "[email protected]",
"firstName": "Test",
"lastName": "User",
"selectedLocation": 4022,
"roles": [
{
"type": "ADMIN"
}
]
}