The module works as expected when I am logged in as user 1 administrator. For example:
1) I visit admin/people/p2rp-create/staff-login-account (the link created by the p2rp)
2) The staff role is already selected (along with authenticated user)
3) I fill up the login and profile details and the acount gets created as expeted with staff as the role.
HOWEVER
When a user with role manager:
1) Visits admin/people/p2rp-create/staff-login-account (the link created by the p2rp)
2) The staff role is NOT already selected.
3) Upon fill up of details and clicking create account a role-less account gets created.
For information I am using Role Delegation and Administer by user roles and have given the required permissions (at what I believe to be required) to the mangager role. The manager role also has Administer User permission (in user module) and the Create New User permission (in administer user by role module). In role delegation the manger role has permission to assign staff role.
I am unable to understand what is missing.
Comments
Comment #1
grasmash CreditAttribution: grasmash commentedCan you please try the 7.x-1.x-dev version and let me know if you still experience the problem?
Comment #2
aanjaneyam CreditAttribution: aanjaneyam commentedmadmatter23 thanks for your response. Actually I am away for about 4 weeks. I will try your suggestion once I am back. Hope the issue is still alive or else I will have to reopen it. My site is already in production mode. In the mean time I have asked the users on the site who can create accounts for others to manually check the box for desired role in order to successfully create the account with that specific role.
Comment #3
grasmash CreditAttribution: grasmash commentedComment #4
grasmash CreditAttribution: grasmash commentedThis was actually part of a large problem that also prevented to correct fields from being attached. I've applied a fix (which was already in place for 7.x-2.x). It should be working now.
Comment #6
serguitus CreditAttribution: serguitus commentedSorry for reopening but I still cant get it to work. I´ve tried with v1.12, v2.0 and 2.x-dev and still non administrator users can´t have automatically checked any rol. There was no feedback of this so Im asking if it was confirmed somewhere else.
greetings
Comment #7
Countzero CreditAttribution: Countzero commentedSame problem here. No role gets assigned after aninymius registration.
Comment #8
Countzero CreditAttribution: Countzero commentedFor the record, you can have the same functionality with Rules, Context and Context Rules :
- Set context on your registration path for each profile type.
- Test the existence of this context on the "User has been saved" event.
- Set the appropriate role then.
Comment #9
grasmash CreditAttribution: grasmash commentedI'm unable to reproduce this. What permissions does user with role 'manager' have? They need at least the 'administer users' permission.
Comment #10
vivdrupal CreditAttribution: vivdrupal commentedUsing Profile2 Registration Path 7.x-1.12
Profile2 version 7.x-1.3
I am having the same issue - when user create by Administrator through the registration path admin/people/create/dealer/register the dealer role is assigned to the user. BUT when anonymous user registers from the page /dealer/register no role is assigned.
Comment #11
tahiticlic CreditAttribution: tahiticlic commentedSame behavior here.
Comment #12
proweb.ua CreditAttribution: proweb.ua commentedSame problem. Using
Profile2 Registration Path 7.x-2.x-dev
Profile2 version 7.x-1.x-dev