Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| devel:documentation:roles:adm:copying-deduplicating-roles [2019/03/19 08:02] – language and formatting edit kotisovam | devel:documentation:roles:adm:copying-deduplicating-roles [2019/03/20 16:19] (current) – duplicated, removing poulm | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Copying and deduplicating assigned roles ====== | ||
| - | |||
| - | In this section, we describe in more detail what it entails to copy assigned roles, and to deduplicate assigned roles. | ||
| - | |||
| - | < | ||
| - | |||
| - | ==== Copying assigned roles from one user to another ==== | ||
| - | ==== Cloning roles (e.g. to be used in a different environment) ==== | ||
| - | |||
| - | ===== Deduplicating roles (through an identity role bulk action) ===== | ||
| - | |||
| - | Deduplication is a bulk action that is available **on User agenda**. Deduplication allows removing **only manually added roles** that are duplicite with another automatic role or **another manually** added role. | ||
| - | |||
| - | {{ : | ||
| - | |||
| - | <note important> | ||
| - | |||
| - | The deduplication process can be overridden by each project, for specific project equals between roles see [[devel: | ||
| - | |||
| - | Bulk action deduplication has several options that change the manner of checking whether two roles are duplicite. All options that are available: | ||
| - | |||
| - | * Approve - remove roles will process trough workflow process, | ||
| - | * check role attributes - the equals process will checked role attributes and their values. | ||
| - | |||
| - | {{ : | ||
| - | |||
| - | ==== Logic behind role removal ==== | ||
| - | |||
| - | Keep in mind that a bulk action doesn' | ||
| - | * must assign the same role, | ||
| - | * must be on the same identity contract, | ||
| - | * must be automatic and manually, or manually and manually, | ||
| - | * one of roles must be in validity range the second one (please see section with validity comparison), | ||
| - | * must have same role parameters expecting same values. | ||
| - | |||
| - | ==== Comparing validity of two roles ==== | ||
| - | <note important> | ||
| - | |||
| - | We resolve duplicity of two assigned roles by their validity or contract' | ||
| - | |||
| - | === Examples === | ||
| - | |||
| - | In the case two roles are assigned manually and '' | ||
| - | < | ||
| - | B | ||
| - | | ||
| - | < | ||
| - | | ||
| - | | | ||
| - | now | ||
| - | </ | ||
| - | ---- | ||
| - | |||
| - | ---- | ||
| - | When two roles had been assigned manually and both roles have infinite validity, **the role that is more recently** assigned than the other one is removed. | ||
| - | < | ||
| - | B | ||
| - | | ||
| - | < | ||
| - | | ||
| - | | | ||
| - | now | ||
| - | |||
| - | </ | ||
| - | ---- | ||
| - | |||
| - | |||
| - | In the following case, two roles had been assigned manually and '' | ||
| - | < | ||
| - | B | ||
| - | | ||
| - | | ||
| - | | ||
| - | | | ||
| - | now | ||
| - | </ | ||
| - | ---- | ||
| - | |||
| - | |||
| - | When two roles are assigned manually and both have the same validity, **the role that is most recently** assigned is removed. | ||
| - | < | ||
| - | B | ||
| - | |-------------| | ||
| - | A |-------------| | ||
| - | | ||
| - | | | ||
| - | now | ||
| - | </ | ||
| - | ---- | ||
| - | |||
| - | |||
| - | When two roles are assigned manually and **contracts have infinite validity**, no role is removed. | ||
| - | < | ||
| - | |||
| - | | ||
| - | A | ||
| - | | ||
| - | | ||
| - | | | ||
| - | now | ||
| - | </ | ||
| - | ---- | ||
| - | |||
| - | |||
| - | Let's consider another case, two roles had been assigned manually and both the contract and the '' | ||
| - | < | ||
| - | | ||
| - | A | ||
| - | | ||
| - | | ||
| - | | | | ||
| - | | ||
| - | | ||
| - | </ | ||
| - | ---- | ||
| - | |||
| - | Another scenario, '' | ||
| - | < | ||
| - | MAN | ||
| - | AUTO |--------------| | ||
| - | < | ||
| - | __________|______________|____ | ||
| - | | | ||
| - | now | ||
| - | </ | ||
| - | ---- | ||
| - | |||
| - | In this case is '' | ||
| - | < | ||
| - | | ||
| - | AUTO |-----| | ||
| - | |--------| | ||
| - | ______|________|____|_____|__ | ||
| - | | | ||
| - | now | ||
| - | </ | ||
| - | ---- | ||
| - | |||
| - | In this case, '' | ||
| - | |||
| - | < | ||
| - | MAN | ||
| - | | ||
| - | AUTO |-------------------| | ||
| - | _________|______________|____|___ | ||
| - | | | ||
| - | now | ||
| - | </ | ||
| - | ---- | ||
| - | |||
| - | In this case, '' | ||
| - | |||
| - | < | ||
| - | MAN | ||
| - | |-----------------------| | ||
| - | | |--------------| AUTO | ||
| - | ______|________|______________|_______ | ||
| - | | | ||
| - | now | ||
| - | |||
| - | </ | ||
| - | ---- | ||
| - | |||
| - | In this case, '' | ||
| - | < | ||
| - | | ||
| - | < | ||
| - | | ||
| - | ___________|_____|_____________ | ||
| - | | | ||
| - | now | ||
| - | </ | ||
| - | ---- | ||
| - | |||
| - | In this case '' | ||
| - | < | ||
| - | | ||
| - | < | ||
| - | | ||
| - | ___________|_____|_____________ | ||
| - | | | ||
| - | now | ||
| - | |||
| - | </ | ||
| - | ---- | ||