Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
devel:documentation:identities:adm:user-type [2020/03/27 13:45] tomiskar [Authorization policies] |
devel:documentation:identities:adm:user-type [2021/03/26 07:40] tomiskar [User type] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== User type ====== | ====== User type ====== | ||
+ | |||
+ | {{tag> form projection}} | ||
User type (projection) was added in CzechIdM version 10.2.0. Projection defines frontend form to read, create and edit user. We can create and edit user by different form. For example externe and internal employee can be created and edited differently (different attributes has to be filled). Used projection for user creation is set as user type. | User type (projection) was added in CzechIdM version 10.2.0. Projection defines frontend form to read, create and edit user. We can create and edit user by different form. For example externe and internal employee can be created and edited differently (different attributes has to be filled). Used projection for user creation is set as user type. | ||
- | Provided projection can be configured by administrator. New projection type and localization can be provided by developer. | + | Provided projection can be configured by administrator. New projection type and localization can be provided by [[..: |
Configurable form (projection) with configurable features is provided in product: | Configurable form (projection) with configurable features is provided in product: | ||
* **Show user personal data** - show selected or all user personal data (e.g. login, first name, surname). | * **Show user personal data** - show selected or all user personal data (e.g. login, first name, surname). | ||
- | * **Show contract** - prime contract is shown by default. If currenly logged user has permission to read prime contract. First other contract is shown otherwise. Contract are sorted by priority the same way, as prime contract is evaluated. | + | * **Show contract** - prime contract is shown by default. If currenly logged user has permission to read prime contract. First other contract is shown otherwise. Contract are sorted by priority the same way, as prime contract is evaluated. Contracts can be shown n two modes: |
- | * **Show other contract position** - first contract other position | + | * **Show prime contract** - show (and update) prime user contract only. |
+ | * **Show all user contracts** - show (and update) all user contracts. Code list '' | ||
+ | * **Validations** for basic user personal data and basic contract attributes can be defined. | ||
+ | * **Show other contract position** - first contract other position | ||
* **Show extended identity attributes** - show selected extended attributes from selected form definitions. | * **Show extended identity attributes** - show selected extended attributes from selected form definitions. | ||
* **Show extended contract attributes** - show selected extended attributes from selected form definitions. Contract are sorted by priority. Prime contract extended attributes can be edited, if logged user can read and edit prime contract. If logged user cannot read prime contract, next contract which identity can read is shown. | * **Show extended contract attributes** - show selected extended attributes from selected form definitions. Contract are sorted by priority. Prime contract extended attributes can be edited, if logged user can read and edit prime contract. If logged user cannot read prime contract, next contract which identity can read is shown. | ||
Line 17: | Line 22: | ||
<note tip> | <note tip> | ||
- | ===== Configure and use new projection ===== | + | <note tip>Code list '' |
- | ==== Projection agenda | + | ===== Configure and use form projection ===== |
- | New projection | + | How to configure and use product form projection |
- | {{ : | + | How to register |
- | + | ||
- | ==== Add new projection | + | |
- | + | ||
- | We can configure new projection to introduce all features: | + | |
- | * Code - **Externe user**. Projection simple name. | + | |
- | * Module - we can leave it empty, **core** module | + | |
- | * Basic attributes - select | + | |
- | * Form definitions - we need to prepare extended attributes form definition before to use then here, we will use this definitions and attributes as example: | + | |
- | * **default - IdmIdentity** - default form definition for users, select attributes: | + | |
- | * **Mobile phone** - text attribute | + | |
- | * **Reqistration** - boolean attribute | + | |
- | * **default - default - IdmIdentityContract** - default form definition for cntracts, select attributes: | + | |
- | * **Environment** - codelist ith available environments | + | |
- | * **Manager** - user select box | + | |
- | * Description - **Create and edit externe user.** Description is shown in projection list (into about projection and for filter). | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | <note tip>We filled simple projection name as projection code. Projection name will be shown without localization. Read how to add [[# | + | |
- | + | ||
- | <note tip> | + | |
- | + | ||
- | <note tip> | + | |
- | + | ||
- | ==== Choose projection ==== | + | |
- | + | ||
- | When new user is created (menu **Users** -> **Create user** button.), then newly created projection can be chosen: | + | |
- | + | ||
- | {{ :devel: | + | |
- | + | ||
- | <note tip> | + | |
- | + | ||
- | === User detail for create | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | We can create new user with all attributes are filled. We can choose roles, which will have to be assigned (requested) for created user. Used form (projection) is set as user type. After form is saved, the same form is shown and user can be edited if needed. The same form is used and shown as user detail. | + | |
- | + | ||
- | === User detail for edit user by configuration above ==== | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | === Default full detail === | + | |
- | + | ||
- | Default full detail can be shown for each user with projection usage. New button was added into user (and projection) detail header: | + | |
- | + | ||
- | {{ :devel: | + | |
- | + | ||
- | Button is available for all logged user without any additional permission is needed. Quick link to default full detail is available from top profile menu. Buttons on dashboard ane any other link to user detail will lead to projection form. | + | |
- | + | ||
- | The same way is posible to go back to form by projection from full default detail. Button is in the same place with different direction. | + | |
- | + | ||
- | ==== Change user type ==== | + | |
- | + | ||
- | User type (projection) can be changed from default full identity detail: | + | |
- | + | ||
- | After user type is changed and user is saved, then button in detail header (see above) can be used for show user in form projection. | + | |
- | + | ||
- | <note tip> | + | |
- | + | ||
- | ==== Set or change user password ==== | + | |
- | + | ||
- | If **password** attribute is added in projection personal data configuration, | + | |
- | * New password can be filled fo newly created user, | + | |
- | * link to change password is available for edited user. | + | |
- | + | ||
- | <note tip> | + | |
- | + | ||
- | <note tip> | + | |
- | + | ||
- | ==== Add or change user roles ==== | + | |
- | + | ||
- | New roles can be requested for newly added user. If user is edited, then assigned roles are shown with button to change assigned roles by role request. | + | |
- | + | ||
- | Identity roles are assigned asynchronously, | + | |
- | + | ||
- | <note tip> | + | |
===== Configuration ===== | ===== Configuration ===== | ||
Line 122: | Line 50: | ||
==== Authorization policies ==== | ==== Authorization policies ==== | ||
- | |||
- | Default settings of [[..: | ||
=== Administrator === | === Administrator === | ||
Line 129: | Line 55: | ||
Aministrator for create, edit and delete configured form projection. | Aministrator for create, edit and delete configured form projection. | ||
- | Administrator - configure projection + eav formdefinition | + | * Permission to autocomplete and read form definitions: |
- | + | * Permission to autocomplete and read form attributes: Forms - attributes (IdmFormAttribute) | - | FormAttributteByDefinitionEvaluator | |
+ | * Permission to admin form projections: | ||
=== Manager === | === Manager === | ||
Line 137: | Line 63: | ||
Manager for create and edit user with form projection usage with all features enabled. | Manager for create and edit user with form projection usage with all features enabled. | ||
- | User - create user with projection usage + eav + password + identity roles (read, can be requested) + contract | + | <note tip>User detail |
- | security | + | |
- | User - change user type - 'FORMPROJECTION_AUTOCOMPLETE', 'FORMPROJECTION_READ' | + | * Permission to work with identities: Users (IdmIdentity) | View in select box (autocomplete), |
+ | * Permission to read contracts according to identity: Industrial relations (IdmIdentityContract) | - | IdentityContractByIdentityEvaluator | ||
+ | * Permission to read other contract | ||
+ | * Permission to read the assigned identity roles: Roles assigned to users (IdmIdentityRole)| | ||
+ | * Permission to request roles (which can be requested): Role (IdmRole) | Can be requested | RoleCanBeRequestedEvaluator | ||
+ | * Permission to read role requests according to identity: Requests for assigned roles (IdmRoleRequest) | - | RoleRequestByIdentityEvaluator | ||
+ | * Permission to autocomplete form projections: | ||
+ | * Permission to autocomplete form definitions: | ||
+ | * Permission to read and update all identity attributes in main definition: Forms - values (IdmIdentityFormValue) | View in select box (autocomplete) | IdentityFormValueEvaluator | ||
+ | * Permission to read and update all contract attributes in main definition: Forms - values (IdmIdentityContractFormValue) | View in select box (autocomplete) | IdentityContractFormValueEvaluator | ||
+ | * Permission to read codelist | ||
+ | * Enabling the autocomplete for entities: | ||
+ | * Role (IdmRole) | Displaying in autocomplete, | ||
+ | * Structure types (IdmTreeType) | View in select box (autocomplete) | BasePermissionEvaluator | ||
+ | * Tree nodes (IdmTreeNode) | View in select box (autocomplete) | BasePermissionEvaluator | ||
+ | * Accounts (AccAccount) | - | ReadAccountByIdentityEvaluator (← use this only when using acc module) | ||
+ | * Identity accounts (AccIdentityAccount) | - | IdentityAccountByAccountEvaluator (← use this only when using acc module) | ||
+ | * Code lists (IdmCodeList) | Displaying in autocomplete, | ||
+ | * Code lists - items (IdmCodeListItem) | Displaying in autocomplete, | ||
+ | |||
+ | === Manager - create and edit identity only === | ||
+ | |||
+ | Manager for create and edit user with form projection usage only (simplest setting). | ||
+ | |||
+ | * Permission to work with identities: Users (IdmIdentity) | Create, Read, Update | BasePermissionEvaluator | ||
+ | * Permission to autocomplete form projections: | ||
=== Normal user === | === Normal user === | ||
Line 149: | Line 100: | ||
==== Localization ==== | ==== Localization ==== | ||
+ | Two projections are [[..: | ||
+ | Localization can be added or changed by developer, read more in [[..: | ||
==== Tips ==== | ==== Tips ==== | ||
Line 156: | Line 109: | ||
If we want to show user detail immediatelly (skip user dasboard or skip info card), we can hold '' | If we want to show user detail immediatelly (skip user dasboard or skip info card), we can hold '' | ||
+ | |||
+ | === Validations | ||
+ | |||
+ | Validations for basic user personal data and contracts can be defined. Validations are evaluated in whole application even on standard user and contract details for user in given projection. | ||
+ | |||
+ | ===== Admin tutorials ===== | ||
+ | * [[tutorial: | ||
+ | |||
+ | ===== Devel guide ===== | ||
+ | * [[..: | ||
- | TODO: | ||
- | * how to add projection (devel + override + localization) | ||
- | * split to developer guide / admin tutorial? |