No variable permissions on scheduled runs only
We are running a couple of scheduled jobs in windmill what make use of variables as input parameters.
Basically we have flows with one step in them which is one python script that has variables configured for their input.
When triggering them manually by user 4's account they work fine.
But if we configure a schedule it fails on every scheduled run due to a lack of permissions.
How can we configure so that these jobs have permissions to the variables on a scheduled run?
All flows are located in the same directory "folder" as the variables that they use.
Thankful for any help we can get 😊
{
"error": {
"name": "InternalErr",
"message": "Error during isolated evaluation of expression
variable('f/folder/VARIABLE_NAME')
:\nError: Not authorized: Variable exists but you don't have access to it:\nvariable perms: {}\nfolder perms: {\n "g/all": false,\n "u/user1": true,\n "u/user2": true,\n "u/user3": true,\n "u/user4": true,\n "u/user5": true\n}\n at async variable (<anon>:9:12)\n at async <anon>:46:13"
}4 Replies
The schedules have the permissions of the user that created/edited them
Aha, so if user 4, which is in the variable perms, turns off, saves, then turns on and saves the schedule again the schedule might work? is that enough to change the permissions?
Do you know where variable perms are set btw?
inherited from folders and also set on the variable directly
Alright, i will try some things and get back. Thank you!
You were right. I re-enabled the schedule from my account which is super admin and the schedule is now working.
We'll have to figure out how to make it possible for a normal user to use our variables then.
Do i need to mark the issue as solved or anything?