Ryan 的个人资料Ryan's space照片日志列表更多 ![]() | 帮助 |
|
|
5月13日 Using Custom Profile Properties in Audience RulesRequirement Utilize audience targeting for a SharePoint Intranet so content can be targeted to users in a particular region of the world. The Active Directory structure stores users in organizational units that are hierarchical by Geography. For example, here is some of the OUs that exist in the directory
Options
Implementation Option 1 – NOPE! My first try was to create a new profile property in the Shared Service Provider (SSP) that maps to the distinguishedName in Active Directory. This did not work. Apparently, SharePoint only allows an Active Directory Attribute to be mapped to one profile property in the SSP. When an Active Directory connection is created for the profile import in an SSP, the distinguishedName property is automatically mapped to the AccountName profile property and cannot be changed; at least through the SSP UI. I found the following error after increasing ULS logging level for the Search Server Common category: 05/06/2009 10:57:34.82 mssdmn.exe (0x15C4) 0x0A60 Search Server Common Common 0 Monitorable [UserProfileImport]@CacheDataSourceMapping() For Source: litware, Mapping: The DS property (distinguishedname) ==> profile property (urn:schemas-microsoft-com:sharepoint:portal:profile:AccountName) has been retrieved! Error Code: 0x0 - File:d:\office\source\search\search\gather\protocols\profileimport\spsimporthndlr.cxx Line:989 05/06/2009 10:57:34.82 mssdmn.exe (0x15C4) 0x0A60 Search Server Common Common 0 Monitorable [UserProfileImport]@CacheDataSourceMapping() For Source: litware, the DS property (distinguishedname) has been mapped to another profile property. Its map to profile property (urn:schemas-microsoft-com:sharepoint:portal:profile:distinguishedName) is ignored! Error Code: 0x8000ffff - File:d:\office\source\search\search\gather\protocols\profileimport\spsimporthndlr.cxx Line:998 OPTION 2 – NOPE! My next steps was to look at the AccountName profile property which was being mapped to the distinguishedName Active Directory attribute. During the profile import, the AccountName is populated with the domain\username rather than the expected CN=UserID,OU=Appleton,OU=Wisconsin,OU=US,OU=NorthAmerica,OU=Accounts,DC=domain,DC=com string value that Active Directory stores. OPTION 3 – 3rd times a charm! This option requires some custom development. In this case, we already had a custom program that updates user profile pictures to standard corporate image location. I added some code to this program that would update a new user profile property with the value from the distinguishedName Active Directory attribute.
I can also use any OU in the UserDistinguished to build out an audience, users by region, country, state or site. |
|
|