user.permissions.yml

Same filename in other branches
  1. 9 core/modules/user/user.permissions.yml
  2. 8.9.x core/modules/user/user.permissions.yml
  3. 11.x core/modules/user/user.permissions.yml
core/modules/user/user.permissions.yml
130 string references to 'user.permissions'
AccessResult::allowedIfHasPermission in core/lib/Drupal/Core/Access/AccessResult.php
Creates an allowed access result if the permission is present, neutral otherwise.
AccessResult::allowedIfHasPermissions in core/lib/Drupal/Core/Access/AccessResult.php
Creates an allowed access result if the permissions are present, neutral otherwise.
AccessResult::cachePerPermissions in core/lib/Drupal/Core/Access/AccessResult.php
Convenience method, adds the "user.permissions" cache context.
AccessResultTest::testCacheContexts in core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@covers ::addCacheContexts @covers ::resetCacheContexts @covers ::getCacheContexts @covers ::cachePerPermissions @covers ::cachePerUser @covers ::allowedIfHasPermission
AccessResultTest::testInheritCacheability in core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@covers ::inheritCacheability

... See full list

File

core/modules/user/user.permissions.yml

View source
  1. administer permissions:
  2. title: 'Administer roles and permissions'
  3. restrict access: true
  4. administer account settings:
  5. title: 'Administer account settings'
  6. description: 'Configure site-wide settings and behavior for user accounts and registration. This includes account cancellation methods, the content of user emails and fields attached to users.'
  7. restrict access: true
  8. administer users:
  9. title: 'Administer users'
  10. description: 'Manage all user accounts. This includes editing all user information, changes of email addresses and passwords, issuing emails to users and blocking and deleting user accounts.'
  11. restrict access: true
  12. access user profiles:
  13. title: 'View user information'
  14. view user email addresses:
  15. title: 'View user email addresses'
  16. description: 'Users without this permission will not have access to email addresses on user pages or other places where they might be shown, such as Views and JSON:API responses.'
  17. change own username:
  18. title: 'Change own username'
  19. select account cancellation method:
  20. title: 'Select method for cancelling account'
  21. restrict access: true
  22. cancel account:
  23. title: 'Cancel own user account'
  24. description: 'Note: content may be kept, unpublished, deleted or transferred to the anonymous user depending on the configured user settings.'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.