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

permissions on WebParts via Code (Visual Studio- C#)

$
0
0

Hi all,

I have View with 2 webparts on the view

in the properties for the first webpart I set audience: G1-Group

that mean all users in the G1-Group can see the webpart..

in the properties for the second webpart I set audience: G2-Group

that mean all users in the G2-Group can see the webpart..

But some of users are in BOTH-Groups in G1- & G2-Group

how can I achieve this?

I want that users where are in both groups see only Second Webpart

P.S. I want do that only via Code (Visual Studio- C#)

thanks in advance
BR
Ahmad


SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012


Viewing all articles
Browse latest Browse all 25064

Trending Articles



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