Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am attempting to solve/plan a strategy for a business using SharePoint 2010. They have data from multiple external databases. I would like to display this data in a report based on the current logged in user. These users are clients that would like to view current reports in a friendly UI. My initial thought is to use and ECT and create an association between external data sources. Then use filters to filter the unwanted data. Is this the right approach to this problem? Is this possible using SPD? What are the best webparts(CQWP, DVWP, ect...) for this?Any suggestion will be appreciated.

share|improve this question

1 Answer 1

When using BCS, the best and the most secure way to filter data based on user is to use UserContext filter in BCS model.

If the UserContextType that is specified is QualifiedUserName, the value that is passed to the input parameter is one of the following:

  • If the login mode of the user is Windows Classic, the value is the Windows logon name for the user. This contains the domain name and the user name (for example, domainname/username).

  • If the login mode for the user is claims-based, then the value passed is the unique value that identifies the user (for example, membership: username, username@provider.com).

(quote from MSDN)

To implement this, you have to export BCS model from SharePoint Designer, edit it by hand to include the UserContext filter, and then import back to SharePoint through BCS Service Application on Central Administration site.

Detailed article explaining this approach step-by-step:

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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