IMD SolutionComputing LibraryShop main store

Explainer

Why AD roles need Authenticated/Roles paths in Ignition

Edge computing and IIoT Published 7 min read

Short answer

Ignition permission fields compare security level paths, not role names: the IdP's attribute mapper places each Active Directory role into the session as Authenticated/Roles/X, so comma-separated full paths are what the Gateway Config, Status and Home fields accept. Read the Security Level Tree as a pick list, not a gate, and grant access through roles or security level rules.

On this page
  1. Why does a comma-separated list of AD role names fail in the Gateway page permissions?
  2. Where does an Active Directory role become an Ignition security level?
  3. How do you restrict the Config, Status and Home pages to AD groups?
  4. What is the Security Level Tree for if the roles already work?
  5. How do you give a local IdP user the same access as an AD role?
  6. Example: how much bandwidth does the trial-time polling use between two gateways and a Designer PC?
  7. Can you slow down the trial-time polling on an Edge gateway?
  8. Questions asked

Ignition's Gateway page permissions fail with bare Active Directory role names because the permission fields compare security level paths, and the IdP places a role X into the session as Authenticated/Roles/X. The fix is to enter those full paths, comma-separated, under Config > Security > General. The Security Level Tree on the same tab is only the reference list that checkbox screens pick from, not a gate, which is why it can sit at its defaults while AD users still carry role levels. The same two-gateway setup also raised a second question, constant trial-time HTTP traffic to a Designer PC, so the last two sections measure that traffic and give the decision.

Why does a comma-separated list of AD role names fail in the Gateway page permissions? #

The field holds security level paths, and the session carries an Active Directory role X as Authenticated/Roles/X, so the bare names X, Y never match anything the session holds; the full paths Authenticated/Roles/X, Authenticated/Roles/Y do.

The comparison runs at the protected resource: the Gateway page checks the security levels in your session against the entries in the field. The mapper never creates a level called X at the root of the hierarchy, so a bare name has nothing to equal. The node name is Roles, plural, and the separator is a forward slash. Copy each entry from the granted-levels list the IdP test prints instead of retyping it, so case and spelling match the session exactly.

Entry in the permission field What the comparison sees
X, Y Root-level names that exist nowhere: no match, access refused
Authenticated/Roles/X A path equal to the level granted for role X: match
Authenticated/Roles/X, Authenticated/Roles/Y Two paths; with the any-of option, either one matches

Decision: when the IdP test already lists the roles, stop editing the directory. The fault is entry format, and full paths fix it.

Where does an Active Directory role become an Ignition security level? #

Inside the User Attribute Mapper: each authentication response's roles are extracted there and placed under the Authenticated/Roles node of the session's security levels, which happens before any page, tag or project compares permissions.

The internal Ignition IdP ships with its mapper already configured; an AD-backed IdP needs it set up under Config > Security > Identity Providers, where you select the provider and open User Attribute Mapping. The mapper pulls the user ID, username, first name, last name, email and roles from the IdP's response. Two consequences follow. The Authenticated level is granted the moment the user authenticates against the IdP, whatever roles they hold. Each mapped role is then added automatically as a child level under Authenticated/Roles, and those levels are scoped to the session bootstrapped from that authentication response, so the next login derives them again.

Check: run the IdP's test with a real AD account. The result must list the roles and the granted security levels. An empty role list means the mapper is wrong; correct it before touching any permission field, because nothing downstream can match a role that never reached the session.

How do you restrict the Config, Status and Home pages to AD groups? #

Under Config > Security > General, paste the comma-separated full paths into Gateway Config Permissions, Status Page Permissions and Home Page Permissions, and select the option requiring users to belong to at least one of these security levels.

Work in this order so a typo cannot lock you out:

  1. Keep an already-authenticated Gateway session open in a second browser tab, ready to revert the change.
  2. Confirm your own account holds at least one of the levels you are about to require.
  3. Enter the paths in the three fields, for example Authenticated/Roles/X, Authenticated/Roles/Y, choose the any-of radio option under each field, and save.
  4. Verify with two accounts in a private browser window: an AD user holding role X must open Home, Status and Config, and an AD user holding neither role must be refused. Both results together prove the path format and the any-of logic.

These page rules are one control on the Gateway itself; the network path in front of it is the subject of why layered OT security controls protect a network path. From then on the directory is the single source: adding a user to the AD group is all it takes to pick up the path, with no edit in Ignition.

What is the Security Level Tree for if the roles already work? #

The tree under Config > Security > Security Levels is the Gateway's reference hierarchy: every permissions screen that uses checkboxes builds its pick list from it, but it never decides who gets a level, so it can stay at its defaults while AD users hold role levels.

Consumer How it uses the tree
Designer tag permissions Checkbox tree built from the Security Level Tree
Perspective project permissions Same checkbox source
Security level rules and user grants on an IdP Levels are chosen from the reference tree
Gateway Config, Status and Home permission fields Plain text entry of comma-separated paths, with no checkbox UI

