Unable to Onboard a ZTNA Web Application for one specific user, when other users can access the application without issues.
An "Unauthorized operation" message is rendered on the users browser, with a corresponding message indicating "Failed SAML attributes login" as shown below:
SAML Trace would indicate that we have the appropriate user and group information.
Direct URL its self not working its showing "unauthorised operation" error.
ZTNA admin unable to locate any Logs in SAC portal using request ID.
Cloud SWG.
ZTNA.
Generic SAML with no SCIM.
SAML IDP server missing a required email attribute.
Make sure that SAML IDP server sends the mandatory attributes within the assertion - in this case, the email attribute, with a value that is unique.
After analysing the SAML tracer logs exported at the time of the issue, the following observations were seen:
<saml2:Attribute Name="email"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"
>
<saml2:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xs:string"
>[email protected]</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="email"
NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"
>
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string"
/>
</saml2:Attribute>
The ZTNA authentication service did not find a matching user with the email address and did not forward it as expected.