How to set a user role when creating a user?

Created on 5 February 2025, about 12 hours ago

I have created a Webform Content Creator entity to create a user on a webform submission. As part of the creation process, I would like to set a user role I created called "Profile pending" which has the machine name "profile_pending".

In the managed fields, I tried to set the "Roles" field by enabling "Custom" and by entering the machine name of my user role "profile_pending" (see attached jpg) however the role does not get set...

Would anyone know what I did wrong and how I should set the role?

Thank you for your assistance in this matter.

💬 Support request
Status

Active

Version

4.0

Component

Documentation

Created by

🇦🇺Australia ajlow

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024