Using custom security level in "isAuthorized"

I created a security level intended to group specific roles that have permission to use on screen controls that affect running machinery. The test login on the IDP shows this level being attached to the correct user logins, based on their defined role.
level_1

I want to make a control visible based on this new level, "machineAccess", but the expression

isAuthorized(false,"Authenticated/machineAccess")

always returns false. Any ideas as to what I'm missing? It seems like it should work.

(Background note -- I have role based security already working, but the roles allowed this access are in flux and I would like to be able to add or remove a role without changing every binding each time.)

Thanks for any suggestions you can offer.

You'll need the "/Roles/" in there as well. Like this:
isAuthorized(false,"Authenticated/Roles/machineAccess")

1 Like

Thanks for the quick reply.

That doesn't seem to make a difference. To be on the safe side, I also tried closing and reopening Designer to force a new login, but no joy.

I can see it isn't obvious in the screenshot, but on the tree, machineAccess is a child of Authenticated rather than Roles. (And when the node is selected on the Security Levels screen, the path shown is Authenticated/machineAccess).

I tried adding a new level under Roles, but (like the existing defined roles) that didn't show up on the rules page at all so I couldn't configure any logic there.

It probably is some little syntax thing like this, but I just can't see it.

Did you ever find a fix? I'm having a similar problem, I think it's syntax related as well.