Editing users and groups via the HMI application

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Editing users and groups via the HMI application

mapp Services V5.16

Requirement

User management should be implemented in an application. It should include multiple users with different user rights. Certain machine functions should be available or blocked depending on the user who is logged in. In addition, it should be possible to create and edit new groups and users via the HMI application.

Solution

Component list

MpUserCreateGroup (MpLink from MpUserLogin): Creates a new group

MpUserCreateUser (MpLink from MpUserLogin): Creates a new user

MpUserLogin (own MpLink): Logs a user in/out

MpUserLoginUI (MpLink from MpUserLogin): Logs a user in/out via the HMI application

MpUserLevel (MpLink from MpUserLogin): Shows the level of the user who is logged in

Connection diagram

mpuserusecase_3_connection

 

 

Configuration

The MpUser and MpUserLogin configurations are added. The different user groups and users are created and their rights assigned in the MpUser configuration. User rights are linked to certain machine functions.

mpuserusecase_3_config1

mpuserusecase_3_config2

Using the mapp components

Components MpUserLogin, MpUserLoginUI, MpUserCreateGroup, MpUserLevel and MpUserCreateUser are added. The components are connected to one another as depicted in "Connection diagram".

The components are then configured.

MpUserLogin generates a login point where the user can log in with username (identification) and password.

MpUserLoginUI returns the corresponding data points for a VC4-based HMI application (e.g. logging in, changing password, etc.) To establish a connection to the HMI application via these components, see section VC4 templates.

If a user with the corresponding rights now logs in, then new groups and users can be created. Components MpUserCreateGroup and MpUserCreateUser are used for this. The current user level can be displayed using MpUserLevel.