- Issue created by @mlncn
- πΊπΈUnited States partdigital
Hi mlncn!
This kind of functionality has come up a few times in slightly different versions. You can see these issues here:
- https://www.drupal.org/project/access_policy/issues/3402529 π Taxonomy access policy for terms with depth only works when parent terms are included Active
- https://www.drupal.org/project/access_policy/issues/3410624 π¬ Many groups to many users Active
I think one of the biggest issues we're are running into is that Taxonomy terms are a bit of a misfit for creating groups of users. They are great for categorizing content but miss some workflow features for handling users.
I had been considering a few approaches for this. The one that I like the most is a kind of "Access Policy Group" module. However, that is also the most work.
- It would be a new "Group" content entity type.
- It would very simple and share a lot of features with Taxonomy terms such as nesting and weights. It's essentially just another entity that access policy can talk to.
- You use it by adding entity reference fields to the Node and User like with taxonomy terms.
- The group would come with some operations like Manage members, Add member etc. These essentially are just forms for setting field values on the user.
- The Access Policy Group module would ship with its own access rules so in that way it can be more more prescriptive than taxonomy terms.
- The access part of this would already be mostly handled by access policy. This would primarily be a module with workflow enhancements.
A new Group content entity type would clear the runway for features more geared to user enrollment.
On a related note; I'm currently working on making operations (view, edit, delete) pluggable. So with an "Access Policy Group" module we could also add operations like "Add member" and it would easily integrate with access policy. In fact, each operation is context aware so it will only show operations that are applicable to their respective entity type.
What do you think?
- πΊπΈUnited States partdigital
I've opened a discussion thread around groups, I've received a few related requests so I thought it might be useful to consolidate ideas into something cohesive.
https://www.drupal.org/project/access_policy/issues/3419012 π± Discussion: Access policy group enhancements Active
- Status changed to Postponed
10 months ago 11:49am 3 February 2024