0
votes
0answers
66 views

How to set Target Audience in WebPart Programitically?

How to set Target Audience in SharePoint 2013 web part Programitically? i am trying to do it by following link.But i gor error of access denied even if i use SpSecurity.RunwithElvetedprivilages.. ...
2
votes
2answers
231 views

Can we avoid clunky hiding of WebParts?

It's a real drag and performance killer to have to load all the WebParts on a page and then laboriously hide and reveal all the ones relevant to user groups / permission levels. Especially when on the ...
0
votes
1answer
145 views

SharePoint 2010 One of two web front ends have broken Audience on web parts

I have encountered a problem with Audiencing in our SharePoint 2010 farm. Hopefully someone out here has encountered this before. We have 2 web front ends (web1 and web2) 1 app server (app1) and a ...
0
votes
2answers
1k views

how to hide webpart in Home.aspx based on some condition

I work in a financial company where we have Resident Engineers and they have account in Active Directory but they dont have official email addresses. My portal acrhitecture is like everyonce can ...
1
vote
2answers
754 views

Displaying some WebPart controls only to some user/groups

I need to hide some elements of a webpart and only show them to some specific grups of users. How can I do this ? I think it could be done with an If or Switch block, using the name of the grup of ...
2
votes
0answers
574 views

Setting an audience from declarative WebPart?

I have a module that deploys some page. I'm adding webparts to these page, using a <AllUsersWebPart> node within a <View>: <View WebPartZoneID="Body" WebPartOrder="5" ...
0
votes
2answers
379 views

Sharepoint Custom WebPart 2007- Target Audience Missing

I have created a site in SP 2007 and its of type Teamsite. I have created a webpart and I want it to target for a group and unfortunately I cannot see target Audience Text box for that Webpart, What ...
1
vote
2answers
669 views

Target audience option not available in webparts for one web application

I have a web application where I am trying to use audience targeting on some Content Editor Web Parts in the root web. However, the 'Target Audiences' option is nowhere to be seen in the 'Advanced' ...
0
votes
2answers
4k views

target audience not working as expected with site group

In my SP2010 farm, I have : one domain group "AD Group" the group have domain\user2 as a member one site group "SP group" with the following members AD group domain\user1 On the home page, I ...
0
votes
1answer
570 views

Getting “Error: Access Denied” when Target Audience to Sharepoint Groups for webpart

I am trying to target a webpart to members of SharePoint groups. I'm doing this through the Advanced -> Target Audiences option for the webpart, and no issues seem to arise when actually adding ...
0
votes
1answer
1k views

set a person / user as target audience for a custom web part in sharepoint 2010

is there any way by which i can add a specific user or group as target audience of my custom web part programatically ?? i am using SPWeb web = SPContext.Current.Web; ...
0
votes
1answer
239 views

How can I find out if the current user is a member of a particular audience?

I am trying to do some things in a web part based on the audience that a user is in. This is my first pass at the code, and it works on my dev VM. However on the test machine it fails blocking access ...
0
votes
1answer
439 views

Audience targeting only works when browsing from the SharePoint server, using internal address

I have a web part which I am trying to target to a specific audience (the 'Staff' audience.) I have the web part in the home page of a site that has anonymous access enabled. I have set the Target ...