Assigning vehicle views to different users in an application

This guide shows how to set up an application with separate views of vehicles for different user roles.

Scenario

For this example, we have a company called ABC fleet that has two regions: Region A and Region B.

  • Region A has a user called Operator A who is in charge of controlling motorcycles inside the organization.
  • Region B has a user called Operator B who is in charge of controlling the truck fleet.
  • The admin user will have visibility over the whole fleet (motorcycles and trucks).

mceclip0.png

Working with Tags, Views, and Roles

To make this scenario possible, we need to do the following:

1. Create tags for the groups of vehicles. 

2. Create views for specific tags

3. Create custom roles for each user

1. Create tags for the groups of vehicles

It is very important to keep your fleet organized in tags. Read more about tags here.

To create new tags, go to Admin > Tags

Include all the vehicles in the same category in your new tag.

Screenshot 2024-08-07 at 14.54.25.png

Screenshot 2024-08-07 at 14.54.37.png

2. Create views for specific tags

Once you have your new tag created (Motorbikes), now it's time to create a view that will only have visibility of the vehicles included in the Motorbikes tag.

To create a new view, go to Admin > Views.

Read more about views here.

Screenshot 2024-08-07 at 14.55.40.pngScreenshot 2024-08-07 at 14.55.48.png

3. Create roles for specific users

Once your tags and views are ready to be used, it's time to assign each view to a specific user. 

To do that we will use rolesRead more about roles here.

By assigning views to specific roles of users, you allow each operator (Operator A / Operator B) to have visibility over a specific view (remember that Operator A will look after motorcycles and Operator B over trucks).

To have specific roles for each user, we need to create custom roles. Go to Admin > Roles.  

Duplicate the default role _Operator (modifying a default role is not recommended) in order to create one for the motorcycles and another for the trucks.

Screenshot 2024-08-07 at 14.57.58.png

Select the view you want the user to have access to:

Screenshot 2024-08-07 at 14.59.39.png

Finally, select the user, and save the new role.

Screenshot 2024-08-07 at 15.00.56.png

Note: remove Operator A from the default _Operator role to avoid conflict with multiple roles.

Repeat the same steps for the trucks and Operator B.

Result

Admin view

mceclip6.png

Operator A view (Motorbikes)

mceclip7.png

Operator B view (Trucks)

mceclip8.png