{"id":178,"date":"2017-04-02T16:53:37","date_gmt":"2017-04-02T16:53:37","guid":{"rendered":"https:\/\/www.harepoint.com\/Blog\/?p=178"},"modified":"2019-02-26T13:16:22","modified_gmt":"2019-02-26T13:16:22","slug":"sharepoint-web-analytics-custom-fields","status":"publish","type":"post","link":"https:\/\/www.harepoint.com\/Blog\/sharepoint-web-analytics-custom-fields\/","title":{"rendered":"Custom fields from AD or SharePoint User Profile in Analytics reports"},"content":{"rendered":"\n<p>Since the version 16.1.0.0 of <a href=\"\/Products\/HarePointAnalyticsForSharePoint\/Default.aspx\"><b>HarePoint Analytics for SharePoint 2016<\/b><\/a> and version 15.6.0.0 of <a href=\"\/Products\/HarePointAnalyticsForSharePoint\/Default.aspx\"><b>HarePoint Analytics for SharePoint 2013<\/b><\/a>, the new great feature is available: now it is possible to include any custom fields from Active Directory or SharePoint User Profile, so that you can have those fields displayed in reports, as well as you can filter or group reports by that fields easily. This makes HarePoint Analytics reports even more flexible and informative. A large set of brand new reports can be created using this functionality. Below you can find a brief description of how to configure and how to use this new feature.<\/p><h2>Enabling data collection for custom fields<\/h2>\n<p>There is a large number of fields available both in Active Directory and in SharePoint User Profile. It is important to note that by default, HarePoint Analytics is only collecting data for some basic fields (such as Department, City, Title, E-Mail, etc) and not collecting data for any other fields until they are selected in the settings.<\/p>\n<p>That is, data collection for a custom field starts after the field is selected, and stops when this field is removed from the settings.\nIn order to manage the data collection for the custom fields, go to <b>Central Administration \u2013 Monitoring \u2013 HarePoint Analytics settings \u2013 Data collection from additional fields<\/b>:<\/p>\n\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/data_collection_additional_fields_1.png\"><\/p>\n\n<p>By default, no custom fields are selected:<\/p>\n\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/additional_data_source_2.png\"><\/p>\n\n<p>To add a new field, click <b>New \u2013 Add new data source<\/b>:<\/p>\n\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/add_additional_sources_3.png\"><\/p>\n\n<p>A form will open, where you can select any field either from <b>Active Directory<\/b> or from <b>SharePoint User Profile<\/b>:<\/p>\n\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/data_source_for_custom_field_4.png\"><\/p>\n\n<p>In this example, we are adding <b>Manager<\/b> and <b>Office<\/b> fields from User Profile:<\/p>\n\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/data_source_for_custom_field_5.png\"><\/p>\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/data_source_for_custom_field_55.png\"><\/p>\n\n<p>Now, both fields are displayed in a list, and (which is especially important) data collection for them has now started:<\/p>\n\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/additional_data_sources_list_6.png\"><\/p>\n\n<p><b>Note<\/b>: consider to include only the necessary fields, to prevent excessive database growth. For more details, refer to <a href=\"\/Products\/HarePointAnalyticsForSharePoint\/Documentation.aspx\">HarePoint Analytics Admin Guide<\/a>.<\/p>\n\n<h2>Using custom fields in reports<\/h2>\n\n<p><b>Viewing, sorting and grouping<\/b><\/p>\n\n<p>Immediately after the fields have been selected in HarePoint Analytics settings, they become available in reports. These fields, however, are not displayed in a data grid by default, so you would need to enable them using <b>Fields<\/b> button on a ribbon:<\/p>\n\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/fields_ribbon_7.png\"><\/p>\n\n<p>As you can recognize, the two newly added fields are <b>at the end of the list<\/b>:<\/p>\n\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/added_fields_8.png\"><\/p>\n\n<p>Select these checkboxes, then click <b>Apply<\/b>, and the custom fields are now displayed in a data grid:<\/p>\n\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/fields_data_grid_9.png\"><\/p>\n\n<p><b>Note<\/b>: the data in these fields will appear only after the data processing is completed. This depends on the schedule of HarePoint Analytics timer jobs. With the default schedule, the data will appear on the next day.<\/p>\n<p>The columns for custom fields act as any other regular column in HarePoint Analytics report, so you can do the following:\n<ul>\n<li>drag-and-drop these columns to <b>reorder<\/b> them as necessary\n<li><b>sort<\/b> by these columns by clicking on them\n<li><b>group<\/b> by these columns by dragging the column header above the table\n<\/ul><\/p>\n<p>For more details, please refer to <a href=\"\/Products\/HarePointAnalyticsForSharePoint\/Documentation.aspx\">HarePoint Analytics User Guide<\/a>.<\/p>\n<p>If you <b>export a report<\/b> that contains the custom fields, the output PDF or XLS file will include these fields as well.<\/p>\n\n<p><b>Filtering<\/b><\/p>\n<p>The custom fields are also available for filtering \u2013 click <b>Filter<\/b> button on a ribbon. The fields can be found under the corresponding sections \u2013 fields from Active Directory are under <b>Filter by Active Directory fields<\/b>, and fields from User Profile are under <b>Filter by SharePoint groups and users<\/b>:<\/p>\n\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/filtering_10.png\"><\/p>\n\n<p>In our case, the newly added custom fields are displayed under <b>Filter by SharePoint groups and users<\/b>:<\/p>\n\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/filtering_11.png\"><\/p>\n\n<p>Now, you can filter by these fields right as by any other fields.<\/p>\n<p><b>Note<\/b>: filtering will be possible only when the data processing is completed and there are data displayed in these fields in reports. This depends on the schedule of HarePoint Analytics timer jobs. With the default schedule, the data will appear on the next day.<\/p>\n<p>For example, to see visits only from Toronto and Ottawa offices, type <i>Toronto Ottawa<\/i> to the Office field:<\/p>\n\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/filtering_12.png\"><\/p>\n\n<p>If you want to see all visits, <b>except<\/b> from Toronto office, type &#8211; <i>Toronto<\/i> (begins with minus sign):<\/p>\n\n<p><img decoding=\"async\" src=\"\/Pictures\/Articles\/filtering_13.png\"><\/p>\n\n<p>For more details, please refer to <a href=\"\/Products\/HarePointAnalyticsForSharePoint\/Documentation.aspx\">HarePoint Analytics User Guide<\/a>.<\/p>\n\n<h2>Conclusion<\/h2>\n<p>The new feature to add custom fields from Active Directory or SharePoint User Profile makes the <a href=\"\/Products\/HarePointAnalyticsForSharePoint\/Default.aspx\">reporting capabilities in HarePoint Analytics<\/a> even more outstanding. You can now enrich the existing reports with the additional data you need, and even create brand new reports by grouping or filtering by the new fields.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since the new versions of HarePoint Analytics for SharePoint 2016\/2013 (16.1.0.0 \/ 15.6.0.0), the new great feature is available: now it is possible to include any custom fields from Active Directory or SharePoint User Profile, so that you can have those fields displayed in reports.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[4],"_links":{"self":[{"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/posts\/178"}],"collection":[{"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/comments?post=178"}],"version-history":[{"count":8,"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/posts\/178\/revisions"}],"predecessor-version":[{"id":828,"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/posts\/178\/revisions\/828"}],"wp:attachment":[{"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/media?parent=178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/categories?post=178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.harepoint.com\/Blog\/wp-json\/wp\/v2\/tags?post=178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}