# oarepo\_config.workflows.simplified.community

## `oarepo_config.workflows.simplified.community`

Community workflow configuration for OARepo.

### `CommunityWorkflow`

Bases: `BaseWorkflowSettings`

Workflow configuration for deposits inside communities.

#### `draft_creation_community_roles: list[str] = dataclasses.field(default_factory=lambda: ['submitter', 'curator', 'owner'])`

Restrict draft creation to community members with at least one of these roles.

If not specified (empty list), any member of the community can create a draft. Used in addition to the site-wide `draft_creation_roles` / `draft_creation_needs` restrictions.

#### `read_restricted_community_roles: list[str] = dataclasses.field(default_factory=lambda: ['curator', 'owner'])`

Community roles that may read restricted (published) records without requesting access.

If empty, only the record owner can read the content after publishing. By default allowing curators and community owners to access restricted records.

> [!NOTE]
>
> Community roles are used instead of `RecordCommunitiesAction` so that each workflow can have independent read/draft/manage permissions.

#### `read_draft_community_roles: list[str] = dataclasses.field(default_factory=list)`

Community roles that may read draft records without requesting access.

If empty, only the record owner can read the content of a draft. Curators can always read draft records when the record is submitted for review.

> [!NOTE]
>
> Community roles are used instead of `RecordCommunitiesAction` so that each workflow can have independent read/draft/manage permissions.

#### `record_manage_community_roles: list[str] = dataclasses.field(default_factory=lambda: ['curator', 'owner'])`

Community roles that may manage (edit, delete, publish) records.

If empty, only the record owner can manage the record. By default allowing curators and community owners to manage all records.

> [!NOTE]
>
> Community roles are used instead of `RecordCommunitiesAction` so that each workflow can have independent read/draft/manage permissions.

#### `community_curator_roles: list[str] = dataclasses.field(default_factory=lambda: ['curator'])`

Community roles that allow users to review and curate records.
