1

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

1 Answer 1

3

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"
}
1
  • +1 just when I was about to submit my code, you posted yours :) May 31, 2012 at 20:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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