Extension:UserPageEditProtection

The UserPageEditProtection extension will restrict edit access to user pages to the owner of the page (user) and users assigned to groups that have been given user page edit access through $wgGroupPermissions. This effectively provides users with a group of protected pages since this protection also extends to any subpages of the user page (i.e., User:Hoggwild/sandbox1). The User pages can be read by any user assigned to a group with view rights to user pages, but can only be edited by authorized users.

This extension has no effect on user talk pages.

Configuration
This extension comes with an extra user right called "editalluserpages" to allow fine grained control. By default it is assigned to the "sysop" user group. In case you would like to assign it to another user group e.g. "userpageeditor", add the following code to you "LocalSettings.php" file right after invoking this extension:

Revoking the permission for the "sysop" user group may be done by adding the following line: