Chandra
Chandra

Reputation: 1

SharPoint People Picker

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

Answers (1)

Jerry
Jerry

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

Related Questions