<div dir="ltr">I'm trying to update our scripted attributes to IdP v3 + Nashorn.<div><br></div><div>Based on the v2 compatibility section, I expected that this might work...</div><div><br></div><div>    principal = requestContext.principalName;<br></div><div><br></div><div>but that returns...</div><div><br></div><div><div>net.shibboleth.idp.attribute.resolver.ad.impl.ScriptedAttributeDefinition.doAttributeDefinitionResolve(ScriptedAttributeDefinition.java:152)</div><div>Caused by: javax.script.ScriptException: TypeError: Cannot get property "principalName" of null in <eval> at line number 11</div></div><div><br></div><div>The docs mention a number of contexts that are available as variables.  I assumed that meant they'd be available without available without .getSubcontext().  I've tried both resolutionContext.principal and resolutionContext.getPrincipal(), but get errors stating that resolutionContext is null.</div><div><br></div><div>What am I missing?</div><div><br></div><div>Liam</div></div>