Skip to content

feat: allow organizations to define a default project for all members#1196

Open
Nithishvb wants to merge 1 commit into
getnao:mainfrom
Nithishvb:feat/org-default-project
Open

feat: allow organizations to define a default project for all members#1196
Nithishvb wants to merge 1 commit into
getnao:mainfrom
Nithishvb:feat/org-default-project

Conversation

@Nithishvb

@Nithishvb Nithishvb commented Jul 15, 2026

Copy link
Copy Markdown

Closes: #1173

Summary
Adds the ability for organizations to define a default project. Every org member (existing and future) automatically gets access without an admin adding them one by one.

Changes

  • Schema: Added default_project_id column to organization table (SQLite + Postgres migrations included)
  • Backend: New query functions setOrgDefaultProject, ensureUserInDefaultProject, ensureAllOrgMembersInDefaultProject
  • Auto-enrollment: New SSO users, credential signups, and invited members are all added to the org's default project
  • Startup backfill: ensureDefaultProject now calls ensureAllOrgMembersInDefaultProject so existing members never have gaps
  • tRPC: organization.getDefaultProject / organization.setDefaultProject routes
  • UI: Default Project card in org settings with a project selector dialog (admin only)
  • Env var gating: When NAO_DEFAULT_PROJECT_PATH is set in self-hosted, the UI shows a read-only message and the tRPC route rejects changes

Review in cubic

@github-actions

Copy link
Copy Markdown
Contributor

This PR was auto-closed. Only contributors approved with lgtm can open PRs. Open an issue first.

Maintainers review auto-closed issues daily. Issues that do not meet the quality bar in CONTRIBUTING.md will not be reopened or receive a reply.

If a maintainer replies lgtmi, your future issues will stay open. If a maintainer replies lgtm, your future issues and PRs will stay open.

See CONTRIBUTING.md.

@github-actions github-actions Bot closed this Jul 15, 2026
@Bl3f Bl3f reopened this Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] When users sign up in SSO, they can have access to org project

2 participants