parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Let cloud code access user roles

Open mstniy opened this issue 1 year ago • 1 comments
trafficstars

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

mstniy avatar Sep 06 '24 12:09 mstniy