Skip to Content Skip to Menu

Admin user, filter user list by users custom field value

  • razor7
  • razor7
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
1 month 3 weeks ago #341177 by razor7
Hi! In my project I'm setting a Overseer custom field for the user data, that custom field is a single option select, lets say Department 1, Department 2, etc. I've created a user group, child of Registered that can access the admin area like this:
Pulic
 - Registered
   - Overseers (can access admin area)

Is it possible to create an Overseer user that can only list CB users in the backend assigned to him? I mean, only users that have the custom Overseer field filled with his department.

Thanks a lot!

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49333
  • Thanks: 8438
  • Karma: 1465
1 month 3 weeks ago #341183 by krileon
No, you'd have to use ACL for that. Users can't edit users that are above them or in different parent usergroups. Example as follows.

Public
- - Registered
- - - - Department 1
- - - - - - Overseers
- - - - Department 2
- - - - - - Overseers

With the above Overseers could only edit users in their respective departments. It is possible to block access to the profile edit pages (frontend and backend) to a degree using CB Auto Actions based off field data, but it won't block the visibility.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • razor7
  • razor7
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
1 month 2 weeks ago #341194 by razor7
Ok so should I solve this requirement with joomla ACL alone ¿right?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49333
  • Thanks: 8438
  • Karma: 1465
1 month 2 weeks ago #341206 by krileon
In a limited way yes it will be solved. We don't officially have support for assigning users to moderator other users so at this time that's the only way to control access. In CB 3.0 we'll be reviewing moderator assignment.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • razor7
  • razor7
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
1 month 2 weeks ago - 1 month 2 weeks ago #341253 by razor7
Hi! following this thread, I wonder if it's possible to develop a custom plugin that displays this user list in the backend, I'm a programmer so if you point me to the right docs maybe I can develop such strange requirement.

I guess that if I can filter the user list based on the current admin user group assigned to the logged in admin user, I can filter the SQL statement to display the users assigned to that value in the custom field I added so CB users with Overseer 1 as value in the custom overseer field should be visible to the admin users assigned to the Overseer joomla user group.

Thanks in advise!
Last edit: 1 month 2 weeks ago by razor7.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49333
  • Thanks: 8438
  • Karma: 1465
1 month 2 weeks ago #341256 by krileon
It'd probably be easier to modify the backend user management via plugin than try to render frontend userlist in backend. You'd have to review existing plugins to see how XML structures are extended to do this as it's possibly to completely modify the query responsible for rendering user management.

We don't have any documentation for this at this time and unfortunately we don't provide this level of assistance for non-subscribers except for 3rd party extension developer integrations, sorry.

With that said as mentioned above the below ACL structure should ideally work fine.

Public
- - Registered
- - - - Team 1
- - - - - - Captain 1
- - - - Team 2
- - - - - - Captain 2

In this case be sure users are in Team 1 or Team 2 and do not have the Registered usergroup. This should permit Captain 1 to only edit Team 1 and Captain 2 to only edit Team 2. It might be possible for us to adjust things so it also filters the user management based off this, but if I recall correctly it already should only show users you can edit. If not that might be a bug.

This however requires ACL usage. So depending on how many teams you have it could bloat Joomla's ACL as it doesn't work with fields specifically.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: razor7

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum