Manual:Hooks/UserPrivilegedGroups

Details

 * : User identity to get groups for
 * Current privileged groups, to be altered by the hook