Part of the Flag ecosystem · 12 projects
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 for someone else" link displayed next to the regular flag link
(any link type can be used as fallback for other users). - Flag for one or several users at once: up to 49 available users are
listed as checkboxes, beyond that an autocomplete field accepts several
users. - Administrators can create a new user account from the form.
- Bulk action "Flag an entity for the selected users", e.g. with Views
Bulk Operations on a list of users. - Restrict the selectable users with source plugins. The included
Flag FSE Organic Groups submodule only lists the members of the group. - One permission per flag: "Flag for someone else: [flag]".
- Form in a new page, dialog or modal.
Privacy and access
- Only active users can be selected.
- Email addresses are only shown and searchable with the "View user email
addresses" or "Administer users" permission. - The form checks that the current user can view the entity and that the
flag applies to it.
Requirements
- Drupal 10.3+ or Drupal 11+
- Flag 5 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.
Upgrading to 1.1: run "drush updb". Custom user source plugins must return
NULL for "all users" (an empty array now means "no user").
Ask your assistant about Flag for Someone Else
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Flag ecosystem
Most installed first