Reputation: 1
Hello Is there any People Picker Service/Web Service in SharePoint 2013? Actually i want to check some user existence in People Picker through PowerShell. I have a list of users in csv file.
Upvotes: 0
Views: 172
Reputation: 3615
Please refer the following powershell to check a user exists in a group:
$w = get-spweb http://my
$gs = $w.SiteGroups
$g = $gs[12]
$user = $g.Users.GetByEmail("[email protected]")
if($user -eq $null){write-host "User Not Found"}
Upvotes: 0