parse-community / parse-community/parse-server
Let cloud code access user roles
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 21.4k
- Forks
- 4.8k
- Avg merge
- 7h 45m
- Merged PRs (30d)
- 11
Description
New Feature / Enhancement Checklist
- Report security issues confidentially.
- Any contribution is under this license.
- Before posting search existing issues.
Current Limitation
For some cloud code (namely triggers), Parse internally knows the set of roles the user has access to, but does not provide this information to cloud code. We are in a situation where cloud code needs explicit access to the set of roles the user has, but we want to avoid having to do separate calls inside the cloud code.
Feature / Enhancement Description
Expose a field to cloud code that lets them get the set of roles the user has.
Example Use Case
Triggers which need to access the set of roles the user has can get this information without having to do separate calls to Parse.
Alternatives / Workarounds
Do new Parse calls inside the cloud code.
3rd Party References
None
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The payload names no file, test, or entry point; begin by tracing trigger handling and the role data already available to Parse internally. Done means cloud code can access the user's role set without separate Parse calls, with the API shape and behavior settled and covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- api, authorization, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100