Hi, In the docs it is written that it shall be possible to use specific user id or a run a script to determine user id before calling a function: https://docs.mongodb.com/stitch/functions/define-a-function/
It does not seem to work - at least for triggers and for “test” runs.
- Create a function that always authenticate using a specific use id or script. Inside the function log the “context.user”.
- Try with a simple test in the console. The context executes as “system”. Failed.
- Create a scheduled trigger that calls this function (for example every minute). Don’t forget to deploy.
- Check the logs. In the log files it’s always executes as “system”. Failed
Am I doing something wrong ?