Extension:PluggableAuth/PluggableAuthPopulateGroups

From MediaWiki.org
Jump to navigation Jump to search
PluggableAuth/PluggableAuthPopulateGroups
Available from version 5.1
called to populate a user's MediaWiki groups from an external provider
Define function:
public static function onPluggableAuth_PluggableAuthPopulateGroups( User $user ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"PluggableAuth/PluggableAuthPopulateGroups": "MyExtensionHooks::onPluggableAuthPluggableAuthPopulateGroups"
	}
}

For MediaWiki ≤1.25:

$wgHooks['PluggableAuth/PluggableAuthPopulateGroups'][] = 'MyExtensionHooks::onPluggableAuthPluggableAuthPopulateGroups';
Called from:File(s): PluggableAuth extension

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

Details[edit]

  • User $user: the User object