Telehealth solutions are important for the healthcare industry as the adoption of new technologies increases relevance in the market and …
Custom Permission Access Module For Multi-Level Organization
When implementing the constituent relationship management solution for one of the biggest political organizations, we had to find a way to tailor the CiviCRM security model to the needs of a country-wide hierarchically structured organization.
Any multi-unit public organization with geographically distributed branches is set up with several levels of management, hierarchically structured units and roles. In our case there were four levels of hierarchy – the central office located in the capital, which manages the entire organization in 25 regions further divided into 12 to 30 districts each and finally the lowest level branches in every village or small town. Such structure presupposes allocation of responsibilities and access hierarchically within a district, region or entire country.
CiviCRM allows building the multi-level organization structure using Relationships. Also CiviCRM by default provides very flexible role based access control which could be implemented through ACLs while permission control for multi-level orgstructure is hardly supported. An access level to CRM data differs by roles not by units. Yet NGOs with geographically distributed branches allocate functions and responsibilities by units. Branch, district and regional offices exercise different level of control over an organization and require either extended or restricted access to data.
Agiliway team buckled down to work, determined to implement orgstructure based access control.
Before long we’ve built Custom Security Module to add necessary functionality. Based on the Related Permission Extension that had been heavily modified to work seamlessly across multi-level hierarchy, our Custom Security Module ensures multi-level permission control for our client. Each staff member is now given as much access to CRM data as their functions within a certain unit require.
The central office of the political organization coordinates activities of all units and requires an unrestricted access for managerial positions, while an extended access for workplace officers.
The district or regional office manager will have access to the information for their branch as well as for all subordinate branches that report to them. So the access narrows down for branch offices and further down for every hierarchically lower unit.
And regular office staff will now see CRM data only within their organization whatever level it is.
As illustrated above, members of the district-level organization view each other’s general information but do not have permissions to access the information of other members of the central office (above) or of the subordinate towns/villages (below).
The head of the regional-level organization can manage the information of all members of his regional organization and below including all subordinate districts and towns, but he does not see the information of the members of the central office (above) or other regions.
The solution also supports cases when a user is a member of two organizations – e.g. manager in one organization and a regular member in another one. Then, permissions are combined.
When implemented, our Custom Security Module enables CiviCRM users to:
- setup Roles (admin, manager, regular member) for each user which define access permissions to different areas of information
- allow access only to a specified organization(branch/unit) the user belongs to. It’s defined through CiviCRM Relationship between a user and corresponding organization
- extend access to all subordinate organizations for selected Roles (e.g. Administrator or Manager). The relationship between organizations is defined through CiviCRM Relationship
- grant/recall access only to a specific organisation. E.g. when a branch is reassigned from one District to another (this could be done updating CiviCRM Relationship record) then a manager of the first district loses access to the branch data while the second district manager is granted it automatically
In our project we had 4-level organization and 3 main roles as shown in the pictures above. Yet the security solution is built to support any number of levels in the organization structure.
READ ALSO: All in One CiviCRM
Be the first to find out about new Agiliway articles
Subscribe for our newsletter
Our recent news
Digital marketing companies often face the need to efficiently handle the workload process. Whether B2B or B2C, using smart software …