Linking OI entities to access control roles
| Project: | Organizational Infrastructure |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
In our drupal environment the OI entities module would be ideal if an OI entity could be linked to one or more access control roles. Then any user that was a member of the OI entity would also have the access control roles of that entity.
This would save a lot of effort on user management for our site.
At the moment our site is set up such that there are restricted nodes whose access is controlled using the taxonomy access control module. In principle all staff belonging to organisation (or maybe department) should have access to the same content on our website.
Currently we have to manually assign roles to individual user accounts and for staff at the same organisation we have to be sure we assign them all to the same roles so they get the same access rights. It would be much simpler to just assign users to OI entities and they automatically obtain the correct access rights via Drupal core's access control roles.
In my examination of the OI entities module I don't think it can do this at the moment. Its notion of roles is not linked to the access control roles.
Would be interested in the module maintainers opinion of how difficult it would be to do this. I'm proficient with PHP but have only had a few glances at the Drupal API; if the feature can be added to OI entities with little pain then I could assist.

#1
I too would like to see this feature implemented, but I know that Drupal roles are really tricky.
Any ideas about this pukku?
#2
I would like to see this for 5.x also
#3
The module will be very usesfull for handling complex organisations.
I think that could be very usesful if you can create both:
1. A specific user role that control the access using OI. In addition could be good to have a default set of entities to be asigned to new users with OI role.
2. To allow select in the entities and roles in the entities some Drupal roles that will be asigned or removal automatically to the users in certain entities/entity roles.
The possibility 1. will allow automatic asignation of users to OI, for instead when imported from a file, created by intivation, etc. The selection will be only include this OI role to be assigned to new users. The default set of entities could be good if we consider for instead the importation of a organisation with several members.
The second one could be usesful to use the OI module to reflect the organisational changes updating automatically the role based permissions used int eh site. Please consider that the roles are the base for a lot of other modules as node access, workflow, etc. that probably could be difficult to coordinate with OI.