Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How can I tell which part of a site collection a users is in so I can programatically alter a web parts context

$
0
0

We have multiple client sites in a SharePoint portal that contain librarys and lists for the Clients data.  We have a custom list web part (Client Contacts) that retrieves MS Dynamics CRM data (Contacts) which we want to deploy in each Clients site.

We are using generic credentials to access CRM so we need a method to allow us to filter the results returned based on which site the user is in when they call the CRM List.

Note: Some of our users have permissions to enter one or more Clients sites so it cant be a user specific filter.

Our structure is

->Shared Portal

  • Client A
  • Client B

etc.

So we need a method of identifying the Client Site the user is in (Client A or Client B) in SharePoint so we can pass that as a parameter to CRM to filter the results returned.


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>