S
S
Sergey Khlopov2017-11-15 09:43:01
Drupal
Sergey Khlopov, 2017-11-15 09:43:01

How to find out which user was registered?

Hello, tell me please.
There is a general role on the site, and users of this role can register other users.
So the question is, how to find out which user another user was registered with?
You just need to display a list of all users, and in this list to see who was registered by whom, please tell me how can this be implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
afi13, 2017-11-15
@afi13

It's a good idea to specify the version of Drupal in the question.
If you are using Drupal 7, then try https://www.drupal.org/project/user_created_by
If you are using Drupal 8, then in general the idea is to create a new field in the user account and save the UID of the user who registered it when saving a new account. For example, using hook_user_insert().

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question