Permissions and monitoring data changes|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Permissions and monitoring data changes
Avatar
saurla
Member
Members
Forum Posts: 5
Member Since:
01/29/2021
sp_UserOfflineSmall Offline
1
02/05/2025 - 22:57
sp_Permalink sp_Print

Hi.

I did not find from the specification any way to manage permissions for MonitoredItem data changes. I also checked the .NET reference implementation but did not find any permission validation in either creating MonitoredItems for data items or when reporting data changes. For events there is ReceiveEvents permission which can be used to manage permissions for event receiving but there doesn’t seem to be anything similar for data changes. So is there any way to manage permissions for data changes?

Avatar
Randy Armstrong
Admin
Forum Posts: 1593
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
02/11/2025 - 10:06
sp_Permalink sp_Print

Permissions for data changes are set on the source node.

i.e. a Variable X has the RolePermissions attribute which specifies the permissions granted to Roles. When a Client creates a MonitoredItem for Variable, the Session has Roles associated with and those Roles are used to evaluate the Permissions on the Variable.

If the Session does not have access the MonitoredItem create request make be rejected or the DataChange will be a error like BadUserAccessDenied.

Avatar
saurla
Member
Members
Forum Posts: 5
Member Since:
01/29/2021
sp_UserOfflineSmall Offline
3
02/11/2025 - 22:10
sp_Permalink sp_Print

Thanks for the answer. I get how the RolePermissions work and how permissions should be evaluated, but which permission bit dictates whether MonitoredItem creation is possible or not? I checked all permission bits from here https://reference.opcfoundatio…../docs/8.55 but none of the permissions mentions anything about MonitoredItems or data change notifications.

Avatar
Randy Armstrong
Admin
Forum Posts: 1593
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
02/12/2025 - 00:41
sp_Permalink sp_Print

There is no distinction between Read and Subscribe. If you can Read you can Subscribe.

Avatar
saurla
Member
Members
Forum Posts: 5
Member Since:
01/29/2021
sp_UserOfflineSmall Offline
5
02/12/2025 - 00:49
sp_Permalink sp_Print

Thanks. This makes it clear. Should I use Browse permission for other attributes than Value and Read for Value attribute subscription?

Avatar
Randy Armstrong
Admin
Forum Posts: 1593
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
6
02/12/2025 - 03:53
sp_Permalink sp_Print

Yes

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 29
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1456
Posts: 4928