I have two separate roles on my site, one for regular users, and one for site administrators.

The regular users must fill out more details about themselves than I need admins to do, such as name, gender and address.

How can I allow the site administrator to create new site administrators without needing to fill out these extra profile fields?

  • What is your question?
    – BetaRide
    Jan 19 '12 at 10:38
  • separate this registration form from Drupal registration?
    – Ahmed
    Jan 19 '12 at 11:21

The only easy way I can think of is to make this fields not required. Then the admins can leave it empty.

I'd just let the Admins enter the extra data, even if you don't really need it. Admins are specially trust worthy users. It's not likely that you have a lot of them.

If you must: Create your own form using Drupa FAPI and create a new user by calling user_save in the submit function.


Use the module profile2_regpath and provide different paths for each profile type.

Ensure that:

Show on all user account registration forms.
If selected, fields for this profile type will be added to the core user registration page and the administrative add user page.

Is unchecked.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.