<< Click to Display Table of Contents >> Navigation: »No topics above this level« Importing externally created users |
mapp Services V5.16
Externally created users can be imported in mapp UserX.
It is important to note the following points.
A file to be imported looks something like this:
<?xml version="1.0" encoding="UTF-8"?>
<DATA>
<Format Type="MpUser" Version="1.00" Check="2339272230" />
<Groups>
<Group ID="Admin" Level="100" Admin="true" Check="1236056579">
<Right ID="0" Access="FullAccess" />
<Right ID="1" Access="FullAccess" />
<Right ID="2" Access="FullAccess" />
<Right ID="3" Access="FullAccess" />
<Right ID="4" Access="FullAccess" />
</Group>
<Group ID="Supervisor" Level="50" Admin="true" Check="2778008081">
<Right ID="0" Access="FullAccess" />
<Right ID="1" Access="FullAccess" />
<Right ID="2" Access="FullAccess" />
<Right ID="3" Access="FullAccess" />
<Right ID="4" Access="ViewOnly" />
</Group>
<Group ID="Operator" Level="10" Admin="false" Check="3531168924">
<Right ID="0" Access="FullAccess" />
<Right ID="1" Access="StartOnly" />
<Right ID="2" Access="ViewOnly" />
<Right ID="3" Access="NoAccess" />
<Right ID="4" Access="NoAccess" />
</Group>
</Groups>
<Users>
<User ID="Admin" Group="Admin" Name="Default User" Pref="" Pwd="133d4ba6eae6416454f1b10c0df4cb0e" Check="18618547" />
<User ID="Operator" Group="Operator" Name="Operator User" Pref="" Pwd="06c8f5530383b158ed5f072bb842cd80" Check="920349654" />
<User ID="Visitor" Group="Operator" Name="Unknown user" Pref="" Pwd="9ed0f0162cb321bd778dc48e3be5321e" Check="4273066513" />
</Users>
</DATA>
If an external user (ExternUser) should be added, then the import file needs to be updated. This is done by adding entry Ext="1" to tag <User>. This identifies an external user.
<?xml version="1.0" encoding="UTF-8"?>
<DATA>
<Format Type="MpUser" Version="1.00" Check="2339272230" />
<Groups>
<Group ID="Admin" Level="100" Admin="true" Check="1236056579">
<Right ID="0" Access="FullAccess" />
<Right ID="1" Access="FullAccess" />
<Right ID="2" Access="FullAccess" />
<Right ID="3" Access="FullAccess" />
<Right ID="4" Access="FullAccess" />
</Group>
<Group ID="Supervisor" Level="50" Admin="true" Check="2778008081">
<Right ID="0" Access="FullAccess" />
<Right ID="1" Access="FullAccess" />
<Right ID="2" Access="FullAccess" />
<Right ID="3" Access="FullAccess" />
<Right ID="4" Access="ViewOnly" />
</Group>
<Group ID="Operator" Level="10" Admin="false" Check="3531168924">
<Right ID="0" Access="FullAccess" />
<Right ID="1" Access="StartOnly" />
<Right ID="2" Access="ViewOnly" />
<Right ID="3" Access="NoAccess" />
<Right ID="4" Access="NoAccess" />
</Group>
</Groups>
<Users>
<User ID="Admin" Group="Admin" Name="Default User" Pref="" Pwd="133d4ba6eae6416454f1b10c0df4cb0e" Check="18618547" />
<User ID="Operator" Group="Operator" Name="Operator User" Pref="" Pwd="06c8f5530383b158ed5f072bb842cd80" Check="920349654" />
<User ID="Visitor" Group="Operator" Name="Unknown user" Pref="" Pwd="9ed0f0162cb321bd778dc48e3be5321e" Check="4273066513" />
<User ID="ExternUser" Ext="1" Group="Admin" Name="ExternUser" Pref="/LANG=0 /UNIT=0" Pwd="Test99" Check="3435560943">
<AdditionalData Key="PhoneNumber" Value="123" />
<AdditionalData Key="eMail" Value="a.b@c.de" />
<AdditionalData Key="custom" Value="wasd" />
</User>
</Users>
</DATA>
Option "UncheckedImport" must be set to TRUE in MpUser configuration. The import file is protected with a checksum. If the option is disabled and a user is added to the import file, the file cannot be imported.
If the import file is not checked ("UncheckedImport" =TRUE), then the checksum is ignored and an externally created user can be imported.
The import file can be imported via the HMI application using MpUserManagerUI. Several different import modes are available for selection; they can be defined in the MpUser configuration.
The desired file is selected and imported:
The externally created user is created automatically.