Two branches, Authenticated/Roles/* and SecurityZones/*, are populated from the user's roles and zones at login and need no node in the tree, which is exactly why a default-looking tree coexists with working role levels. Plan the tree early for the custom levels you intend to reference on tags and projects, and audit the IdP's security level rules and user grants before deleting any node.

Decision: read the tree as a pick list and grant access through roles or rules, never through the tree itself.

How do you give a local IdP user the same access as an AD role? #

Assign the role on the local user's definition: levels under Authenticated/Roles are generated from the user's roles at login, so a local user given role X carries Authenticated/Roles/X and the same Gateway page entries match.

You cannot pick Authenticated/Roles/X out of the tree and hand it to someone; it is not a grantable node, it follows the roles. The internal IdP's mapper is preconfigured, so its users get role-derived levels exactly the way AD users do. For a custom level that is not role-derived, such as a two-node path used on tags or a Perspective project, define the node in the reference tree first, then grant it with a security level rule or a user grant on the IdP.

Check: test the local user the same way as the AD account. The granted levels must show the expected entries under Authenticated/Roles, and the Config page login must succeed.

Example: how much bandwidth does the trial-time polling use between two gateways and a Designer PC? #

Far less than it looks: with 120 counted request-and-response exchanges per minute at 900 bytes each, the polling moves about 6.5 MB per hour, about 0.014 percent of a 100 Mbit/s link.

Those two figures are illustrative inputs in the form a capture gives you. Run a packet capture on the Designer PC, filter on the Gateway's web port, and read two numbers: the request rate of the trial-time GETs and the average bytes per request-and-response pair, headers included. Suppose the capture shows 120 exchanges per minute and 900 bytes per exchange:

  • Per minute: 120 exchanges/min × 900 B/exchange = 108,000 B/min.
  • Per hour: 108,000 B/min × 60 min/h = 6,480,000 B/h ≈ 6.5 MB/h, counting 1 MB as 1,000,000 B.
  • As a rate: 108,000 B/min × 8 bit/B ÷ 60 s/min = 14,400 bit/s ≈ 14.4 kbit/s.
  • Share of the link: 14,400 bit/s ÷ 100,000,000 bit/s = 0.000144, about 0.014 percent.

Decision: at those figures the polling cannot be what eats the bandwidth; it is roughly one hundredth of one percent of even a modest link. The MQTT modules keep their own broker connections, so licensing queries and plant data separate cleanly by port in the capture, which is how you confirm the counted rate is trial-time traffic alone. If the Edge host still crawls, the traffic is not the cause, so measure the host next.

Can you slow down the trial-time polling on an Edge gateway? #

No configuration for the polling interval appears in the documentation behind this article, and the legitimate path is to leave the licensing traffic alone: quantify it as above, and if the Edge host is still the bottleneck, give the gateway a stronger host.

The requests carry trial-time state between the main gateway, the Edge module and the Designer, so they are licensing traffic. Do not throttle, proxy, filter or rewrite them; interfering with license traffic risks breaking the trial accounting the modules depend on. If the rate on your network is far above the example, keep the capture and raise the interval question with the vendor's support, which owns that behavior.

Decision for the bogged-down Edge device: the measured polling is negligible on any plant network, so the slowdown comes from the single-board computer serving the Edge gateway and the Designer traffic. If your measurements show the board at its limit, host the Edge gateway on a fanless industrial mini PC instead, sized as the cabinet's edge and data-collection host.

Questions asked

Does the order of the paths in a Gateway permission field matter?

No. The any-of option treats the entries as a list, so Authenticated/Roles/X, Authenticated/Roles/Y admits the same users in either order. What matters is that each entry is a complete path whose spelling matches the granted levels printed by the IdP test, down to the plural node name Roles.

What happens if I delete a role node from the Security Level Tree?

Nothing is revoked by the deletion alone. A security level rule that still grants the level keeps granting it to every user who satisfies the rule, and tag or project permissions that require the level keep requiring it. Audit the IdP's security level rules and user grants, plus tag and Perspective permissions, before removing any node.

How do I use an AD role level on a tag permission in the Designer?

Tag permissions use a checkbox tree built from the Gateway's Security Level Tree, so first add the level under Config > Security > Security Levels, then pick it on the tag. Adding the node changes nobody's access by itself, because the level a session carries comes from roles and rules, never from the tree.

Why do the trial-time requests run over HTTP instead of MQTT?

They are Gateway web requests, not module data: the Designer and the Edge gateway query the main gateway's web port for the remaining trial time, while the MQTT modules keep their own broker connections. That port separation is what lets one capture tell licensing queries from plant data and count each class on its own.

Keep reading

  • How-to

    Rebooting the host PC from Node-RED running in a container

    Write a request file from Node-RED into a single bind-mounted directory; a host-side systemd path unit consumes it and runs one fixed reboot command. The container never holds a password, a shell, or the Docker socket — the worst a compromised container can do is force one reboot. Enable the units, test from the host first, then prove the reboot with uptime arithmetic.

    Edge computing and IIoT

  • Troubleshooting

    Edge tags unreachable after a PC replacement

    Keep the remote tag provider as it is. After an Edge PC replacement, the SecurityException on provider access traced to the MQTT Transmission module, whose entitlement did not survive the backup, license transfer and restore; reinstalling the module restored browsing from the central gateway. Confirm zones and tag-access policy first, then check module licensing before touching the provider.

    Edge computing and IIoT

  • Troubleshooting

    Why a device cannot publish MQTT to a broker on your PC

    Point the device's client at the PC's LAN address, not 127.0.0.1 — loopback always means the device that opens the connection. Then confirm the broker listener is bound to the PC's LAN interface on TCP 1883 and that Windows Firewall admits inbound connections on that port from the plant subnet. Fix those three and the publish path works.

    Edge computing and IIoT