Skip to main content
Skip to search
Can we use first and third party cookies and web beacons to
understand our audience, and to tailor promotions you see
?
Yes, please
No, do not track me
Drupal.org home
Discover Drupal
Drupal Core
Drupal CMS
Drupal AI
Case Studies
Drupal for Government
Drupal for Higher Education
Drupal for Nonprofit
Drupal for eCommerce
Drupal for FinTech
Drupal for Healthcare
Drupal for Enterprise
Drupal for Retail
Drupal for Travel & Tourism
Build with Drupal
Download Drupal
Documentation
Getting started
Local Development Guide
Developer Resources
Drupal CMS User Guide
Drupal User Guide
API
Modules
Themes
Recipes
Site Templates
Issue queues
Security Advisories
Partners & Services
Find a Drupal Certified Partner
Become a Drupal Certified Partner
Find a Hosting Provider
Find a Migration Partner
Find Training
Drupal Steward
Community
About the Community
How to Contribute
DrupalCon
Events
Jobs / Careers
News & Blogs
Forum
Slack
Newsletters
Drupal Swag Shop
Support Drupal
The Drupal Association
Donate
Become a Partner
Become a Ripple Maker
Become a Drupal Sustaining Member
Drupal Swag Shop
Get Started
Try Drupal CMS
Try Hosting
Return to content
Search form
Search
Log in
Create account
Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Secure your ticket
Modules
User Restrictions
Change records for User Restrictions
Primary tabs
Published
(active tab)
Draft & review
Add new change record
Keywords
Introduced in branch
Introduced in version
Change node created
Is less than
Is less than or equal to
Is equal to
Is not equal to
Is greater than or equal to
Is greater than
Is between
Is not between
Is empty (NULL)
Is not empty (NOT NULL)
Regular expression
And
Impacts
Site builders, administrators, editors
Module developers
Themers
Site templates, recipes and distribution developers
Introduced in branch/version
Notice created
Change
3.0.x
19-May-2026
The constraint classes are not part of the public API
3.0.x
19-May-2026
The hook classes are internal API
2.1.x / 2.1.1-beta1
19-May-2026
The UserRestrictionsFormBase class has been deprecated
3.0.x
12-Nov-2025
The minimum Drupal required version has been increased
2.1.x / 2.1.1-beta1
03-Nov-2025
UserRestrictionTypeManagerInterface::getType() and UserRestrictionTypeManagerInterface::getTypes() have been deprecated
2.1.x / 2.1.1-beta1
03-Nov-2025
UserRestrictionTypeInterface::matches() have been replaced by UserRestrictionTypeInterface::buildData()
2.1.x / 2.1.1-beta1
03-Nov-2025
UserRestrictionTypeBase::matchesValue() has been deprecated
2.1.x / 2.1.1-beta1
03-Nov-2025
The constructor for UserRestrictionsManager no longer requires the $type_manager argument
2.1.x / 2.1.1-beta1
03-Nov-2025
UserRestrictionsManagerInterface::matchesRestrictions() arguments have been changed
2.1.x / 2.1.1-beta1
03-Nov-2025
UserRestrictionType plugin needs to call ::SetLogMessage() and ::setErrorMessage() to set the log and the error messages used when a restriction forbids the submitted data
03-Nov-2025
UserRestrictionTypeBase::setLogMessage() has been added
3.0.x
03-Nov-2025
The UserRestrictionTypeBase class has been renamed
3.0.x
03-Nov-2025
The user_restrictions.type_manager service has been deprecated
2.1.x / 2.1.1-beta1
30-Oct-2025
The rule_type property has been deprecated
2.1.x / 2.1.1-beta1
26-Oct-2025
UserRestrictionTypeBase::setErrorMessage() has been added
3.0.x
21-Oct-2025
The entity-related classes have been renamed
3.0.x
21-Oct-2025
The entity form classes have been renamed
2.0.x / 2.1.1-beta1
21-Oct-2025
The form and the entity-related classes have been marked internal
2.1.x / 2.1.1-beta1
21-Oct-2025
The 2.1.x branch now requires at least Drupal 10.3
2.1.x / 2.1.1-beta1
19-Oct-2025
The minimum PHP required version has been increased
2.1.x / 2.1.1-beta1
19-Oct-2025
UserRestrictionTypeInterface::getPatterns() has been deprecated and removed
2.1.x / 2.1.1-beta1
12-Oct-2025
The minimum Drupal 9 required version has been increased
3.0.x
11-Oct-2025
The Drupal\user_restrictions\Entity\UserRestrictions class has been renamed Drupal\user_restrictions\Entity\UserRestriction
2.1.x / 2.1.1-beta1
11-Oct-2025
The "Bypass user restrictions rules" permission has been renamed
3.0.x
10-Oct-2025
The Drupal\user_restrictions\Entity\UserRestrictionInterface interface has been renamed Drupal\user_restrictions\UserRestrictionInterface
2.1.x / 2.1.1-beta1
09-Oct-2025
UserRestrictions::$expiry has been deprecated
2.1.x / 2.1.1-beta1
08-Oct-2025
The name property has been deprecated
2.1.x / 2.1.1-beta1
08-Oct-2025
The access_type property has been deprecated
2.1.x / 2.1.1-beta1
08-Oct-2025
The constants defined in the UserRestrictions class have been deprecated
3.0.x
18-Sep-2025
The minimum Drupal required version has been increased
Subscribe with RSS