Filter nodes by paragraph user reference Say you have a content type Exercise which has a Related Users paragraph field. In turn, Related Users has a user reference field:

(content type) exercise --> (paragraph) related_users --> (user) user

I want to filter all Exercises with a certain related user:

/api/node/exercise?filter[field_related_users.field_user.name]=some_user


But it returns empty data: "data": [],. Same if tried with user id.

I'm sending a request with admin user, so there are no permission issues. Also, I did a similar filtering on a referenced content type (with a user reference) and it does return data.

I couldn't find anything related to this in JSON:API open issues. Does filtering by paragraph reference work differently? Or maybe there are limitations on this?
According to this issue, Unable to filter on columns of entity reference fields. It seems like you need to add .entity after the field name to the entity reference fields.

Try to use this URL instead:

/api/node/exercise?filter[field_related_users.entity.field_user.entity.name]=some_user


Or if field_related_users can contain multiple values, you might want to do like this instead:

/api/node/exercise?filter[field_related_users.0.entity.field_user.entity.name]=some_user