12/01/2020
Hello,
I’m implementing an OPC-UA server and I’m using the RolePermissions for authorization. However I’m not sure if I should also user UserRolePermissions, since from the OPC UA Reference I don’t get to understand the specifics about it.
Could someone tell the difference between RolePermissions and UserRolePermissions?
Thanks
05/30/2017
https://reference.opcfoundatio…..rt3/5.2.9/
The optional RolePermissions Attribute specifies the Permissions that apply to a Node for all Roles which have access to the Node.
https://reference.opcfoundatio…..t3/5.2.10/
The optional UserRolePermissions Attribute specifies the Permissions that apply to a Node for all Roles granted to current Session.
The naming pattern where the prefix “User” is used to provide information that is specific to the current Session is used in other places such as AccessLevel and UserAccessLevel.
12/01/2020
Hello Randy,
Thank you for your answer. I’m sorry but I still don’t get to understand when and how UserRolePermissions should be used.
When a users logs-in on my server I grant the UserIdentity object with a specific role, for example:
IUserIdentity ui = new UserIdentity(userNameToken);
ui.GrantedRoleIds.Add(ObjectIds.WellKnownRole_ConfigureAdmin);
Then I use RolePermissions property of the nodes to specify the permissions, and see that the user can access depending of permissions set in RolePermissions property.
Which is the case where UserRolePermissions should be used? An example would be helpful. I think I’m missunderstanding the concept.
Thanks.
1 Guest(s)