We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee7c865 commit 68f3a34Copy full SHA for 68f3a34
1 file changed
Samples/CreateUsers.ps1
@@ -1,4 +1,5 @@
1
Add-PSSnapin ShareFile
2
+$sfClient = New-SfClient
3
4
#The import file would typically be an exported contact list from Outlook or equivalent
5
$contacts = Import-Csv .\Contacts.CSV
@@ -19,6 +20,6 @@ foreach ($contact in $contacts)
19
20
$user.Company = $contact.Company
21
22
#create client user
- Send-SfRequest $sfClient -Method POST -Entity Users -Body $user
23
+ Send-SfRequest $sfClient -Method POST -Entity Users -Body $user -Parameters @{"addshared" = "true"}
24
}
25
0 commit comments