NodeOPCUA API Documentation
    Preparing search index...
    • build the list of Role NodeIds a user is granted, from any of the accepted spellings:

      makeRoles(WellKnownRoles.Observer);                        // a well known Role
      makeRoles("Observer;Operator"); // semicolon separated names
      makeRoles("ns=1;i=1661"); // an explicit NodeId
      makeRoles(["Observer", "ns=1;i=1661"]); // mixed
      makeRoles("1:DiscoveryAdmin", addressSpace); // BrowseName, namespace index
      makeRoles("DiscoveryAdmin", addressSpace); // BrowseName, any namespace
      makeRoles([{ name: "DiscoveryAdmin" }], addressSpace); // idem, as a QualifiedName
      // when the namespace is known by its URI rather than by its index:
      makeRoles([{ namespaceIndex: addressSpace.getNamespaceIndex(gdsUri), name: "DiscoveryAdmin" }], addressSpace);

      Parameters

      • roleIds: string | WellKnownRoles | RoleIdLike[]

        the Roles to resolve

      • OptionaladdressSpace: IAddressSpace

        required only to resolve a Role by BrowseName, since that lookup goes through the RoleSet

      Returns NodeId[]