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

grasmash’s picture

Can you please try the 7.x-1.x-dev version and let me know if you still experience the problem?

aanjaneyam’s picture

madmatter23 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.

grasmash’s picture

Status: Active » Postponed (maintainer needs more info)
grasmash’s picture

Status: Postponed (maintainer needs more info) » Fixed

This 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

serguitus’s picture

Version: 7.x-1.9 » 7.x-2.x-dev
Status: Closed (fixed) » Active

Sorry 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

Countzero’s picture

Same problem here. No role gets assigned after aninymius registration.

Countzero’s picture

For 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.

grasmash’s picture

Status: Active » Postponed (maintainer needs more info)

I'm unable to reproduce this. What permissions does user with role 'manager' have? They need at least the 'administer users' permission.

vivdrupal’s picture

Using 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.

tahiticlic’s picture

Same behavior here.

proweb.ua’s picture

Issue summary: View changes

Same problem. Using
Profile2 Registration Path 7.x-2.x-dev
Profile2 version 7.x-1.x-dev