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 7694075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:14:09+00:00 2026-05-31T21:14:09+00:00

Does anyone know how to allow users to edit another user´s email in a

  • 0

Does anyone know how to allow users to edit another user´s email in a Drupal 6 site, when and only when that user did create the second one?

Let me explain with an example:

User A has role 1.

I have a form that programatically creates new users of role 2 each time the user A fills in and press the save button. (ie. user B, C, E, etc)

So user A creates user B.

I want user A to be able to edit user´s B account. But I want to allow that only to the users that user A has created. If I set a permission to edit users account for user A, he will be able to edit all accounts.

If there´s a user C out there that also has role 2, but wasn´t created by user A, I don´t want to allow the edit capability.

User B is not a subuser of any sort, it´s a full, normal user, just with another role. (I know there´s a module that allows you to create some sort of “subusers”, I don´t mean that).

Any ideas on where to start digging about this?

Thanks!!!
Rosamunda

  • 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-31T21:14:10+00:00Added an answer on May 31, 2026 at 9:14 pm

    create a new table, where you have two columns

    newuser_id | creator_id
    

    Now, you do have a unique ID for userA, B and so on. keep storing them in this table. and for editing, you can have a check against it.

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

Sidebar

Related Questions

Does anyone know a PHP RegEx to allow only relative paths, not absolute? For
Does anyone know of any reverse proxy solutions that allow the content/data of an
Does anyone know of any libraries for .net that allow you to use graphics
Does anyone know of a library that would allow me to manipulate Flex DOM
Does anyone know of a good component for .NET that will allow me to
Does anyone know of an jQuery (or anything) plugin that would allow for me
Does anyone know of an online CSV editor written in PHP that will allow
Does anyone know of a good framework to allow me design permission and roles
Does anyone know a good (preferably open source and cross platform) tool to allow
Does anyone know of a firefox plugin that allows you to view what a

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.