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

Is there a way set the site actions drop down to be audience specific. Meaning that as the Owner of the site I want to be able to see it, but for other users (viewers, members, etc) I dont want them to see it. Any ideas?

use the SPSecuritytrimmedControl class that conditionally render the contents/control to the current user based on his/her permission.but my member see site actin,which contribute is sutible for my request?

(the viewer cant see site action but i want my user with permission add,del,update cant see some list site and cant create page in site ,but in site action have all site content and my member site can see it,please help me.)

share|improve this question
2  
Viewers don't see the Site Actions link by default. Is there any specific reason why you want to hide from users with Contribute access? –  Karthik Murugesan May 16 '11 at 4:46
add comment

1 Answer 1

The content of the SiteActions page is already security trimmed (PermissionString combined with PermissionMode), so if it is certain actions or new custom actions you want to add to the menu, you should change existing permissions or create a new custom action with a permission patter on it.

If you still want to hide the whole SiteActions control from specific users, you could try and place it inside an SPSecurityTrimmedControl web control. I havent tried this for the SiteActions control, but cant see why it shouldnt work. Let me know how it turns out.

share|improve this answer
    
I have tried to wrap the site actions declaration in master page into SPSecurityTrimmedControl as described here. It works. –  Anatoly Mironov Sep 24 '11 at 22:10
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.