A cloud-based identity and access management service for securing user authentication and resource access
Hello @Gilbert Justin Hernandez , the error is caused by passing an argument of type Microsoft.Open.AzureAD.Model.PasswordProfile. You need to pass one of type IMicrosoftGraphPasswordProfile. Try doing so as a hashtable:
$params = @{
AccountEnabled = $true
DisplayName = "Test User"
PasswordProfile = @{
Password = "string"
}
UserPrincipalName = "******@onmicrosoft.com"
MailNickName = "TestUser"
}
Let us know if you need additional assistance. If the answer was helpful, please accept it and complete the quality survey so that others can find a solution.