parse-community / parse-server

Parse Server for Node.js / Express
https://parseplatform.org
Apache License 2.0
20.93k stars 4.78k forks source link

Let cloud code access user roles #9298

Open mstniy opened 2 months ago

mstniy commented 2 months ago

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

parse-github-assistant[bot] commented 2 months ago

Thanks for opening this issue!