i have a portlet button that opens a suitelet o...
# suitescript
s
i have a portlet button that opens a suitelet one of our non-admin is getting a permission error looking at the stack trace the issue is to submit a map-reduce task
b
assign the user a role that uses the SuiteScript Scheduling permission
or setup the suitelet to run with a role that has that permission
s
that was my next question is is better to change execute as role on the deployment
b
depends on what you want to let your users do
if you want them to be able to use scripts that schedule other scripts
then grant them the permission
otherwise setup a role for the suitelet
s
i like the latter i dont trust this user