Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Rules User Fields

Security covered

Part of the Rules ecosystem · 6 projects

View on drupal.org

Note:
if you don't create a new user with Rules, but need to get access to custom fields of a user, then instead of this module you can use the "Direct input mode" or create the "Entity is of bundle" condition and populate fields with "user", see 1. https://www.drupal.org/project/rules_user_fields/issues/3257625#comment-...
2. https://www.drupal.org/project/rules_user_fields/issues/3284425#comment-...

This module extends the 'Rules' module. Today the 'Rules' module has the following restriction:
If you create a new 'User' in a 'Rule' then you can't get access to its custom fields in this 'Rule'.
This module solves this problem. Possible use case:
you can create new users with the 'Rules' module and populate their fields with a data obtained using the 'Webform' module.

Recommended modules

'Rules Webform' provides integration of 'Rules' and 'Webform' modules for Drupal 8. It enables to get access to webform submission data, altering and removing them from rules.

'Rules Data Exchanger' enables to exchange data between Rules and rules Components in Drupal 8. It's allows to store any data of a some Rule and then use them in others Rules or Components.

Uses

Let's assume that our User has custom field named 'field_gender'.
And we want to create a new user in a Rule and then populate this field with some data.
For doing this the module provides special Rule action called 'Get access to user fields'.
To get access to the field you need just add this action after creation of a new user.

1. Add 'Get access to user fields' action.

2. Click on 'Switch to data selection' button and select the entity of newly created user.


3. Save the Rule.

After that all fields of the selected User entity will be available from the data selector.
And you will can to use them in others actions of this Rule.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Aug 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
2.0.2 Stable Aug 5, 2023