Organisation and Teams Management
What problem will this feature address?
User Roles & Permissions
- [x] Introduce
ownerandadminroles (currently, onlymemberrole exists). - [ ] Add a custom
userrole with view-only access—users can only access assigned domains without creating project or deployment permissions. ( if required admin can allow start and stop container option) - [ ] Enable permission updates for each role.
- [ ] Add the ability to transfer ownership.
Team Management
- [ ] Implement Teams to group members within an organization.
- [ ] Allow team-based invitations instead of inviting members individually (include an option to set a team size limit).
- [ ] Enable the option to register new users.
- [ ] Support adding descriptions for organizations and teams.
- [ ] Allow deleting expired or cancelled invitations.
- [ ] Provide an option to move members between teams.
Advanced Permissions & Access Control
- [ ] Enable assigning specific
remote serversto selected users or teams. - [ ] Introduce team-wide permissions to streamline access control for larger teams.
Describe the solution you'd like
A role-based access system with owner, admin, and a view-only user role, along with improved team management features like bulk invitations, team descriptions, and user movement between teams. Enhanced permission controls for assigning remote servers and granting team-wide access would streamline operations.
Describe alternatives you've considered
Currently, permissions and team management require manual configuration, which becomes inefficient as the organization scales. While we could continue with the existing setup, automating these processes with role-based access and team-wide permissions would significantly improve efficiency and security.
Additional context
No response
Will you send a PR to implement it?
Maybe, need help
here's the wip planned to Enable assigning specific remote servers to selected users or teams.
I would like to add a small bounty for this.
/bounty $50
looks like Algora is not creating a bounty
I implemented a focused slice for the unchecked "Add the ability to transfer ownership" item in #4424.
Summary of the slice:
- adds an owner-only
organization.transferOwnershipmutation - updates
organization.ownerId, promotes the target member toowner, and demotes the previous owner toadminin one transaction - adds the guarded Users table action and audit metadata
Validation I ran locally:
corepack pnpm exec biome check apps/dokploy/server/api/routers/organization.ts apps/dokploy/components/dashboard/settings/users/show-users.tsx apps/dokploy/components/dashboard/settings/users/change-role.tsxcorepack pnpm --filter=dokploy exec tsc --noEmit --pretty falsegit diff --check
The PR was auto-closed by the anti-slop workflow due to account-level heuristics (username/fork/profile/global merge ratio), not due to code or validation failures. I will not keep opening duplicates, but if this focused ownership-transfer slice is useful for #1413, maintainers can inspect/reopen #4424 or tell me what scope you want instead.
Implementation plan for a focused #1413 slice: add an admin/owner-accessible cleanup action for invitations that are no longer actionable, specifically expired or canceled invitations. I am keeping this scoped to the active organization, reusing the existing member-create permission gate, adding audit metadata, and exposing the cleanup from the existing Invitations table with a destructive confirmation. I will submit a PR with /claim #1413 after format/type validation passes.
/attempt #1413
Implementation plan: I will keep this to a focused safe slice of the larger organization/teams bounty: add editable organization descriptions using the existing organization metadata field, expose it through the existing create/update organization dialog, preserve unknown metadata keys, and include audit metadata plus local lint/type validation. If this overlaps with another active PR I will step back.
/attempt #1413
I’m taking a focused non-overlapping slice: add a built-in view-only user role for organization members. Scope: register the static role in Better Auth, expose it in invite/change-role UI, allow it in role validation, reserve the built-in name from Enterprise custom roles, and add permission tests proving users can read assigned services/domains/deployments/logs/monitoring but cannot create projects/deployments/domains or inherit member legacy overrides.
Follow-up: I submitted PR #4428 with /claim #1413 for this focused view-only user role slice. Local validation passed (Biome check, focused permission tests, tsc, diff check), but the repository anti-slop workflow auto-closed it due account/profile heuristics and PR description code-reference count, not maintainer review or test failure. I will not open duplicate PRs into the same workflow gate; maintainers can inspect/reopen #4428 if this slice is useful.
/attempt #1413
I have a focused, validated patch for stale invitation cleanup:
- restrict Remove Invitation to expired or non-pending invitations
- keep active pending invitations on the cancel flow and enforce that server-side
- add destructive confirmation/error handling
- add unit coverage
I noticed @manuelsampedro1 outlined a similar cleanup slice earlier, and I do not want to step on active work. If they already have a PR in progress, I am happy to step back or collaborate. If not, I am opening the PR against canary with validation details and a short demo video.
Hi! I’m interested in helping with this bounty, but I noticed there have already been several attempts and related PRs.
Before I start, could a maintainer confirm whether there is still a small, unclaimed part of this issue that would be useful?
I’d prefer to work on a narrow, non-overlapping slice rather than duplicate existing work.
If there is a remaining piece you’d like handled, I can open a focused PR for that specific scope.
Hi, I’m interested in working on this bounty, but the full scope seems larger than $100 because it touches organizations, teams, invites, ownership transfer, roles, and server-level permission enforcement.
Would a narrowed first slice qualify for the bounty?
For example:
- Basic organization roles: owner/admin/view-only, with UI + backend checks for existing organization pages.
- Organization metadata + member role management only, without team-level server access control.
- Team creation/member assignment UI only, leaving deeper permission enforcement for a later issue.
I can inspect the current structure and open a focused PR if you confirm which slice is acceptable.
Hi! I’m interested in helping with this bounty, but the current scope is quite broad.
Would you accept a first focused PR that implements the role/permission foundation only, e.g. owner/admin/member/viewer semantics plus the relevant permission checks and tests, leaving deeper team-management and bulk invitation workflows for follow-up PRs?
If that scope works, I can keep the change small and aligned with the existing Dokploy patterns.
/attempt #1413
I am taking a focused invitation-cleanup slice from the broader organization management issue:
- keep the existing cancel flow for active pending invitations;
- allow permanent removal only for expired or inactive invitations;
- enforce that rule server-side in
organization.removeInvitation; - hide the remove action for active pending invitations in the settings UI;
- add focused tests for the invitation removal state rules.
Validation so far: focused Vitest coverage, Biome check, and Dokploy TypeScript check.
/attempt #1413
Working on a focused built-in viewer role slice: read-only assigned runtime access, invite/change-role support, reserved-name handling, and settings-route guards.
Multiple PRs welcome — bounty will be split among merged contributors based on scope of contribution.
/attempt #1413
Taking a focused non-overlapping slice for the unchecked “Enable the option to register new users” item: add an opt-in self-hosted registration flag so operators can allow additional users to sign up after the initial owner exists. Scope will stay narrow: server-side signup guard, register-page routing/copy/link visibility, and focused validation. This is separate from the existing viewer-role, ownership-transfer, invitation-cleanup, and organization-description PRs.
Multiple PRs welcome — bounty will be split among merged contributors based on scope of contribution.
Also please follow this Before PR https://github.com/Dokploy/dokploy/blob/canary/CONTRIBUTING.md and make sure include a video or screenshot
Working on team management slice: enable teams, add DB schema/migration, and add basic org team UI.
/attempt #1413
Hi, I’d like to help with #1413, but I can see ownership transfer, invitation cleanup, viewer role, registration, organization descriptions, server-access tests, and a basic team-management slice are already being attempted.
Before I start, would a narrow non-overlapping team-support slice still be useful, for example:
- member move-between-teams API/UI after the team schema lands, or
- team-based invitation handling once a team model exists, or
- team-wide permission inheritance tests around the existing member access model?
I’ll wait for a confirmed scope before opening a PR so I don’t duplicate active work.
/attempt #1413
Taking a narrow permission-update hardening slice that does not overlap with the open ownership, invitation cleanup, viewer-role, registration, org-description, or teams PRs.
Scope:
- make
customRole.updatefail withNOT_FOUNDwhen the requested role does not exist in the active organization - avoid writing audit metadata for a no-op missing-role update
- add focused regression coverage for missing-role and successful update paths
Validation so far:
- focused Vitest coverage passes
- Biome check on touched files passes
- Dokploy TypeScript check passes
/attempt #1413
Taking a narrow, non-overlapping organization-role consistency slice: validate the role used by self-hosted direct credentials provisioning before creating the member. Invitation and change-role flows already reject unknown custom roles, but the credentials path could persist any non-owner string. I will keep this focused on shared role validation plus unit coverage, separate from viewer-role, registration, teams, ownership-transfer, invitation-cleanup, and custom-role update PRs.