zulip/zerver/management/commands
Mateusz Mandera 389b851f81 update_user_backend: Allow authorized org owners to change user emails.
This adds a new special UserProfile flag can_change_user_emails(disabled
by default) and the ability for changing the email address of users in
the realm via update_user_backend. This is useful for allowing
organizations to update user emails without needing to set up a SCIM
integration, but since it gives the ability to hijack user accounts, it
needs to be behind this additional permission and can't be just given to
organization owners by default. Analogical to how the
create_user_backend endpoint works.
2024-10-22 16:36:38 -07:00
..
__init__.py
add_users_to_streams.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
archive_messages.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
audit_fts_indexes.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
backup.py ruff: Fix SIM115 Use a context manager for opening files. 2024-10-20 18:16:27 -07:00
bulk_change_user_name.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
change_auth_backends.py management: Add change_auth_backends command. 2024-08-14 14:04:46 -07:00
change_password.py ruff: Fix UP006 Use `list` instead of `List` for type annotation. 2024-07-13 22:28:22 -07:00
change_realm_subdomain.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
change_user_email.py do_change_user_delivery_email: Add acting_user kwarg. 2024-09-30 12:00:14 -07:00
change_user_role.py update_user_backend: Allow authorized org owners to change user emails. 2024-10-22 16:36:38 -07:00
check_redis.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
checkconfig.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
compilemessages.py ruff: Fix UP006 Use `list` instead of `List` for type annotation. 2024-07-13 22:28:22 -07:00
convert_mattermost_data.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
convert_rocketchat_data.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
convert_slack_data.py slack: Clean up expanded zipfiles more consistently. 2024-09-26 12:01:11 -07:00
create_default_stream_groups.py ruff: Fix FURB105 Unnecessary empty string passed to `print`. 2024-06-30 22:37:15 -07:00
create_realm.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
create_realm_internal_bots.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
create_stream.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
create_user.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
deactivate_realm.py realm-deactivation: Send email to owners as part of deactivation. 2024-06-26 16:48:18 -07:00
deactivate_user.py ruff: Fix FURB105 Unnecessary empty string passed to `print`. 2024-06-30 22:37:15 -07:00
delete_old_unclaimed_attachments.py thumbnail: Move get_image_thumbnail_path and split_thumbnail_path. 2024-07-18 13:50:28 -07:00
delete_realm.py refactor: Rename `Huddle` Django model class to `DirectMessageGroup`. 2024-07-07 21:31:30 -07:00
delete_user.py ruff: Fix UP032 Use f-string instead of `format` call. 2024-03-21 08:59:17 -07:00
deliver_scheduled_emails.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
deliver_scheduled_messages.py scheduled_messages: Remove separate logfile. 2024-10-04 14:22:37 -07:00
edit_linkifiers.py models: Extract zerver.models.linkifiers. 2023-12-16 22:08:44 -08:00
email_mirror.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
enqueue_digest_emails.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
enqueue_file.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
export.py export_realm: Add RealmExport model. 2024-10-04 12:06:35 -07:00
export_search.py ruff: Fix UP006 Use `list` instead of `List` for type annotation. 2024-07-13 22:28:22 -07:00
export_single_user.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
export_usermessage_batch.py export_realm: Remove the 'react on consent message' approach. 2024-09-24 14:32:42 -07:00
fetch_tor_exit_nodes.py ruff: Fix UP006 Use `list` instead of `List` for type annotation. 2024-07-13 22:28:22 -07:00
fill_memcached_caches.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
generate_realm_creation_link.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
get_migration_status.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
import.py tools: Skip checks in recursive management calls. 2024-09-24 14:26:34 -07:00
list_realms.py models: Replace realm.uri with realm.url. 2024-05-08 11:12:43 -07:00
logout_all_users.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
makemessages.py ruff: Fix B905 `zip()` without an explicit `strict=` parameter. 2024-07-13 22:28:22 -07:00
merge_streams.py models: Extract zerver.models.streams. 2023-12-16 22:08:44 -08:00
process_queue.py worker: Address sentry_sdk deprecations. 2024-10-22 10:05:01 -07:00
promote_new_full_members.py management: Add lockfiles to all _once management jobs. 2024-04-24 14:40:28 -07:00
purge_queue.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
query_ldap.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
rate_limit.py models: Extract zerver.models.users. 2023-12-16 22:08:44 -08:00
reactivate_realm.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
realm_domain.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
register_server.py settings: Rework how push notifications service is configured. 2024-07-17 17:14:06 -07:00
remove_users_from_stream.py models: Extract zerver.models.streams. 2023-12-16 22:08:44 -08:00
reset_authentication_attempt_count.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
restore_messages.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
runtornado.py runtornado: Remove explicit AsyncIOMainLoop installation. 2024-07-16 14:01:32 -07:00
runtusd.py upload: Use tusd for resumable, larger uploads. 2024-09-19 11:37:29 -07:00
scrub_realm.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
send_custom_email.py lint: Fix several duplicate word typos. 2024-09-10 15:59:00 -07:00
send_password_reset_email.py users: Factor out do_send_password_reset_email. 2024-09-26 12:01:11 -07:00
send_realm_reactivation_email.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
send_test_email.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
send_to_email_mirror.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
send_webhook_fixture_message.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
send_welcome_bot_message.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
send_zulip_update_announcements.py management: Provide a common lockfile dir, and a decorator for it. 2024-04-24 14:40:28 -07:00
show_admins.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
soft_deactivate_users.py ruff: Fix UP006 Use `list` instead of `List` for type annotation. 2024-07-13 22:28:22 -07:00
sync_ldap_user_data.py python: Avoid relying on Collection supertype of QuerySet. 2024-04-16 23:02:16 -07:00
transfer_uploads_to_s3.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
unarchive_channel.py audit-log: Move stream/channel event types to AuditLogEventType enum. 2024-09-09 11:50:13 -07:00