Hello Community, Is it possible to detirmine which user is communicating with the PLC over OPC UA? For e.g. I create 1 struct to communicate but the one user can only read that struct, the other can also write into that struct. Best regards, Stijn Noppe
Hello Stijn, the role based permission management in PLCnext and the integrated OPC UA server integrated in PLCnext fulfil this requirement.
Via the Web based management on the device, you can configure two users. One with the role “DataViewer” and one user with the role “DataChanger”.
You can use the same users for authorization via OPC UA, when the connection will be established between the OPC UA Client and the OPC UA Server.
If you use the credentials of the user with the role “DataViewer”, then you only have read permissions to the structure. If you use the credentials from the user with the role “DataChanger”, than you have also write permissions. You can configure the user via the web based management of the target. Therefore please type the IP Address of the target into your web browser and login as admin.
Navigate on the left hand side of the web page to “Security \\ User Authentication”.
On the page you can add or delete users or change the permissions of the existing users.
For more details to the role based permission concept in PLCnext, you can also refer the user documentation “um_en_plcnext_technology_108664_en_01.pdf” in chapter 3.9 “Security” area. Regards, Timo
Hello Timo, Thanks for the answer, didn’t thought of that trick! Would it also be possible to let a user for e.g. view everything but only change a couple of data variables? Best Regards, Stijn Noppe