Hello!
i need to fetch all system users which have a specific role. ( to send an email to that users )
is there a way to do this within the sugar functions?
one idea is:
--> select all users directly from mysql-table.
--> go through each row and:
----> $tmp_user = new User();
----> $tmp_user->retrieve_user_id(UIDOFCURRENTROW)
----> $tmp_user->check_role_membership("ROLENAME")
But maybe there is already a method for retrieving all users that belong to a specific role within the sugarcrm framework. ??
any ideas?


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks