Set a User->Field (Phone as an example) to 'Required'="yes", AND 'Editable In'="Site"
Create a user with REST API:
POST: {{base_url}}/{{base_path}}/users
BODY:
{"block":"0","email":"bob.smith@test.com","groups":["2"],"lastResetTime":"","lastvisitDate":"","name":"Bob Smith","params":{"admin_language":"","admin_style":"","editor":"","helpsite":"","language":"","timezone":""},"password":"qwerty1235%%##","password2":"qwerty1235%%##","registerDate":"","requireReset":"0","resetCount":"0","sendEmail":"0","username":"bobsmith"}
API should process User Create
Since the Admin can create a user in the Admin interface without being required to enter a value in a required field WHEN 'Editable In'="Site" - I would expect that the Super User can create the user via REST API with the same conditions.
Create User via REST API Fails:
JSON Response:
{
"errors": [
{
"title": "Invalid field: phone"
}
]
}
Joomla 4.0.6
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-02-14 08:55:25 |
Closed_By | ⇒ | alikon |
This has tested good.
Could you please mark your test result in the issue tracker by going to this page https://issues.joomla.org/tracker/joomla-cms/37030 , using the blue "Test this" button at the top left corner, selecting the test result ("Tested successfully" in this case) and then submit? Thanks in advance.
p.s
it will need 2 test to be marked RTC (Ready To Commit) and then evaluated for merge from Release Lead
please test #37030