User Roles

The User Roles API offer a set of customizable and predefined roles that can be assigned to Users/Drivers. A User Role contains Permissions that indicates the actions the User is allowed to do. The User’s accessible services are dependent on the User Role and checked against the Permissions that are assigned under them in the system.

Fields

Tag Data Type Required Description
accountId Long No The id of the Account that owns this record.
id Auto-incremented Long Auto Unique Identifier
lastChangedDate Text Auto Auto-generated timestamp of the last change made to this record
Note:
Format is in timestamp and timezone (YYYY-MM-DDTHH:MM:SS.sssZ, e.g: 1970-01-01T00:00:00.000Z)
name Character (100) Yes The name of the User Role.
permissions Array Yes A collection of Permissions that the User Role has.
system Boolean No Indicates if a User Role is system or not.

Default User Roles

Name Description
USER_ROLE_ACCOUNTADMIN Indicates if a User is an Account Admin. An Account Admin has overall access to the Account.

  • Can manage Accounts that are under his/her own Account.
  • Can manage Driver Statuses, Driver Logs, Locations, Violations, Unidentified Driving Events, Reports, DVIR History, Malfunctions & Data Diagnostics, Log Edits, IFTA and Mobile Worker pages.
  • An Account Admin has access to the following administrative pages: Accounts, Account Settings, Carrier Information, Alerts, Branding, User Profile, Users, User Roles, Drivers, Driver Exceptions, Equipment Management, Terminals, DVIR Forms, Form Setups, Button Editor, License Management (for Accounts with license functionality) and User Interface
USER_ROLE_FLEETMANAGER Indicates if a User is a Fleet Manager. A Fleet Manager has access to Users, Equipment, Terminals and DVIR Forms information.

  • Can manage Driver Statuses, Driver Logs, Locations, Violations, Unidentified Driving Events, Reports, DVIR History, Malfunctions & Data Diagnostics, Log Edits, IFTA and Mobile Worker pages.
  • A Fleet Manager has access to the following administrative pages: Carrier Information, Alerts, User Profile, Users, Drivers, Equipment Management, Terminals, DVIR Forms, User Interface
USER_ROLE_USERADMIN Indicates if a User is a User Admin. A User Admin has access to Users’ information. 

  • Can manage Driver Statuses, Driver Logs, Locations, Violations, Unidentified Driving Events, Reports, DVIR History, Job Sites and Work Orders.
  • A User Admin has access to the following administrative pages: Carrier Information, Alerts, User Profile, Users, Drivers, Equipment Management, User Interface
USER_ROLE_ASSETADMIN Indicates if a User is an Asset Admin. An Asset Admin can manage the Account’s Equipment.

  • An Asset Admin has access to the following administrative pages: User Profile, Equipment Management, User Interface 
USER_ROLE_WORKORDERASSIGNEE Indicates if a User is work order assignee. A Work Order Assignee can be assigned Work Orders from the portal. Actions that can be performed by a Work Order Assignee include:

  • Cannot login to portal.
  • Can login, view, create, update and delete only his/her own records in the mobile app.
USER_VIEW_ONLY Indicates if a User has VIEW ONLY Permissions. A User with all the view Permissions can perform the following:

  • Can login to portal.
  • Can view Driver Statuses, Driver Logs, Locations, Violations, Unidentified Driving Events, Reports, DVIR History, Malfunctions & Data Diagnostics, Log Edits, Job Sites and Work Orders
  • Can view the following administrative pages: User Profile and User Interface

Create

Read

Update

Delete

API PATH: /api/v2/userRoles/<id>
METHOD: DELETE

API error calls

ERROR MESSAGE POSSIBLE CAUSES
The new User role to insert should not have an id. POST error because request must not contain an id
Permission <permission name> does not exist. POST or PUT error because the Permission does not exist in the Account.
User cannot create/update User role that contains: <permission name> POST or PUT error because the current User is not allowed to create or update a User Role with one of the Permissions.
A User role with the given id was not found PUT error because id was not found in the Account
Can’t modify default User role <User role name> PUT error because User cannot update a default User Role
Can’t delete default User role <User role name> DELETE error because User cannot update a default User Role