Problem/Motivation

When I configure the UI to match the requirements, the JSON API cannot read / access content anymore.

The bigger picture / steps:

Steps to reproduce

  1. Use JSON API via API role to read / write to Drupal - all is working
  2. Install Node View Permissions
  3. Configure the API role to allow view access to any page
  4. Use JSON API again - login works, but now, I get an empty array
  5. Uninstall New View Permissions
  6. Use JSON API again - everything is working fine

Configure New View Permissions:

1

JSON API Requests don't work anymore / show an empty array:

2

Same API Request, just after uninstalling Node View Permissions:

3

Am I doing anything wrong?
I'd like to make sure, that the nodes can only be seen by the assigned user (and admin as well as API user).

Comments

transmitter created an issue. See original summary.

transmitter’s picture

Issue summary: View changes
transmitter’s picture

Issue summary: View changes
nagy.balint’s picture

Status: Active » Postponed (maintainer needs more info)

Hello!

It is possible that the node access permissions were not rebuilt.
admin/reports/status/rebuild

liam morland’s picture

Category: Bug report » Support request
Status: Postponed (maintainer needs more info) » Fixed

Presuming #4 is the fix.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.