0

To moderate nodes there are modules like "workflows" and "content_moderation". Nodes have revisions or versions.

How does this work for user accounts? Users do not have revisions for their accounts and the "content_moderation" module does not manage the moderation status of users.

How do we moderate user files with Drupal 11?

1
  • 1
    Content Moderation requires the entity to be revisionable. The User entity is not revisionable. Commented Dec 16, 2024 at 22:54

1 Answer 1

1

There is no straightforward way to moderate user accounts because User entities are not revisionable. There is also no easy way to make them revisionable.

Instead, you will have to create your own solution. Core provides some tools to make this easier.

For example, if you want to create a social media site with user profiles that are subject to moderation, do NOT add the fields to be moderated to the user entity. Instead, create a node content type (such as "User Profile") and add the fields there. Make those fields subject to moderation.

You will need to implement a lot of other things as well-- you may want to automatically create a "User Profile" when a user account is created, and you probably want to prevent the user from creating more than one "User Profile" entity.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.