Jump to: navigation, search

Changes


HowTo:Configure Users and User Rights

2,639 bytes added, 19:47, 13 December 2019
Created page with "In many projects, it is important to distinguish the active user, mainly for the mobile client. Mostly, it is required to just restrict access to certain users. Often, there a..."
In many projects, it is important to distinguish the active user, mainly for the mobile client. Mostly, it is required to just restrict access to certain users. Often, there are also different groups of users that should have different rights to view, edit, create or delete objects. In some cases, the content provided to the mobile client should depend on the active user. This How-To explains how to configure users and how to customize a {{UBIK}} application depending on the active user.

== Managing user accounts ==
The first step in any case is to create and organize accounts for users. In some case, users have to be imported from an external system, which is best done using [[Proxy|Proxies]] (see also how to [[HowTo:Configure_Proxies]]). However, accounts can also be created manually or programmatically. In any case, the following information is relevant.

=== Login ===
In {{UBIK}}, an account object is called [[Login]], with the system [[MetaClass]] ''LOGIN''. Theoretically, a user can have multiple such login credentials, but normally, you'd have one per user. If there are multiple logins for one user, you can create a custom meta class for the users and link the login objects to them via [[Relation]] or [[Reference]] (see also how to [[HowTo:Relate_Objects]]). You can also create a derivation of the ''LOGIN'' system meta class to add further details for the instances.

=== User groups ===
Login accounts are best managed in groups corresponding to roles, e.g., "Administrator" or "Engineer". This is important if you don't want to distinguish by account individually, but more generally by their role. This allows you to add new logins (to existing groups) without having to adapt your customizing. There is a system meta class ''USERGROUP'' that can be used for this. Similar to the way you would link multiple logins to a user, you can also relate multiple users to one or many groups (there is a system relation for that, ''SYSREL_GROUP_LOGIN'').

If you have just one group of users (i.e., all the users have the same rights or highly individual rights), it is not necessary to configure groups.

<!--
== User rights ==

-->

<!-- DO NOT REMOVE THIS -->{{Template:HowTo/Begin}}<!-- DO NOT REMOVE THIS -->
<!--
= Instructions =
DO NOT MODIFY THE NAME OF THIS SECTION, BUT REMOVE IT IF NOT REQUIRED
<Give step-by-step instructions, use images, ...>
-->

<!-- DO NOT REMOVE THIS -->{{Template:HowTo/End}}<!-- DO NOT REMOVE THIS -->

==See also==
<!-- DO NOT MODIFY THE NAME OF THIS SECTION, BUT REMOVE IT IF NOT REQUIRED -->

[[Category:How-To|Configure Users]]
[[Category:Login management|Configure Users]]
1,765
edits