Single User Control Access

Can anyone suggest how to limit the control (writing to tags) from a perspective session to 1 user? Not any singular username, but if someone has already been controlling it in the past minute or so, prevent the new user from controlling it. We've had issues where 2 or more people have been trying to control an asset remotely at the same time, which caused problems.

Now I've thought about this quite a bit and the best option I could come up with is to have a tag for that particular piece of equipment that holds the username allowed to control that asset. Then another tag holds the seconds since that tag has changed to a valid username. When that tag is above X seconds, clear the username tag and allow others to control it. Every time the original user changes a tag, it resets that timer.

There may be some drawbacks/bugs in that way as well but this is the best solution I've thought of so far. Any suggestions would be greatly appreciated.

Consider making the permission explicit--the user touches a button to gain control, which then enables the other controls if successful. Store the session's deviceID in an associated tag, and timestamp in another, clearing the selection after a timeout (on the gateway side). The expression bindings on the controls' enables would simply compare the current session device ID to the tag.

I'd allow the user to touch the permission button again to release early, too.

1 Like

Making the permission explicit sounds perfect, not much room for error there. Thank you for this suggestion.