Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: grant projectOwner to the first user (#10482)

p0nybca0e172422e
diff --git a/backend/store/principal.go b/backend/store/principal.go
index 2267db98d1..690a0e6856 100644
--- a/backend/store/principal.go
+++ b/backend/store/principal.go
@@ -289,6 +289,9 @@ func (s *Store) CreateUser(ctx context.Context, create *UserMessage, creatorID i
// Grant the member Owner role if there is no existing member.
if firstMember {
roles = []api.Role{api.WorkspaceAdmin}
+ if s.profile.DevelopmentIAM {
+ roles = append(roles, api.ProjectOwner)
+ }
}
roles = uniq(roles)