Change password for currently authenticated user
change_pwd(old, new, ...)get_pwd_policy(...)
set_pwd_policy(
allowchange,
hardexpire,
age,
length,
previous,
requirements,
...
)
A character string specifying the current password
A character string specifying the new password
Additional arguments passed to iamHTTP
.
Optionally, a logical indicating whether to allow users to change their own passwords (default is FALSE
).
Optionally, a logical indicating whether to prevent users from changing their passwords after they expire (default is FALSE
).
Optionally, a number of days (between 1 and 1095) specifying maximum valid age of an IAM user password.
Optionally, a minimum password length between 6 and 128 (default is 6).
Optionally, a number specifying the number (between 1 and 24) of previous passwords that users are prevented from reusing. Default is 0.
A character vector specifying whether to require specific password features, including: “upper” (upper case character), “lower” (lower case character), “number” (a digit), and “symbol” (a symbol). Multiple can be specified.
get_pwd_policy
returns a list. change_pwd
and set_pwd_policy
return a logical TRUE
(if successful).