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

In my left hand side bar I have 3 links to downloads- one for each of three different companies. I need each company to log in and see only the one link to their companies downloads - not all 3 links for each company.

In the code I was hoping to put a security trim around each link that only ran the code if the user is a member of that companies group.

Is this possible?

i.e.

<SharePoint:SPSecurityTrimmedControl
 ID="SPSecurityTrimmedControl1" **Group="Company1"** runat="server">

'Link to Company one downloads' </SharePoint:SPSecurityTrimmedControl>

If not is there a good workaround?

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

If you use Sharepoint 2010 Server (not Foundation) you can put these links into three different content editor web parts and define target audiences for them. http://blog.sharepointlearn.com/2011/02/20/use-audience-targeting-to-filter-who-sees-an-assessment-in-sharepoint/

share|improve this answer
    
That's great thank you - I can even spend some time on the UI for once! –  Steve Allen Jan 23 '13 at 11:01
add comment

Use Audience targeting in the navigation.

share|improve this answer
    
This is a fair workaround, but let's not mistake comparing Audience targeting to security, because it's not. –  Mike Apr 11 '13 at 21:33
add comment

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.