How do I add a role to new users? I'm using the Drupal 8 version of the Rules module. How do I add a role to new users with a rule?

I created a rule.


Name: New user role
Events: After saving new user
Action: Add user role
Data selector: user.roles


I don't know what to set for value. Is my rule correct?

I want to add the particulier role to users.
I also have tested rules module in drupal8 but data selectors did not worked, as also mentioned here https://groups.drupal.org/node/516054

Then i tried https://www.drupal.org/project/registration_role which worked for me. You may also try this module if you want to assign a role to a user on registration.

Thanks