Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
devel:documentation:identities [2019/04/10 07:50]
kopro [Admin guide]
devel:documentation:identities [2020/03/26 09:50] (current)
tomiskar [Admin guide]
Line 1: Line 1:
-<- .:start | Documentation ^ .:start | Documentation ^ .:roles Roles ->+<- .:start | Documentation ^ .:start | Documentation ^ .:contracts Contracts ->
 ====== Identities (users) ====== ====== Identities (users) ======
-In identity management an identity is a set of informations that describes a real person. Some of the information like First Name, Last Name, Login or Password are crucial for many IT systems, since they process them, or e.g. use them for authentication or authorization. Identity management systems process the data about identity, transform them and use them to manage accounts on connected systems.+In identity managementidentity is a set of information that describes a real person. Some of the information like First Name, Last Name, Login or Password is crucial for many IT systems, since they process them, or e.g. use them for authentication or authorization. Identity management systems process the data about identity, transform them and use them to manage accounts on connected systems.
  
 {{ :devel:documentation:identity.png?400 | Identity in identity management}} {{ :devel:documentation:identity.png?400 | Identity in identity management}}
  
-The representation of a user in CzechIdM system is an entity called **identity**. Put simply, an identity can be described as a user registered in CzechIdM with all his attributes e.g. first name, surname, phone number, etc. The identity representation is rather complex discipline. To be able to handle automatic identity lifecycle processes CzechIdM presents other entities with attributes that have a relation to an identity. Those are **[[.:identities#contracts|Contracts]], [[.:roles|Roles]]**  and **Tree nodes** forming **[[.:tree_structures| Tree strucures]]**.+The representation of a user in the CzechIdM system is an entity called **identity**. Put simply, an identity can be described as a user registered in CzechIdM with all his or her attributes e.g. first name, surname, phone number, etc. Identity representation is rather complex discipline. To be able to handle automatic identity lifecycle processesCzechIdM uses other entities with attributes that have a relation to identity. Those are **[[.:contracts|Contracts]], [[.:roles|Roles]]**  and **Tree nodes** forming **[[.:tree_structures| Tree strucures]]**.
  
 {{ :devel:adm:idm_entities.png?800 | Entities relations}} {{ :devel:adm:idm_entities.png?800 | Entities relations}}
  
-===== Contracts =====+===== Password =====
  
-The relation of identities in CzechIdM with a company or organization is represented by an entity called **contract**A contract can be imagined as: +In CzechIdM, the user password is stored in the Bcrypt hash functionUser can change password only when he or she has permission ''IDENTITY\_PASSWORDCHANGE'' for the given identity. The password contains also other metadata like "valid till", "valid from", "unsuccessful attempts", "block login date", "last successful login" etc. It is also possible to set flag **Password never expires**. This flag disables filling 'valid till''Password never expires' and other attributes related to password like 'valid till' can be set via agenda information about password that is accessible through identity detail or password agendaTo update these attributes you will need permission ''PASSWORD\_UPDATE'' and ''PASSWORD\_READ''.
-  * **job contract** for work – employees +
-  * **study** – pupils/students +
-  * **contract/arrangement** – external co-workers +
-  * etc. +
-A user can have many contractsA contract is in relation with other objects in CzechIdM: +
-  * **Identity** – described above +
-  * **Tree structure** – contract can be added to tree (organizational) structure, which effectively allows integrating the user into a hierarchical division in an organization. +
-  * **Roles** – roles in CzechIdM are assigned to contracts, i.e. a user gets roles through their contractsDue to this, all manually created identities can (application option) have one automatically prepared contract called **Default**.+
  
-<note important>Every active user should have their contract. Via contracts Roles are assigned to users and users are placed into Tree structure (working position)</note> 
- 
-===== Identity state ===== 
- 
-Identity life cycle is controlled by state. State is changed automatically by system - when identity is created, contract to identity is added or removed etc. 
- 
-Identity states: 
-  * **created** - identity is enabled. State is assigned to newly created identity. 
-  * **no contract** - identity is disabled. Identity doesn't have a contract. All contract were deleted.  
-  * **future contract** - identity is disabled. Identity has valid contract in the future, but not now. 
-  * **valid** - identity is enabled. Identity has valid contract. 
-  * **left** - identity is disabled. Identity has invalid contracts only. 
-  * **disabled** - identity is disabled. Identity contracts are excluded (assigned roles are not removed, when identity is excluded).  
-  * **disabled manually** - identity is disabled manually, e.g. by administrator / synchronization. Manually disabled identity can be enabled manually only again (assigned roles are not removed, when identity is disabled manually).  
- 
-When identity starts to be valid (some of their contract starts to be valid) and identity has account at least on one target system, then new password is [[.architecture:dev:events#identitysetpasswordprocessor|generated]] and changed on all identity's accounts => identity will have the same password in all accounts. Notification (see ''acc:newPasswordAllSystems'' template) is send to identity about new password on which accounts were changed. 
- 
-====== Time slices of contracts ====== 
-{{tag>contract slice}} 
- 
-On many projects, we encounter a source of data about users, employees or org. structures that work with so-called time slices. For better works with this time slots, agenda of contract's time slices was created. 
- 
-**The basic idea** is that time slices are stored in a self-contained agenda. This agenda only contains time slices for identity contracts. If a given slice is currently valid, its values will be **copied into the linked identity contract**. **Every day** a scheduled task is performed, which calculates whether another slice is valid. Such a slice becomes currently used as a contract (its values are copied into the contract). 
- 
-<note important>In one day can exists only **one slice** for one contract. Every slice must contains all data of the contract. Slice is **snapshot** of the contract! </note> 
- 
-**More information** about contract time slices you can find in the develop guide [[..:documentation:identities:dev:contractual-relationship-slice|here]] . 
- 
-==== Protection of the contract validity ==== 
-{{tag>contract slice protection}} 
- 
-Sometimes there may be a situation where one of the time slices **ends** the contract, and at the same time there is a next time slice that **restarts** this contract. If there is no gap between termination and restart, then the contract will not terminate (no accounts will be deleted). If the dates do not follow, then (by default) will be **contract terminated** and all connected **accounts will be removed** from the target systems. 
- 
-However, in some situations (projects), it is required to use the **protection period** for which the contract will **not be terminated**, provided that there is a next slice in the contract, which restarts the contract. Furthermore must be ensured that the gap between the termination and the beginning of the contract is less than or equal to the protection interval. 
- 
-**More information** about this protection you can find in the develop guide [[..:documentation:identities:dev:contractual-relationship-slice#protection_of_the_contract_validity|here]] . 
 ====== Read more ====== ====== Read more ======
  
Line 62: Line 18:
   * [[tutorial:adm:new_identity|Creating a new identity manually]]   * [[tutorial:adm:new_identity|Creating a new identity manually]]
   * [[tutorial:adm:how_to_identity_sync|Synchronizing identities from a source system - example]]   * [[tutorial:adm:how_to_identity_sync|Synchronizing identities from a source system - example]]
-  * [[tutorial:adm:new_contract|Creating a new contract manually]] 
-  * [[tutorial:adm:how_to_contract_sync|Synchronizing contracts from a source system - example]] 
  
 ===== Admin guide ===== ===== Admin guide =====
   * [[.identities:adm:users|Identity life cycle (ILC)]]   * [[.identities:adm:users|Identity life cycle (ILC)]]
-  * [[.adm:contracts|Time slices of contractual relationships]]  +  * [[.identities:adm:password|Password and identity]] 
-  * [[devel:documentation:identities:adm:password|Password and identity]] +  * [[.identities:adm:identity_states|Identity states]] 
 +  * [[.identities:adm:user_setting|User setting]] 
 +  * [[.identities:adm:user-type]]
  
-===== Devel guide ===== 
-  * [[..:documentation:identities:dev:contractual-relationship]] 
-  * [[..:documentation:identities:dev:contractual-relationship-slice]] 
  • by kopro