I've create the SSO server in which when logging in, Salesforce will takes care of
Finding Account Specify
Create the Contact
Create the Community User Profile with that Contact.
- Specify the Federation ID from the subject.
Log the user into community.
What I have tried:
Success:
User & Contact exists in Salesforce = Logging in with SSO directly to community
Contact Exists but not User = Logging in with SSO directly to community
Failed:
- User & Contact does not exist in Salesforce = Salesforce uses SAML Attribute provided with the SAML Assertion from the SSO HTTP Post to find the source Account, create Contact and User.
Ref 1: https://help.salesforce.com/apex/HTViewSolution?id=000198728&language=en_US
Both the SSO production server and Ref 1 tutorial yield the same result. Which is
But I have check again that the profile Id that we used in the attribute is actually a valid profile Id.
I have specify every attributes according to Ref 1 and still get the same error.
Any thoughts on what is missing?
<saml2:Attribute FriendlyName="User.ProfileId" Name="User.ProfileId" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"> <saml2:AttributeValue xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Customer Community User</saml2:AttributeValue> </saml2:Attribute>