Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 526 Bytes

New-PCCustomerUser.md

File metadata and controls

15 lines (8 loc) · 526 Bytes

Partner Center PowerShell Module (preview)

New-PCCustomerUser

Get a customer

$customer = Get-PCCustomer -tenantid '<tenant id GUID>'

Create a customer user

$password = '<password>'
$passwordSecure = $password | ConvertTo-SecureString -AsPlainText -Force

New-PCCustomerUser -tenantid $customer.id -usageLocation '<country code>' -userPrincipalName '<upn>' -firstName '<first name>' -lastName '<last name>' -displayName '<display name>' -forceChangePassword $true -password $passwordSecure