Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad_UserAccessDenied at 2:AccessLevel_CurrentRead_NotUser but user is logged in #10

Open
Kantiran91 opened this issue Apr 18, 2024 · 1 comment

Comments

@Kantiran91
Copy link

The AccessLevel_CurrentRead_NotUser value is always not readable with Bad_UserAccessDenied.
Tested with:
UAExpert (1.7.1) and Prosys OPC UA Browser (4.4.0) and all usernames (user1,user2,admin) at:
opc.tcp://milo.digitalpetri.com:62541/milo

Is this behavior correct? In my opinion with the user logged the value should be readable?

@kevinherron
Copy link
Collaborator

No, this Node is configured with a UserAccessLevel set to 0, it's not supposed to be readable by any of the users.

val nodeWithCurrentReadNotUser = nodeContext.addVariableNode(
securityAccessFolder.nodeId,
"AccessLevel_CurrentRead_NotUser"
)
nodeWithCurrentReadNotUser.accessLevel = Unsigned.ubyte(AccessLevel.CurrentRead.value)
nodeWithCurrentReadNotUser.userAccessLevel = Unsigned.ubyte(0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants