One way to profile community advocates and members from throughout the organization is to find a way to profile them. A great way to do this is to define a user profile property that can track the communities that the person is associated with. This one field can be used to support all of the communities throughout the organization so it should only be created once. The great thing about this property is that it can be used to help find people within the user profiles, but also it can be used to display the members within the community site itself. In this section, we will define the custom user profile property and then create a custom page that lists people associated with the community.
To create a new Property, simply click the New Property menu item. Creating a new property requires a little more thought and planning since there are a number of different options and behaviors available. Following are the settings for each of the three fields.
From the Manage User Properties screen, click the New Property menu item as shown in the following screenshot:
The Communities user profile property will be used to link a user to a specific community group. On the New Property screen, set the attributes as shown in the following table:
Property |
Value |
---|---|
Name |
Communities |
Display Name |
Communities |
Type |
String (Multi Value) |
Length |
250 |
Multivalue Separator |
Semicolon |
Default User Profile Subtype |
Yes |
Description |
Community Site Membership |
Policy Setting |
Optional |
Default Privacy Setting |
Everyone |
Edit Settings |
Allow users to edit values for this property |
Show in the profile properties section |
Yes |
Show on the Edit Details page |
Yes |
To make it easier to retrieve people in specified groups we will identify the Communities property as a Managed Property. A managed property will set a formal mapping between a keyword and one or more metadata property fields.
To create the mapping perform the following steps:
The Member page will display a listing of all of the group members using SharePoint's People Search and the People Core Results Web Part to execute a set query that looks at the Communities field previously defined.
To create the Member page perform the following steps:
To add the People Search Core Results Web Part to the page perform the following steps:
To configure the pre-set members search query:
20
. Communities:"SharePoint"
.The Fixed Keyword Query value added in step 6 will perform a managed property search for the Communities field and look for matches with the value "SharePoint" which is the name of this community.
The final rendered view is displayed in the following screenshot:
3.15.143.181