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( UserIdentity $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.

Details edit

  • UserIdentity $user: the user being authenticated