I would like to restrict access to viewing content exposed from json api, but I don't see any Drupal permission to do so. I would like to do this and still have published content accessible by anonymous users. In other words, I can't change the "view published content" permission to only allow authenticated users.

I would like to use this module in conjunction with the Simple OAuth module, and then only authorize requests to any resource within /jsonapi/* if a user is authenticated. The core REST module exposes permissions per endpoint, but I don't see any unique permissions for this module.

Is there a permission that I am missing to achieve this?

If not, can one be added?

Comments

neuquen created an issue. See original summary.

wim leers’s picture

Status: Active » Fixed

JSON:API simply respects Entity API access control. To tweak access to entities, use the entity access system :)

wim leers’s picture

Category: Feature request » Support request

Status: Fixed » Closed (fixed)

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