Download OpenAPI specification:Download
Localz User Management API gives you programmatic access to users and role groups for Localz platform. With the Localz User API, enterprise clients and partners can automatically provision users, synchronise user profile, and grant and remove access to Localz platform from a central management application.
Registers a new user
There are 3 types of user type
:
user
: This type is for special admin purpose. Do not use this type to create a user.attendant
: In-store collection mobile user or scheduler for field service project.driver
: Field service/mobile worker user.When user type
is set to attendant
, the following fields are required:
locationIds
: Array of storeCode
the user has access to - see example payload for more infoaccess
: Contains an array of string (default: "HO")When user type
is set to driver
, the following fields are required:
visibleBy
: List of locations that can see the driveraccess
: Must be of value DRIVER
Although you can set the roles/permission groups later, it is recommended that you specify them during user registration, to ensure they have the right access. You can either set an array of roles or groups.
Check User Management in the dashboard to see available roles and groups to set.
To access your dashboard,
replace the last project id
, i.e ZzWElCymBz5Fko2IrgnUEmWD3kq69qT89Q5f6000
with your own project id that has been allocated to you by Localz.
projectId required | string |
username required | string |
password required | string^(?=.*[A-Z])(?=.*[!@#$%()&*-^=+;<>?])(?=.*[0-... |
firstName | string |
lastName | string |
roles | Array of strings (id) |
tags | Array of strings (id) |
phoneNumber | string |
type | string Default: "user" Enum: "user" "attendant" "driver" |
string | |
moduleDeviceId | string |
desc | string |
avatarUrl | string |
locationIds required | string |
visibleBy required | string |
prefBranchId | string |
access required | string |
accessTags | Array of strings (accessTags) |
groups | Array of strings (accessTags) |
{- "username": "string",
- "password": "string",
- "firstName": "string",
- "lastName": "string",
- "roles": [
- "string"
], - "tags": [
- "string"
], - "phoneNumber": "string",
- "type": "user",
- "email": "string",
- "moduleDeviceId": "string",
- "desc": "string",
- "avatarUrl": "string",
- "locationIds": "string",
- "visibleBy": "string",
- "prefBranchId": "string",
- "access": "string",
- "accessTags": [
- "string"
], - "groups": [
- "string"
]
}
Update user
To reset the user's password, you can just include password
in the request body and omit all other fields.
projectId required | string |
username required | string |
password | string^(?=.*[A-Z])(?=.*[!@#$%()&*-^=+;<>?])(?=.*[0-... |
roles | Array of strings (Model33) Items Enum: "delivery:admin" "delivery:driver" "delivery:operator" "cnc:admin" "cnc:attendant" "cnc:operator" "realtime:driver" "media:driver" "preference:attendant" "preference:operator" "realtime:operator" "super-admin" "user:server" "inventory:admin" "inventory:supervisor" "inventory:operator" "site:admin" "site:operator" |
tags | Array of strings (tags) |
string | |
phoneNumber | string |
firstName | string |
lastName | string |
groups | Array of strings (accessTags) |
object (locationIds) | |
object (locationIds) | |
access | Array of strings (accessTags) |
accessTags | Array of strings (accessTags) |
prefBranchId | string |
avatarUrl | string |
moduleDeviceId | string |
desc | string |
{- "password": "password",
- "roles": [
- "delivery:admin"
], - "tags": [
- "driverType:permanent"
], - "email": "john.doe@email.com",
- "phoneNumber": "+61412334123",
- "firstName": "John",
- "lastName": "Doe",
- "groups": [
- "string"
], - "locationIds": {
- "siteId": [
- "string"
], - "storeCode": [
- "string"
]
}, - "visibleBy": {
- "siteId": [
- "string"
], - "storeCode": [
- "string"
]
}, - "access": [
- "string"
], - "accessTags": [
- "string"
], - "prefBranchId": "string",
- "avatarUrl": "string",
- "moduleDeviceId": "string",
- "desc": "string"
}