I'm attempting to upload an image with JSON:API.
I have added an Image field (not a media field) to the user entity.
In Postman, I get a session cookie for testing.
Then, in accordance with Flow 2 in the JSON:API upload file documentation, I configure my request:
I added image data as a binary to the request body.
However, when I send the request, I get the following error:
"title": "Forbidden", "status": "403", "detail": "The current user is not permitted to upload a file for this field. The 'administer users' permission is required.",
I don't know why it is saying I need
administer users permission.
When I log in as the same (authenticated, non-admin) user and then go to the user edit page, I can edit the image field (save a new image, remove the existing image) without any problem. So why am I getting a permissions error in JSON:API? I thought JSON:API permissions were supposed to be exactly the same as in the Drupal UI.