
JoeP.16229 (Customer) asked a question.
I have configured Sales force portal using SAML 2.0. Unfortunately we are getting the error "You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary." Everything is working in out sandbox version, maybe we have missed something in our production setup but I can't find what it is. Any ideas?

Hi @JoeP.16229 (Customer) , Thank you for reaching out to the Okta Community!
We've seen something like this in the past.
We used a SAML tracer (https://developer.okta.com/docs/guides/saml-tracer/main/) to track down the exact error (Audience Assertion didn't match). Then we located the KB here for the fix:
https://support.okta.com/help/s/article/Salesforce-error-the-audience-in-the-assertion-did-not-match-the-allowed-audiences?language=en_US
In the setup instructions for setting up Salesforce from the Okta page, it says the following:
Entity ID:
If you have a custom domain setup, use https://[customDomain].my.salesforce.com
If you do not have a custom domain setup, use https://saml.salesforce.com
We changed the custom domain to match our entire custom domain login with the org ID (the same for the sign on URL) and this resolved the issue. Based on the instructions copied from the guide, we would not have naturally included the orgID at the end of the URL as the instructions only mention the first part of the URL, which is the custom domain.
Hope it helps!