Automatic roles - adding role by node in structure
idm.sec.extras.processor.contract-position-set-eav-processor.enabled=true idm.sec.extras.processor.identity-contract-set-eavs-processor.enabled=true idm.sec.extras.processor.tree-node-update-eav-trees-processor.enabled=true
As we need to set some automatic roles by its place in the structure we will create two new form properties. In these properties will be held names of nodes where the contract is positioned or for the second property what are his parents. Follow this tutorial to set this feature up.
Preparation
These few steps are needed before we start using this feature
1) Extras module
2) Configuration of names
Now we need to move to Settings → Configuration and there are these properties. Provide name by your choice. In the example below you can see these properties:
module.extras.processor.set-node-to-eav - to this property we write all nodes where contract is positioned
module.extras.processor.set-structure-to-eav - to this property, we write all nodes and their parents where the contract is positioned
3) Set automatic role
Now we need to set an automatic role. Move to Roles → Automatic roles → Based on the attribute. Now follow the pictures.