From 81a11d6dd70be4025e9528fdd8af6d88e6a19783 Mon Sep 17 00:00:00 2001 From: Alessio Greggi Date: Fri, 2 Aug 2024 13:10:21 +0200 Subject: [PATCH] add must_change_password attribute to documentation Signed-off-by: Alessio Greggi --- docs/data-sources/user.md | 1 + docs/resources/user.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/data-sources/user.md b/docs/data-sources/user.md index dc2cce2c..e08409e6 100644 --- a/docs/data-sources/user.md +++ b/docs/data-sources/user.md @@ -26,5 +26,6 @@ data "rancher2_user" "foo" { * `name` - (Computed) The user common name (string) * `annotations` - (Computed) Annotations of the resource (map) * `enabled` - (Computed) The user is enabled (bool) +* `must_change_password` - (Computed) The user must change password at first login (bool) * `principal_ids` - (Computed) The user principal IDs (list) * `labels` - (Computed) Labels of the resource (map) diff --git a/docs/resources/user.md b/docs/resources/user.md index ee1508b9..777f8cd5 100644 --- a/docs/resources/user.md +++ b/docs/resources/user.md @@ -17,6 +17,7 @@ resource "rancher2_user" "foo" { username = "foo" password = "changeme" enabled = true + must_change_password = true } # Create a new rancher2 global_role_binding for User resource "rancher2_global_role_binding" "foo" { @@ -33,6 +34,7 @@ The following arguments are supported: * `username` - (Required/ForceNew) The user username (string) * `password` - (Required/ForceNew) The user password (string) * `name` - (Optional) The user full name (string) +* `must_change_password` - (Optional)The user must change password at first login (bool) * `annotations` - (Optional/Computed) Annotations for global role binding (map) * `labels` - (Optional/Computed) Labels for global role binding (map)