Joomla – get user groups programmatically

The following code illustrates how to access groups an user is subscribed with Joomla ACL. Groups ids are returned in an array

To test the code, do not forget to lougout and login again should you have modified the user group from the back-end

user-groups2

Facebooktwitterredditpinterestlinkedinmail