zulip/zerver
Mateusz Mandera c9ca4e68e5 scim: Add config option to disable initial streams for guests.
When an organization (without open ability for anyone to join) invites a
guest user, the invitation prompts allows them to choose whether the
guest should be added to default streams or not. This is useful, because
since we don't have per-role default streams configs, they may want
default streams to be for full Members.

SCIM provisioning doesn't have this control, since a newly provisioned
user gets created via a direct do_create_user call, thus adding them to
the organization's default streams, with no workaround possible aside of
just getting rid of default streams in the organization.

To make provisioning guests in such an organization usable, we add a
simple config option to create them with no streams. It's configured by
adding
```
"create_guests_without_streams": True
```

to the config dict in settings.SCIM_CONFIG.
2024-04-11 12:28:26 -07:00
..
actions scim: Add config option to disable initial streams for guests. 2024-04-11 12:28:26 -07:00
data_import refactor: Replace HUDDLE with DIRECT_MESSAGE_GROUP. 2024-03-21 16:39:33 -07:00
integration_fixtures/nagios
lib scim: Add config option to disable initial streams for guests. 2024-04-11 12:28:26 -07:00
management slack import: Refer the archive file as a file or dir. 2024-04-11 12:05:56 -07:00
migrations migrations: Match dependencies from 8.x branch. 2024-04-03 09:16:33 -07:00
models message-type: Add support for "channel" as value for type parameter. 2024-04-11 09:40:25 -07:00
openapi message-type: Add support for "channel" as value for type parameter. 2024-04-11 09:40:25 -07:00
tests scim: Add config option to disable initial streams for guests. 2024-04-11 12:28:26 -07:00
tornado ruff: Fix UP033 Use `@functools.cache`. 2024-04-01 18:32:52 -07:00
transaction_tests ruff: Fix PLW0108 Lambda may be unnecessary. 2024-03-01 09:30:04 -08:00
views message-type: Add support for "channel" as value for type parameter. 2024-04-11 09:40:25 -07:00
webhooks integration: Split 'opened_or_update_pull_request' event type. 2024-04-11 11:23:08 -07:00
worker ruff: Fix UP041 Replace aliased errors with `TimeoutError`. 2024-04-01 18:32:52 -07:00
__init__.py
apps.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
context_processors.py python: Reformat with Ruff formatter. 2024-02-29 17:07:16 -08:00
decorator.py test_decorators: Replace some deleted tests. 2024-03-29 09:39:34 -07:00
filters.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
forms.py settings: Add permission to enforce unique names in realm. 2024-04-02 14:55:59 -07:00
logging_handlers.py error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
middleware.py parse_client: Migrate has_request_variables to typed_endpoint. 2024-03-12 13:27:21 -07:00
signals.py ruff: Fix UP036 Version block is outdated for minimum Python version. 2024-04-01 18:32:52 -07:00