-
Notifications
You must be signed in to change notification settings - Fork 81
IBX-8823: Manage user data from CLI #2527
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
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| --- | ||
|
Check warning on line 1 in docs/users/update_basic_user_data.md
|
||
| description: Update basic user account data from the console. | ||
| --- | ||
|
|
||
| # Update basic user data from CLI | ||
|
|
||
| Multiple user management scenarios may result in having to update basic user account data, such as user status, the password, or email. | ||
| Especially, when a security breach occurs, you may need to revoke user access by disabling the account, or change the user's password. | ||
dabrt marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| You can do it without accessing the Admin UI, by running a console command. | ||
| You reference the user account with either user id or login. | ||
dabrt marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Disable or enable user account | ||
|
|
||
| To change the status of a user account, you must have the `user/activation` permission. | ||
dabrt marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Disable the user account: | ||
|
|
||
| ```bash | ||
| php bin/console ibexa:user:update-user --disable <user_reference> | ||
dabrt marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ``` | ||
|
|
||
| Enable the user account: | ||
|
|
||
| ```bash | ||
| php bin/console ibexa:user:update-user --enable <user_reference> | ||
| ``` | ||
|
|
||
| ## Change password | ||
|
|
||
| To change the password, you must have the `user/password` permission. | ||
dabrt marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Change the password associated with the user account: | ||
|
|
||
| ```bash | ||
| php bin/console ibexa:user:update-user --password <user_reference> | ||
| ``` | ||
|
|
||
| After you run the command, enter the new password when prompted. | ||
| The command runs in silent mode and inputs are not echoed. | ||
|
|
||
| For more information about changing and revoking passwords, see [Passwords](passwords.md#revoking-passwords). | ||
|
|
||
| ## Change email address | ||
|
|
||
| Change the email address associated with the user account: | ||
|
|
||
| ```bash | ||
| php bin/console ibexa:user:update-user --email=<new_email_address> <user_reference> | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.