Tag Info

Hot answers tagged

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 ...


3

The only out-of-box WebPart that supports audience filtering by content item is the Content Query Web Part. It is part of the Publishing Infrastructure Site Collection feature and requires SharePoint Server edition (not included with Foundation). Add a CQWP to your page, wire it up to your linked list, and then click the checkbox to enable Audience ...


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.


2

Create a new view based on that public view, you'll be able to set it to personal. Then you can delete the public view.


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

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

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 ...


1

To edit an audience 1. Verify that you have at least one of the following administrative credentials: You are a member of the Farm Administrators group. You are a service application administrator for the User Profile service application that contains the audience that you want to edit. You are an administrator for the Audience feature of the ...


1

Bleh, I wasn't listed in the permissions of the service application even though I was listed as an administrator. Image and fix courtesy of get-spscripts


1

This is SharePoint 2013 limitation and as you can read in Tobias blog, there is even more issues with Top navigation. But if anyone can provide custom solution for this I am willing even to buy it. Thanks to Tobias blog: http://blog.lekman.com/2013/01/limitations-with-managed-metadata.html


1

Unfortunately, only solution 2 will satisfy your needs. Like "teylyn" said, audience targeting will only stop you from either seeing the form or not. You will have to apply security trimming based on the user's department and relevant SP group to which they belong too (assuming that's how you have it structured, each department would have their own ...


1

I was able to do this. I created a custom stored procedure (by copying and modifying the one used by the API to create audiences) to create the audience with the GUID I needed. Look at the ORGLE procs inside the Profile DB to see how this is done. Anyways, once I created the audiences with the proc. I used central admin to configure the rules. In general, ...


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

Is the active directory group a nested group or are all members added directly to the group. Nested groups as far as i know are not supported by the audiences. If you have a custom audience make sure that the audience is compiled, otherwise SharePoint didn't know who is in the audience. You will find more information on audience here ...


1

Try AudienceManager.IsMemberofAudience http://msdn.microsoft.com/en-us/library/ms550183.aspx


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 ...


1

At least for SP 2007 you should not have to give permissions to a group that you only are using for audiencing


1

I have seen this when audience rules were based on distribution lists rather than "real" compiled audience rules



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