• I’m looking for a plugin that allows you to only edit and view the users that you create.

    For example: John creates User-01 and he can edit or delete this user. But Jhon can’t view the users that Susan created, and Susan can’t view the users that Jhon created.

Viewing 3 replies - 1 through 3 (of 3 total)
  • In you example, John and Susan are admins?
    I can see a problem with limiting admins. Let’s say your site is hacked, and the hacker creates a bunch of users. Do you want all admins to be able to see them?

    Thread Starter misstest

    (@misstest)

    I don’t mind which role they are. What I need is that If this admin creates a user, it should only see and edit this user he created.

    I got that. But if it is limiting an admin, it is questionable. But only admins can create users.
    You could add a new role that can create users. To limit it, you’d need to store a connection between the creator and the user, so that you can check who can see it. You would have to store that, maybe in user meta (similar to parent for posts). This would have to be mapped to the new role and capability because the core will check the same old capability for creating users.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Only edit the users you create’ is closed to new replies.