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']); } ?>

getCurrentUsername() ?>'s Groups


0) { echo "
"; foreach ($groups as $g) { List($group, $role) = explode("_", $g); if( $group != $groupIndex ) { echo ""; echo "
"; echo "

{$group}

"; echo "
      "; $groupIndex = $group; } echo "
    • "; echo $role; echo "
    • "; echo "
      "; } echo "
"; } else{ echo "

No Groups found!

"; } ?>