Skip to content

Commit

Permalink
Add ForcePasswordChange option to azuread.NewUser (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
fraliv13 committed Feb 14, 2024
1 parent cdc2648 commit 6766db7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ func deployEntraUser(target provisioning.ProvisioningTarget,
}

user, err := azuread.NewUser(ctx, entraUser.Name, &azuread.UserArgs{
UserPrincipalName: pulumi.String(entraUser.Spec.UserPrincipalName),
DisplayName: pulumi.String(entraUser.Spec.DisplayName),
Password: initialPassword,
UserPrincipalName: pulumi.String(entraUser.Spec.UserPrincipalName),
DisplayName: pulumi.String(entraUser.Spec.DisplayName),
Password: initialPassword,
ForcePasswordChange: pulumi.Bool(true),
})
if err != nil {
return nil, err
Expand Down

0 comments on commit 6766db7

Please sign in to comment.