How to get the user group of all site's users 99 PostsSimonD 7 years ago5TopicHello,I would like to test a field against the usergroup of each user.But I find it diffucult to get the usergroup.It is a bit diffucult for me because it seems that there are 3 tables involved: #__users, #__user_usergroup_map, #__usergroupsThank you for your help 1283 PostsBucklash 7 years ago1Level 1#__...map is the one that matches the user with the group. What is the context of your test... ? 99 PostsSimonD 7 years ago0Level 2Hello Bucklash,Thank you for your reply.I would like to send email notification to a user but only if he belongs to a specific usergroup.Regards 4229 PostsKadministrator 7 years ago2Level 1Hi,this a thing for Joomla API, you can use Access::getGroupsByUser($userId, $recursive = true). 99 PostsSimonD 7 years ago1Level 2Hello Klas,Thank you for your reply.I suppose I have to use Code pack plugin insn't it?Regards 4229 PostsKadministrator 7 years ago0Level 3Hi, yes.