SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In share point i have defined a custom property and in central admin it is showing that 414 users are using this property is there any way that i can get the details of the user using that property

enter image description here

share|improve this question
up vote 4 down vote accepted

Use some powershell like

$url = "http://sp2010/"
$site = Get-SPSite $url
$context = Get-SPServiceContext $site
$profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context)
$profiles = $profileManager.GetEnumerator()

while ($profiles.MoveNext()) {
  $userProfile = $profiles.Current
  $name = $userProfile.DisplayName
  $yourProp = $userProfile["YourPropName"]
  Write-Host "$name;$yourProp"
share|improve this answer
+1 just when I was about to submit my code, you posted yours :) – Falak Mahmood May 31 '12 at 20:13
Thank you very much .It solved my problem. – Anil May 31 '12 at 20:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.