1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Add-on User Group Permissions Manager

Discussion in 'Resource and Add-on Requests' started by Floyd R Turbo, Jul 19, 2014.

  1. Floyd R Turbo

    Floyd R Turbo Well-Known Member

    I use an excel spreadsheet that is full of formulas and conditional statements to provide me an at-a-glance view of all the permissions that I have set for all my usergroups. In my particular instance, all of my usergroups are stacked, meaning that if I have usergroup A B C D E, then users in group D are also part of group A B C. So my spreadsheet works for me, but it would not work right if users in group D were not in either B or C or both. I suppose I could make that work but it would get complicated and I don't need that.

    But the idea got me thinking of an addon that would be *very* useful for managing permissions across multiple usergroups.

    What I am thinking of is an add-on that would allow me to see all the user group permissions in side-by-side columns on the same page, instead of looking at them one page at a time. If this is difficult to visualize, I have attached a copy of my spreadsheet - it's not the exact one but it gives you an idea.

    So this add-on would be able to do a few things. First of all, it would be interactive, meaning it would let you "test" certain permissions combinations (without actually setting them), but would give you the option to set them, both individually and as a whole, and also to "revert" your selections back to the current setting, again both individually and as a whole. You would also be able to check a box for each user group which would allow you to select which usergroup permissions settings would be included in the calculation.

    Here is a cut & pasted together example of what it might look like, for simplicity, only 3 user groups are shown (and the "result" column does not show what the result would actually look like, it is just a cut/paste of the last column)


    The REVERT check box should be a button. Too tired to re-do it.

    I included the display styling priority also, in this case, one might be able to adjust these, save all, then reload the page to reorder the priority (or maybe this is automatically figured in when you click "calculate")

    Not sure how "possible" this would be to do within XF ACP in a situation where someone had a large number of user groups defined. But I know that you can export and import user group permissions, so this might be something that would only be able to be done with a stand-alone program or a separate script.

    So what do you addon writer think - is this possible?

    Attached Files:

  2. Aayush

    Aayush Well-Known Member

    This is possible but it might cause issues with people having tons of user groups.
  3. Floyd R Turbo

    Floyd R Turbo Well-Known Member

    I think it would solve more issues than it would cause, otherwise I don't think it would be worth it.

    I would venture to guess that most people who are familiar with forum administration or have a decent amount of experience would not really have a heavy need for such a tool, because they would have probably done what I have done, maybe on paper or via a series of permissions testing.

    This is really a more useful tool for people who are a bit newer and might not have a firm grasp on permissions and how they work in XF. It's almost more of a training tool than anything else but could be used to vet out a particular permission setting that is not working as intended.

    It would also come in extremely useful in a situation where a user was part of A and E but not B C and D, so permissions set in B C and D would not apply or be inherited.

    This could become the case where someone was removed from a particular group for one reason or another, and this might have an adverse or unintended consequence. Such a tool would allow the admin to forsee potential problems with various promotions or demotions.
  4. Aayush

    Aayush Well-Known Member

    I totally agree with you on this. I had lots of problems going back and forth while adding new permissions for various user groups when I was setting up my forum. It could be something a forum owner installs when setting up his forum.
  5. Main Company

    Main Company Active Member

    I would absolutely LOVE LOVE LOVE this. Keeping track of all of my user groups is crazy.
  6. Floyd R Turbo

    Floyd R Turbo Well-Known Member

    Yup...I still use my spreadsheet which works pretty good, but would be really nice to have an addon to take care of it in ACP
  7. Lemminator

    Lemminator Well-Known Member

    is this an add-on ?
  8. Floyd R Turbo

    Floyd R Turbo Well-Known Member

    This thread is in the Resource and Add-on Requests sub-forum, so, no. Please "like" the OP if you would like to see this as an addon
  9. iamjudd

    iamjudd Active Member

    I would really love to have something like this!
  10. a.tushkanov

    a.tushkanov Active Member

  11. Floyd R Turbo

    Floyd R Turbo Well-Known Member

    Not quite. That one changes node permissions, I'm mainly interested in the main user group permissions
  12. squirrly

    squirrly Active Member

    Agreed; this would be fantastic. We have SO MANY usergroups that it is incredibly difficult to manage.
  13. Xon

    Xon Well-Known Member

    What I really wish is for proper hierarchical groups.

    That is, you make User Z a member of group C, and Group C itself is a member of group A & Group B. That User Z automatically pickup membership of Group A & group B.

    This would simplify management a bit, as you would only deal with leaf 'role' groups and not directly with 'rights' groups.
  14. Floyd R Turbo

    Floyd R Turbo Well-Known Member

    You can do that with a automated User Group Promotion.
  15. Xon

    Xon Well-Known Member

    If you want at least one User Group Promotion per membership relation. That would get unmanageable really fast.

Share This Page