0

I have a web part using an external list through an external content type which uses Business Data Connectivity with SQL Server Authentication through the use of a Secure Store Service key. Everything works fine until I try to access the page I'm using the list on with a user who isn't the site owner.

The first error I got was about Business Data Connectivity permissions so I went in and added my test user to the BCD permissions list and gave him Execute permission. That, I think, should allow him to use the web part with the external list IF I were connecting to the database with user authentication.

However, in my case, since I'm using SQL authentication through a Secure Store Service key, I get an error about that key entry which is completely unhelpful. I first figured it was another permissions issue so I added my test user to the "Target Application Administrators" of the key which, first off: doesn't seem right that every user would have to be an administrator for the key, and second: still just doesn't work. Anyone have an idea? I would post the error I get but it literally tells me nothing other than mentions the name of my Store Service Key and gives me a long, meaningless stack trace.

1

If you have an issue with the Secure store, it might be wise to re-create the application definition. Your scenario, if I got it right, should enable a pass-through SQL connection to all users by using a single SQL Account. In such situation you need to verify that the Secure Store application is properly configured:

  1. Create it for a Group in the "Target Application Type".
  2. User simple UserName & Password authentication (not Windows Username & Password which are defaults) when asked for credential types (you will know you choose right when asked for credentials themselves.
  3. In the members put either Users or an AD Group where you have your users which shall be considered as allowed to use access this connection, aka "mapped to this credentials" (this is different than the BDC security!).
  4. Set credentials once ready.

This has been only for Secure Store. In BDC you need to enable people to actually access the definition of your model, whereas the secure store only makes for an SSO like authentication transparent.

1
  • Thanks, I think my problem was that I didn't create it for a Group in the Target Application Type. The weird thing is it works for users with Read access but not for users with Restricted Read or Contribute access. Is this intentional? – Fenoec Oct 21 '13 at 14:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.