Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7093199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:24:33+00:00 2026-05-28T08:24:33+00:00

I am using the auto assign role module to assign the role of editor

  • 0

I am using the auto assign role module to assign the role of editor to anyone registering via the “create new account” link. This works just fine.

However, users of the editor role can create other users of different role types. To do this I am using the uCreate module.

The problem is when an editor creates a user, that user also gets the editor role.

I have looked into a number of hooks to programmatically remove the unwanted role but without success. How might I resolve this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:24:34+00:00Added an answer on May 28, 2026 at 8:24 am

    When the “editor role” users creates the users by “uCreate module”, the hook_user is being called reside in “auto assign role module”, This is the problem.

    The user_save function from “ucreate module line:299” call the hook_user with “insert” parameter in “auto assign role.module file”, line no 155.

    case 'insert':
    // If this is an administrator creating the account only use auto_assign if
    // allowed by auto_admin_active
    if (arg(0) == 'admin' && _autoassignrole_get_settings('auto_admin_active') == 0) {
    return;
    }

    Here the code check whether it is admin user, If it is not admin then it will assign editor role to that user.

    Instead you can create a custom module and implement hook_user and change the role when a user are inserted.For more info please refer user_save in drupal 6

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the autoassignrole module to assign ROLE#1 to anyone registering on my
I'm using auto-increment to assign a id to every new entry in my database.
This is not a homework, but new task assign by superior. To create a
Guys i am very new to jQuery. I have started using the auto complete
I am using the following code to dynamically create an INPUT element and assign
When using auto implemnted properies like public string MyProperty { get; set; } This
Using the new auto keyword has degraded my code execution times. I narrowed the
I'm using the Salesforce REST API to create a Case. I assign the SuppliedEmail
When using auto-registration with castle windsor I see people doing things like _container.Register( AllTypes.Pick().FromAssembly(Assembly.GetExecutingAssembly())
I am using auto increment value for the inserts in my table. But is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.