You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
$relatedTo on own _User relation rejected when the relation is a protected field, ignoring protectedFieldsOwnerExempt #10816
A user can't run a $relatedTo query on a protected relation of their own _User object. protectedFieldsOwnerExempt (default true) is honoured by GET /users/me, which returns the relation to its owner, but not by the protected-field check in authorizeRelatedToQuery, added in #10493 (9.10.0).
{"code":119,"error":"Permission denied"}, the same as for any other user.
Expected Outcome
The owner gets the related objects. Possible fix (not tested): skip the check when owningClassName === '_User', protectedFieldsOwnerExempt !== false and auth.user?.id === owningId, as filterSensitiveData does.
Environment
Server
Parse Server version: 9.10.3 (also 9.10.5, 9.10.6-alpha.5; not 9.9.0)
Operating system: macOS 27.0.1
Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): local
Database
System (MongoDB or Postgres): MongoDB
Database version: 7.0.34
Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): local
Client
SDK (iOS, Android, JavaScript, PHP, Unity, etc): REST API
SDK version: n/a
Logs
error: This user is not allowed to query bookmarks on class _User
ℹ️ You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
Activity
parse-github-assistant commentedon Oct 21, 2026
🚀 Thanks for opening this issue!
ℹ️ You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.