I want to maintain a following hierarchical structure for different user.How can I do that?
If any extension is available then let me know.
2 Answers
CiviCRM is pretty egalitarian - they are all just Individuals.
There are various ways you could model this which depends to some extent on what you want to do based on that data.
One option is Relationships - eg create a Manager/Managee relationship and create relationships for all the places where you have lines. If you want to record a level in the hierarchy you could use a custom field.
If you want to use those relationships to control access (so that eg Line Manager1 can see only P1, P2, P3) then have a look at the Relationship Permissions ACL extension
-
In my scenario only LM1 can see the information of P1, P2, P3 and B1.Not the other record. Currently everyone can see the all data. I want such a kind of restriction. How can I achieve that ? Commented Nov 16, 2018 at 7:05
-
Both Aidan and I have provided you with information on how to do this. For us to provide more help you probably need to explain how you have applied our suggestions.– petednz - fuzion ♦Commented Nov 16, 2018 at 19:29
I agree with Aidan.
However if you go for Related Permissions approach I would suggest you introduce a concept between LM1 and P1, P2 and P3. eg i would create a Practitioner Group as an Org. So you would then connect
LM1 to PG1
PG1 to P1, P2 and P3.
The reason is so that if LM1 leaves and you need to bring in LM1b in to the story then all you need to do is break the relationship between LM1 and PG1 and create one for LM1b to PG1.
You then turn on 'second degree permissions' and that ensures that LM1 can only see all those daisy-chained contacts via PG1.
Hard to explain - easier to draw but hopefully you get the idea.
-
-
By the way, is it possible such kind of hierarchical structure? Commented Nov 16, 2018 at 6:59
-
Good point Pete - certainly makes it easier to update later despite looking a little more complex to set up initially.– Aidan ♦Commented Nov 16, 2018 at 10:15
-
Re 'second degree permissions' see the link in my previous answer– Aidan ♦Commented Nov 16, 2018 at 10:16
-