Skip to Content Skip to Menu

Admin user, filter user list by users custom field value

  • razor7
  • razor7
  • ONLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 0
5 hours 8 minutes 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: 49195
  • Thanks: 8407
  • Karma: 1461
2 hours 29 minutes 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.

Moderators: beatnantkrileon
Powered by Kunena Forum