Monday, April 22, 2019

Solving SAML Error: Exception while processing SAML response: Un-recognized Company Name [ Name]

Solving SAML Error: Exception while processing SAML response: Un-recognized Company Name [ Name]

A user might encounter the following error when setting up SAML Single Sign-on:

Exception while processing SAML response: Un-recognized Company Name [ Coyotes ] Reason:com.netledger.database.signup.NLSignupRecordNotFoundException: No signup record found for Class [ class com.netledger.database.signup.NLCompanyRecord ] with Key [ Coyotes ]

The error occurs when the user did not indicate their NetSuite Account ID on the 'account' attribute. Most of the time, users think that the account attribute should contain the company name. However, the correct value that they should indicate on this attribute is their NetSuite account ID which is usually in numeric format.

For troubleshooting, the user can determine what is the value set on the account attribute by getting the SAML response.
 
On the SAML response, the user can look at the 'account' parameter. See sample below:

saml:Attribute Name="account">
                saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
                                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                     xsi:type="xs:string"
                                     >Coyotes</saml:AttributeValue>
            /saml:Attribute>
        /saml:AttributeStatement>

To solve this, the user needs to know the account ID. Here are two ways of getting it:

1. Navigate to Setup > Integration > Web Service Preferences:
2. Open the following URL: https://system.netsuite.com/app/crm/support/contactus.nl?l=T

Upon getting the account ID, the user must login to the IDP configuration and update the value indicated on the account attribute. This must reflect on the SAML response as well. Sample below:            

saml:Attribute Name="account">
                saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema"
                                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                     xsi:type="xs:string"
                                     >98765432</saml:AttributeValue>
            /saml:Attribute>
        /saml:AttributeStatement>


No comments:

Post a Comment