3

Is there any way I can show my webpart only to people who have full control on website ?

I have a webpart which creates a sub site, but I want it to show only to people who have full control, but I can't see a way as in office 365 I can't use DoesUserHavePermissions method.

Mathematics
  • 1,753
  • 5
  • 28
  • 56

2 Answers2

2

Consider creating an audience that contains your SharePoint group(s) with Full Control.

Then target your web part to the new audience:

  1. Edit the page and then choose Edit web part
  2. Expand the Advanced section
  3. Add new audience to Target Audiences
Phil Greer
  • 2,287
  • 9
  • 21
  • 23
2

You might be able to do that by wrapping whatever content you want to show in a SecurityTrimmedControl, and passing the appropriate permissions.

http://fusionovation.com/post/2008/09/18/security-trimmed-controls-in-sharepoint.aspx

Amadeo Gallardo
  • 1,635
  • 15
  • 25