New answers tagged

0

On the Permissions screen at /admin/people/permissions, you can give the permission Administer users to the Manager role. Administer users is an administrator permission, but you do not need to give the other administrator permissions to the Manager role. If you really don't want the Manager role to have unlimited access to user accounts, you could use the ...


0

I just created a new module called "Disable UI" to handle this for a headless Drupal site we maintain. It should work for Drupal 8.x and Drupal 9.x: https://www.drupal.org/project/disable_ui


3

Nope, new users' one-time-link do not expire. Only "forgot passwords"-links do. Also, see this discussion. It might come in future Drupal 9 releases. https://www.drupal.org/project/drupal/issues/3097238


3

Each Comment Type can only be applied to one type of entity (nodes (content), users, and taxonomy terms are examples of different types of entities). By default, Drupal core only provides a comment type for nodes. So, to add comments on users, you will need to create a user comment type. Go to /admin/structure/comment. Select Add comment type. Add a Label ...


0

You could disable the login page with the Disable Login Page module. This will disallow accessing the login page without the required key value pair in the querystring.


3

Yes, you can use the user_cancel process to prevent content being deleted. As you found out it doesn't help to remove the options from UI. Programmatically you need to call the function directly, specifying the method user_cancel_reassign to replace the author with anonymous before deleting the user: user_cancel([], $uid, 'user_cancel_reassign'); $account = ...


0

With twig_tweak (for twig token filter, tested on 8.x-2.9) you can add a token based link to the user account menu in Drupal 8/9 (/admin/structure/menu/manage/account). E.g. A menu link: title: [current-user:name] url: /user/[current-user:uid]/edit Also works with multiple tokens. title: [current-user:name] and [current-user:created] url: /user/[current-...


Top 50 recent answers are included