i know i can do it assigning ADMIN to the user but...
# sdf
m
i know i can do it assigning ADMIN to the user but I would like to use a custom DEVELOPER role instead. I have generated the keys and it works for uploading files but when I try to deploy I get an auth error and I cannot find what permission is missing in my dev role, any idea?
n
Try SuiteScript permission
m
it is there
n
Are you getting the error specifically to permission? Can you login via UI using this role and see if you can deploy that script
m
i can login via ui
n
and can you deploy the script?
m
let me clarify, I am using SDK CLI
node js version
i did thisbefore many times and this is the first time the developer role does not work as expected so i need to understand if this account has soemthing different i am missing
i have created an employee and assigned teh DEVELOPER role
then i have created access keys for it
then i set this up from the cli
no errors there
if from the CLI I try to upload a js file i can do it perfectly
the error is displayed when i do suitecloud project:deploy
only then
login error
i also checked the logs from the .suitecloud dir but i have nothing there so i dont know exactly why i am getting that error
n
Can you do this: Login via Developer role and deploy your script. What's the result?
m
i also tried to create another auth/id using the browser with admin access and i can deploy perfectly
u mean login through the NS UI with the development role
n
yes, correct.
m
done
i have logged as user with the Developer role and could create a script and deploy it
from the UI
but when i try to do it from the command line i get Begin deployment * ERROR * An unexpected error has occurred. Details: Access denied
z
there is a one folder under SuiteScript (check your SDF project) for which you don't have permission to upload without admin role.. I don't know what exactly, something like 'Web templates...)