See http://drupal.org/node/908424#comment-6196162 and my proposed Core patch in #1671182: Ability to better control wether user_register_form is built in admin mode. This module also needs to be patched. Patch to follow.

Files: 
CommentFileSizeAuthor
#7 1671252.6-administerusersbyrole-create-user-access.patch1.33 KBmrfelton
PASSED: [[SimpleTest]]: [MySQL] 1,141 pass(es).
[ View ]
#6 1671252.6-administerusersbyrole-create-user-access.patch1.78 KBmrfelton
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1671252.6-administerusersbyrole-create-user-access.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]
#4 1671252.5-administerusersbyrole-create-user-access.patch1.78 KBmrfelton
FAILED: [[SimpleTest]]: [MySQL] 1,139 pass(es), 1 fail(s), and 1 exception(s).
[ View ]
#1 1671252-administerusersbyrole-create-user-access.patch1.5 KBmrfelton
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1671252-administerusersbyrole-create-user-access.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Comments

mrfelton’s picture

Status:Active» Needs review
StatusFileSize
new1.5 KB
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1671252-administerusersbyrole-create-user-access.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Here you go. Please test the core patch and provide your thoughts on it in the core issue mentioned above.

mrfelton’s picture

Project:Administer Users by Role D7» Administer Users by Role
Version:» 7.x-1.0-beta1

Moving over to the Administer Users by Role issue queue.

Status:Needs review» Needs work

The last submitted patch, 1671252-administerusersbyrole-create-user-access.patch, failed testing.

mrfelton’s picture

Version:7.x-1.0-beta1» 7.x-1.x-dev
Status:Needs work» Needs review
StatusFileSize
new1.78 KB
FAILED: [[SimpleTest]]: [MySQL] 1,139 pass(es), 1 fail(s), and 1 exception(s).
[ View ]

Updated patch for better function naming.

Status:Needs review» Needs work

The last submitted patch, 1671252.5-administerusersbyrole-create-user-access.patch, failed testing.

mrfelton’s picture

StatusFileSize
new1.78 KB
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch 1671252.6-administerusersbyrole-create-user-access.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

forgot to rename the access callback

mrfelton’s picture

StatusFileSize
new1.33 KB
PASSED: [[SimpleTest]]: [MySQL] 1,141 pass(es).
[ View ]

And without the character change.

spacereactor’s picture

#7 doesn't seem to work, i still need to set 'administer users' permission to that in order to allow role user to create user.

Updated. It only work but required to hack the drupal/modules/user/user.module file with this patch

mrfelton’s picture

Status:Needs work» Needs review

@spacereactor - Yes, the core issue #1671182: Ability to better control wether user_register_form is built in admin mode is a stated prerequisite to make this work.

sinasalek’s picture

AdamPS’s picture

Status:Needs review» Closed (duplicate)

This is basically one aspect of #1717876: Remove dependency on 'Administer users' permission, and there is a working patch there, so I'm closing this one as a duplicate.