How to create a role that allows creation of users?

How to create a role that allows creation of users?

Diipak Gupta གིས-
Number of replies: 1
I have tried many sets of permissions to create a role that allows creation of users. I gave all permissions to a user, except "Change site configuration" and "Allowed to do everything". Even this role is not able to create users.
དཔྱ་སྙོམས་ཀྱི་སྐུགས་ཚུ།: -
In reply to Diipak Gupta

Re: How to create a role that allows creation of users?

Tim Hunt གིས-
Core developers གི་པར Documentation writers གི་པར Particularly helpful Moodlers གི་པར Peer reviewers གི་པར Plugin developers གི་པར
Moodle 1.9.4+

As admin I created a role with the moodle/user:create capability, and assigned that role to another user globally.

Then I logged in as that other user, and was able to see the option to Add a new user. I did that and it worked, apart from ending up with an ugly error after the operation was complete.

(To get rid of that error, give the role moodle/user:update too.)