Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Wim Leers on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.3.x
Introduced in version:
8.3.0
Issue links:
Description:
The UserRegistrationResource
@RestResource
plugin was added to Drupal 8 core — it's available at /user/register
.
(Authenticated users can never register new users; to do that, they have to create a new user via the EntityResource
at /user
.)
This means that progressively or fully decoupled Drupal 8 sites can now let users register without having to create complex work-arounds.
See https://www.drupal.org/documentation/modules/rest/start on how to configure and interact with REST resources.
Impacts:
Site builders, administrators, editors
Themers
Comments
Need Some Quick Help
Yes, you are right.
One more resource added i.e User Registration but path seems missing, please find the attached screenshot.
Apart from this, there is my configuration for new resource i.e User Registeration. Please find the attached screenshot.
Now, while I am trying to execute the below code using Postman:
It shows me user registration page in response.
Additionally, Here’s the attached screenshot for my users permission to access RESTful APIs.
Please need some quick help.
Thanks!
Because this was not added to
Because this was not added to Drupal 8.2, but to Drupal 8.3. You must use Drupal 8.3 to be able to use this.
Register user via Rest resource
Hello, after giving the permission Access POST on User registration resource to anonymous users , i was able to register users via via the resouce /user/register?_format=hal_json without any authentication
I wonder if there is a way to add a autorization by token when adding users anonymously via the rest resource ?