loadModule(); // Get instance of authentication and authorization class $authorization = App::Get()->getAuthorizationProvider(); $authentication = App::Get()->getAuthenticationProvider(); if ( $authorization != false) { $groups = $authorization->retrieveGroupsForUser($authentication->getCurrentUsername(),App::Get()->settings['authorization_ldap_group_dn']); } ?>