Hot answers tagged

5

Possibly the most common approach for dealing with this is to use the ASP.net LoginView control. In your master page/page layout/whatever, simply wrap the markup/controls you wish to display to authenticated/anonymous users in a LoginView control - this will allow you to easily specify who should see what. Effectively you don't need to do anything '...


5

No, audiences are not supported in the SharePoint client object model. Its only supported in the Server Object Model. In the past I created a Web Service in SharePoint that could take a user name and return the audiences for that user, leveraging the Server Object Model...but that approach probably doesn't work in your scenario.


4

No matter how you do it it's going to be a major headache when you're only limited to SharePoint Foundation. You don't have any advanced out of the box user/audience control with SharePoint Foundation. When you insert webparts, to avoid heavy load on the page, set them to hidden right after you insert them on the page. That way they are already hidden and ...


4

Create the links using a "Content Editor Web Part" and assign "Target Audiences" to that web part. So that the links can be targeted to appear only to people who are members of a particular SharePoint group or audience. Reference Links: http://msdn.microsoft.com/en-us/library/ee906649(v=office.14).aspx http://social.technet.microsoft.com/Forums/en-US/...


3

Step 1 The AudienceLoader class is just a cache of the user's audience information and so it can sometimes give some misleading results. Try using the Audience.IsMember function instead: Audience audience = audienceManager.GetAudience("Testing"); SPUser currentUser = SPControl.GetContextWeb(Context).CurrentUser; if (audience.IsMember(currentUser.LoginName)...


3

AudienceID is an internal field set by SharePoint. You can't set it, but you can retrieve it if it has been saved to the db. What is your requirement that means you have to control the audience ID? Typically you would retrieve Audience by name. If you need to you can then access the AudienceID value. Hope that helps.


3

Performing these steps should resolve your issue: Login to a farm server (that hosts SharePoint Server) as the farm setup user administrator account. Launch Central Administration as administrator. Go: Application Management > Service Applications > Manage service applications. Select (don't click on) your user profile service application. Up above, on the ...


2

As Kishork noted, this particular issue was related to a custom audience filter. Just wanted to add that we've seen this same issue several times in our Sharepoint 2010 environment after using Metalogix to move content, or running various jobs. The initial symptom is the same - the target audience property isn't visible when editing a web part. Running ...


2

Solved By mistake we had a "-" char in the word "Culture" in web.config Long version: We were implementing custom audience Runtime Filter to enable targetting for Anonymous users and we replace the OOTB "Microsoft.Office.Server.Audience.AudienceManager" runtime filter with our custom audience Runtime Filter When making the entry into the web.config ...


2

You may get some errors while running this script but you will find that its worked too :) URL FIX $hubUrl = "NEW_NAME_OF_WEBAPP" $find = "OLD_NAME_OF_WEBAPP" "Installing..." Add-PSSnapIn Microsoft.SharePoint.PowerShell if ([Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") -eq $null) { throw "Unable to load Microsoft.SharePoint.dll!"; ...


2

Are the external zone just an alternate access mapping (AAM) or is it an extended web app (new zone) with other authentification?


2

AudienceLoader objAudLoader = AudienceLoader.GetAudienceLoader(); AudienceManager.IsCurrentUserInAudienceOf(objAudLoader, audience, false) The AudienceLoader belongs to Microsoft.Office.Server.Audience namespace and documented here: http://msdn.microsoft.com/en-us/library/microsoft.office.server.audience.audiencemanager.iscurrentuserinaudienceof.aspx ...


2

To my knowledge you do not add User to an Audience, but rather build rules that would include the respective user to an audience. Creating rule based Audiences is available here http://msdn.microsoft.com/en-us/library/ms498178 Then you could check is user is part of an Audience in a particular Web, see here http://msdn.microsoft.com/en-us/library/ms500775


2

Please refer link below link Mr. Raju http://social.technet.microsoft.com/Forums/da/sharepoint2010programming/thread/181fdb91-b16d-4e51-a9a4-454c8ad1c374 You will find that it is not possible because SharePoint manages GUID internally. so you can not assign it. in some cases it is possible but in your case it is not possible.


2

Are you trying to hide/show links in top navigation bar ? If so, you can assign group level permissions to page which you want to hide . i.e. click edit page in site action menu select page tab in command bar and click on Page permissions from ribbon it will redirect you to permissions page and click on stop inheriting permissions and select the group ...


2

Most of the navigation settings are heavily cached within the site collection object cache. If your cache is large (by default it's 100mb so it can already fill a lot into) you might run into a cache issue. Try to apply all relevant settings (ordering, hiding, audience targeting) then reset your site collection object cache (from the root of your site ...


2

No The only way to do this would be creating a separate page for each "audience" which are security trimmed. You can then place a List View Web Part on each page which contains your custom view. Of course, the challenge then is providing appropriate navigation :)


2

You can either place your links as hyperlinks in a Content Editor web part or you can use the Summary Links web part and place that web part on your page. Then "Edit Web part" >> Advanced >> Target Audience >> Add or Select your Group.


2

We reported this to MS Support and the behaviour is fixed with the "September 9, 2014 Cumulative Update for SharePoint Server 2013 package" We checked the fix on three farms and it worked. Just don't be confused by the error description in th KB article as it does not seem to have anything to do with this problem here. You can the CU here https://support....


2

You can extend the SPSecurityTrimmedControl class to create a custom control that discriminates based on group membership rather than permission level. using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.SharePoint.WebControls; using System.Web.UI; using Microsoft.SharePoint; namespace My.Custom.Controls { ...


2

It doesn't work in my tenant either. A workaround is to create a SharePoint group, add the built-in group to it, and then target the link to the group you created.


1

Verify that these two checkboxes are checked in your CQWP properties: Apply Audience Filtering Include items that are not targeted I believe that you need the "Apply Audience Filtering" for the item level targeting to work. "Include items that are not targeted" is needed to show things that have no targeting.


1

I take it you use security groups for your audience (memberOf)? If so, you need to import those security groups as well in your user profile synchronization connection, as the sync both handles users and SG (for audiences).


1

Have you tried reproducing this web part using a Data View Web Part in SharePoint Designer 2007? I believe DVWPs have Target Audience capability.


1

Global audiences are created by utilizing the user profile information that is imported into user profiles. An administrator will create an audience rule or rules that will review the profiles currently imported by the user profile import and either include the person in the audience or remove them from the audience based on whether or not they meet the ...


1

By turning on audience targeting you are essentially saying that the contents of this pages library are going to be targeted at specific users/groups. If your expecting most people to be accessing the site via anonymous access then how can you target any individual users or groups? So what is the benefit to having audience targeting turned on? If there is ...


1

Yes. Global audiences are stored as GUIDs within the audience targeting field, and the default email alert template doesn't do any extra formatting to make it more user-friendly.


1

I love how "This doesn't quite seem complicated enough to me." is the typical response from most SharePoint folks when presented with a 5 step process to get some basic out of the box thing to work. I'm constantly astonished by the sheer amount of unnecessary complexity in this product. Anyway... Not that this will be that helpful but; I ran into a similar ...



Only top voted, non community-wiki answers of a minimum length are eligible