parse-community / parse-community/parse-server

Let cloud code access user roles

Open
#9,298 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:feature
Dominant language
JavaScript
Stars
21.4k
Forks
4.8k
Avg merge
7h 45m
Merged PRs (30d)
11

Description

New Feature / Enhancement Checklist
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.