When you create site settings you need a user profile service application to sync with the data base to retrieve the audience settings and profile details.

Here I will quickly explain about how to configure the User profile application through the UI method,

Goto SharePoint 2013 Central Admin-->Application Management-->Manage Service Applications-->Service Applications tab to enable the ribbon--> Create a UPSA.

Here we will see about the Powershell method. It is a very simple one to create for admins.

GET ALL User profile properties

Syntax
  1. # -----------------------------------------------------------------------------
  2. # Script :Export User Profile Information Value in CSV
  3. # Author : Gowtham Rajamanickam
  4. # Date : February 12 2017
  5. # Version :1.0
  6. # -----------------------------------------------------------------------------
  7. Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
  8. $siteUrl = "https://gowtham.sharepoint.com"
  9. $outputFile = "D:/sharepoint/Documents"
  10. $Context = Get-SPServiceContext -Site $siteUrl
  11. $userprofileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($Context);
  12. $Userprofiles = $userprofileManager.GetEnumerator()
  13. $collection = @()
  14. foreach ($Userprofile in $Userprofiles) {
  15. $profileProperty = "" |
  16. select "FirstName", "LastName", "AccountName", "PreferredName" , "Department" , "Manager" , "Office" , "Location" , "WorkEmail" , "Assistant" , "AboutMe" , "Language" ,"Role"
  17. $profileProperty.AccountName = $profile["FirstName"]
  18. $profileProperty.AccountName = $profile["LastName"]
  19. $profileProperty.AccountName = $profile["AccountName"]
  20. $profileProperty.PreferredName = $profile["PreferredName"]
  21. $profileProperty.Manager = $profile["Manager"]
  22. $profileProperty.Department = $profile["Department"]
  23. $profileProperty.Office = $profile["Office"]
  24. $profileProperty.Location = $profile["Location"]
  25. $profileProperty.WorkEmail = $profile["WorkEmail"]
  26. $profileProperty.Assistant = $profile["Assistant"]
  27. $profileProperty.AboutMe = $profile["AboutMe"].Value
  28. $profileProperty.Language = $profile["Language"]
  29. $profileProperty.Role = $profile["Role"]
  30. $collection += $profileProperty
  31. }
  32. $collection | Export-Csv $outputFile -.csv
Thanks for reading my blog.