Connectivity Software User's Guide and Reference
UserManagers Property



OpcLabs.ServerOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > EasyUAServerCore Class : UserManagers Property
User managers for authentication and authorization for the OPC UA server.
Syntax
'Declaration
 
<JetBrains.Annotations.NotNullAttribute()>
Public ReadOnly Property UserManagers As UserManagers
'Usage
 
Dim instance As EasyUAServerCore
Dim value As UserManagers
 
value = instance.UserManagers
[JetBrains.Annotations.NotNull()]
public UserManagers UserManagers {get;}
[JetBrains.Annotations.NotNull()]
public:
property UserManagers^ UserManagers {
   UserManagers^ get();
}

Property Value

The value of this property cannot be null (Nothing in Visual Basic).

Remarks

The UserManagers property provides access to user manager components that handle authentication and authorization of users connecting to the server. It includes e.g. managers for anonymous users and users authenticated with username and password.

CAUTION: The default OpcLabs.BaseLib.Security.User.UserManagers.Anonymous user manager gives the OpcLabs.EasyOpc.UA.Security.Subject.UASecurityRoles.Operator role to all anonymous users. Remove this default role assignment (in OpcLabs.BaseLib.Security.User.IAnonymousUserManager.SecurityRoleIdSet, by calling Clear) if you do not want anonymous users to have the Operator role.

It is usually not necessary to configure security roles like OpcLabs.EasyOpc.UA.Security.Subject.UASecurityRoles.Anonymous or OpcLabs.EasyOpc.UA.Security.Subject.UASecurityRoles.AuthenticatedUser as (default) security roles in the user managers, or for individual users. They are added as implicit security roles to the security principal for the operation automatically, according to rules laid out by OPC UA specification.

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also