Best practice forum (Archived)

Custom Mod to Browse List of Users Page

 
John Unnever
Custom Mod to Browse List of Users Page
par John Unnever, Tuesday 8 September 2015, 12:15
Groupe Partners

Hi there!

So i have a question about the 'Browse list of Users' page.   We have loaded a bunch of users into our system with multiple organization hierarchies.  The users have custom profile fields as well.   Has anyone been into the code enough to know if there is a way to modify it so that the user list only shows users from the same organization of the user that is logged in and browsing the list of users?  

I imagine there is essentially a query running that selects * from mdl_users..  i'd like to just modify it some how so that it grabs a custom profile field element of the current logged in user (for example: AgencyID = Agency1) then have the browse list of users page only show users that also have an AgencyID = Agency1.