How to identify well known roles?

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
jlv
Jr. Member
Jr. Member
Posts: 1
Joined: 24 Jun 2019, 03:24

How to identify well known roles?

Post by jlv »

Hi all,

We are using your latest UA Stack 1.7.
We want to set the well-known role as the default role, so we need not create it in the server when using it.
Now our implement is setting it in the stack code nodemanageruanode.cpp as follows:

pDefaultAccessPermissions->setRolePermissions(
m_pServerManager->getIdForWellKnownRole(OpcUaId_WellKnownRole_Anonymous),
NodeAccessInfo::PERMISSION_NONE);

When a new node is created, it will call this class. Adding role permission settings to this constructor ensures that it is correct.

There will be a maintenaness burden to add code to the UA stack. Can you tell me what's the right way to do it? Well-known roles shall be supported by the latest UA stack and corresponding permission should be assigned in a more graceful way if there is no default value for them.

Thanks for your help!

Best Regards.

Post Reply