Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(users): add shouldResetPassword flag to user create and update #426

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

reubenmiller
Copy link
Owner

New flag (--shouldResetPassword) to force a user to change their password on next login.

Examples

# Create a new user with a temp password, and force them to change it when logging in
c8y users create --userName myuser --email "[email protected]" --shouldResetPassword --password "<one_time_password>"

# force existing user to reset their password on next login
c8y users update --id myuser --shouldResetPassword

@reubenmiller reubenmiller force-pushed the feat-user-reset-password-next-login branch from 41dd6ae to 0036695 Compare January 22, 2025 12:39
@reubenmiller reubenmiller merged commit c2a9019 into v2 Jan 22, 2025
4 checks passed
@reubenmiller reubenmiller deleted the feat-user-reset-password-next-login branch January 22, 2025 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant