Extension:PluggableAuth/Hooks/PluggableAuthPopulateGroups

PluggableAuthPopulateGroups
Available from version 5.1 (Gerrit change 443768)
called to populate a user's MediaWiki groups from an external provider
Define function:
public static function onPluggableAuthPopulateGroups( User $user ) { ... }
Attach hook:
$wgHooks['PluggableAuthPopulateGroups'][] = 'MyExtensionHooks::onPluggableAuthPopulateGroups';
Called from:File(s): PluggableAuth / includes/PluggableAuthHooks.php, includes/PluggableAuthLogin.php

For more information about attaching hooks, see Manual:Hooks.
For examples of other extensions using this hook, see Category:PluggableAuthPopulateGroups extensions.

DetailsEdit

  • User $user: the User object