Programmatically Edit Security Zone

Is it possible to programmatically edit a security zone?

My application would be to have tags’ write permissions protected by a role and security zone, but only have the security zone active during a schedule.

Alternatively, is there a better way of allowing write permissions from certain devices but only in allowed hours?

What would be writing to those tags? A gateway script? A Vision client? A Perspective client?
If it’s a script then the script could check the schedule.
If it’s a client then the right thing to do would be to limit the client by schedule, I would think.

1 Like

I currently do it in the client, but I prefer the write permissions directly on the tag. This way there are no discrepancies with security configuration between screens where security was configured differently.

Ideally I would like to be able to enable/disable the security zone, and the tag itself, regardless of what UI element it is written from, is correctly secured.