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.

  • Did you find a solution? – Phil Greer Apr 12 '14 at 15:29
  • nope, not yet , it's a custom webpart, i can't find audience, also it's a web template, would setting will be saved when new site will be created, thank you – Mathematics Apr 12 '14 at 16:09

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

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


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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