Page MenuHomePhabricator

API should allow change of userrights using user id
Closed, ResolvedPublic

Description

Please allow changing userrights by userid, not username. (action=userrights)

Thanks.


Version: 1.20.x
Severity: enhancement

Details

Reference
bz32493

Event Timeline

bzimport raised the priority of this task from to Low.
bzimport set Reference to bz32493.
bzimport added a subscriber: Unknown Object (MLST).

If you set the 'username' field as "#1111" where 1111 is the user id, it'll work.

Change 101502 had a related patch set uploaded by Legoktm:
Explicitly support user id in action=userrights

https://gerrit.wikimedia.org/r/101502

(In reply to comment #1)

But I imagine the request here is to add a userid parameter to action=userrights, which you seem to have understood. ;-)

(In reply to comment #1)

If you set the 'username' field as "#1111" where 1111 is the user id, it'll
work.

Than this needs documentation for the parameter on api.php
It is a possible way to avoid a new parameter.

(In reply to comment #4)

Than this needs documentation for the parameter on api.php
It is a possible way to avoid a new parameter.

It probably makes more sense to deprecate the "#<userid>" trick, maybe.

Change merged. It should be deployed with 1.23wmf8, see https://www.mediawiki.org/wiki/MediaWiki_1.23/Roadmap for the schedule.

Change 101502 merged by jenkins-bot:
Explicitly support user id in action=userrights

https://gerrit.wikimedia.org/r/101502