Skip to content

Commit

Permalink
Update to sample
Browse files Browse the repository at this point in the history
Updated to include support for adding to the shared address book
  • Loading branch information
Peter Schulz committed Mar 7, 2015
1 parent ee7c865 commit 68f3a34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Samples/CreateUsers.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Add-PSSnapin ShareFile
$sfClient = New-SfClient

#The import file would typically be an exported contact list from Outlook or equivalent
$contacts = Import-Csv .\Contacts.CSV
Expand All @@ -19,6 +20,6 @@ foreach ($contact in $contacts)
$user.Company = $contact.Company

#create client user
Send-SfRequest $sfClient -Method POST -Entity Users -Body $user
Send-SfRequest $sfClient -Method POST -Entity Users -Body $user -Parameters @{"addshared" = "true"}
}
}

0 comments on commit 68f3a34

Please sign in to comment.