Unable to edit variable with scoped permission

I’ve got a user on my team that has the permission VariableEdit (and VariableEditUnscoped), with the environment being limited to our Nightly environment on a specific project. This user tried changing a variable for this project (scoped to Nightly), but got the following error message:

You do not have permission to perform this action. Please contact your Octopus administrator. Missing permission: VariableEdit
You don’t have permission to update the variable: DB_Data_Source

So even though the user has the permission VariableEdit for the Nightly environment (which I’ve double checked using the Test Permissions feature), editing a Nightly-specific variable failed. I’ve also verified looking at the status symbols in the variable list, that it was only that specific variable that had changed when trying to click save (and for sure not DB_Data_Source as the error message says).

Is this a bug, or am I missing something? I thought this was the whole point with environment specific variable permissions

Hi Julian,

Thanks for getting in touch. We fixed this issue on 2.6.2 which was released today (https://octopusdeploy.com/downloads). See if you can upgrade and let us know if it works ok for you.



We’ve confirmed that this issue is fixed in the latest version. Thanks!