$method = "POST"
$Body = @{Username="sbradley@email"
LastName="Bradley"
FirstName="Sam"
Email="EMAIL"
Alias="sbradley"
CommunityNickname="sbradley1"
IsActive="false"
TimeZoneSidKey="America/Los_Angeles"
LocaleSidKey="en_US"
EmailEncodingKey="ISO-8859-1"
ProfileId="ID"
LanguageLocaleKey="en_US"
UserPermissionsMobileUser="false"
UserPreferencesDisableAutoSubForFeeds="false"
}
Invoke-RestMethod -URI $URI -Method $method -Body $Body -Headers @{"Authorization" = "OAuth " + $access_token}I have tried different ways but get the error everytime.Many thanks in advanceJerry
6 件の回答

Hi Jerry,I am really glad that your problem is solved,Kindly mark it as best answer by marking this post as solved so that experts from the community will be able to help on some other posts who are really in need of it.Best Regards,Nagendra.P