This module extends the Flag module to allow authorized users to flag content on behalf of others. It provides options to select existing users or create new ones, with configurable display and permissions.
Flag for Someone Else (Flag FSE)
Flag for Someone Else extends the Flag module by allowing authorized users to flag content on behalf of other users.
Features
- Flag content for other users - Users with appropriate permissions can create flaggings on behalf of any user
- Flexible user selection - Search for existing users by username or email address
- Create new users - Administrators can create new user accounts while flagging
- Dual link display - Shows both the "Flag for someone else" link and standard flag link
- AJAX support - Optionally open the flagging form in a dialog or modal window
- Granular permissions - Automatically generates a permission for each flag
Requirements
- Drupal 10.3+ or Drupal 11+
- Flag module
Installation
Install using Composer (recommended):
composer require drupal/flag_fse
drush en flag_fse
drush crOr install manually:
- Download and extract to modules/contrib/flag_fse
- Enable via admin UI or drush en flag_fse
Configuration
1. Configure a Flag
- Go to Structure > Flags (admin/structure/flags)
- Create a new flag or edit an existing one
- Under Link type, select "For someone else"
- Configure the FSE options:
- Fallback plugin: Link type for users without FSE permission (e.g., "AJAX link")
- Flag fse link text: Text for the FSE link (default: "Flag for someone else")
- Flag confirmation message: Message shown in the confirmation form
- Create flagging button text: Submit button text
- Form behavior: Choose "New page", "Dialog", or "Modal dialog"
- Save the flag
2. Set Permissions
- Go to People > Permissions (admin/people/permissions)
- Find permissions like flag fse [flag_id]
- Grant to appropriate roles (e.g., moderators, administrators)
- Save permissions
Usage
For Authorized Users
Users with the flag fse [flag_id] permission will see:
- A "Flag for someone else" link next to the standard flag link
- Clicking opens a confirmation form where they can:
- Select existing user: Search by username or email using autocomplete
- Create new user (admins only): Enter username, email, optional password
- System validates no duplicate flaggings exist
- Flagging is created for the selected/created user
For Regular Users
Users without FSE permission only see the standard flag link and can flag/unflag for themselves.
Use Cases
- Content moderation: Flag problematic content on behalf of users who reported it offline
- Event, tasks or volonteer management. eg: Admin can assign someone to a task,
- Support tickets: Assign tickets to specific users
- Collaborative bookmarking: Add content to specific users' bookmarks
Support
Issue queue: https://www.drupal.org/project/issues/flag_fse
Documentation: https://www.drupal.org/docs/contributed-modules/flag-for-someone-else
Source code: https://git.drupalcode.org/project/flag_fse
License
This project is licensed under GPL-2.0-or-later.