Permissions on deployment-prep enwiki seem to be inconsistent between index.php and api.php. I made myself a bureaucrat via createAndPromote.php so I’d be able to make my colleagues sysops (for testing things):
lucaswerkmeister-wmde@deployment-deploy01:~$ mwscript createAndPromote.php enwiki 'Lucas Werkmeister (WMDE)' --force --custom-groups=bureaucrat # make myself bureaucrat to make colleagues sysops enwiki: Promoting User:Lucas Werkmeister (WMDE) into bureaucrat... done.
Mentioned in SAL (#wikimedia-releng) [2020-01-31T11:47:05Z] <Lucas_WMDE> lucaswerkmeister-wmde@deployment-deploy01:~$ mwscript createAndPromote.php enwiki 'Lucas Werkmeister (WMDE)' --force --custom-groups=bureaucrat # make myself bureaucrat to make colleagues sysops
But Special:UserRights/Lucas Werkmeister (WMDE) doesn’t show the group:
Member of: Confirmed users, Administrators
Implicit member of: Autoconfirmed users
I ran the script again (with the --bureaucrat option, which I found in the --help, rather than --custom-groups=bureaucrat, just in case it made a difference), but it reported nothing to do:
lucaswerkmeister-wmde@deployment-deploy01:~$ mwscript createAndPromote.php enwiki 'Lucas Werkmeister (WMDE)' --force --bureaucrat # make myself bureaucrat to make colleagues sysops Account exists and nothing to do.
Special:UserRights/Michael Große (WMDE) showed that I was not allowed to edit their membership in the administrators group; however, I was able to sysop them via the API:
The resulting group membership change was logged, but Special:UserRights doesn’t show the group (even though it shows the log entry).
They are also able to perform administrative actions such as protecting a page, but only through the API – normal page views continue to look like those for unprivileged users.