I'm trying to write a bot to update UID/GID mapping page. [Insert long mumble on how horrible mediawiki API is]. I've gotten all the basic bits working but the actual edit fails with: {'error': {'code': 'protectednamespace', 'info': 'You do not have permission to edit pages in the Project namespace.', '*': 'See https://wiki.gentoo.org/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.'}} Apparently, the problem is that the page is in Project: namespace which requires special permissions to edit. This permission is granted to developers but it's impossible to grant it to bots. After some searching, I think $wgGrantPermissions may be relevant [1]. [1] https://www.mediawiki.org/wiki/Manual:$wgGrantPermissions