From b87ea87c424b4a62e1dc9a16d6380deda843d4f8 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Thu, 19 Mar 2026 11:38:04 +0100 Subject: [PATCH] Fix organization profile using owner's full name instead of org name When creating an organization, the owner's membership profile was being set with the organization name as the full name instead of the owner's actual full name. Fetch the identity's full name and use it for the profile. Signed-off-by: Bryan Frimin --- pkg/iam/organization_service.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/iam/organization_service.go b/pkg/iam/organization_service.go index 2a87061f9..df6f2d3a9 100644 --- a/pkg/iam/organization_service.go +++ b/pkg/iam/organization_service.go @@ -462,7 +462,6 @@ func (s *OrganizationService) CreateOrganization( OrganizationID: organization.ID, Source: coredata.ProfileSourceManual, State: coredata.ProfileStateActive, - FullName: req.Name, CreatedAt: now, UpdatedAt: now, } @@ -590,6 +589,8 @@ func (s *OrganizationService) CreateOrganization( return fmt.Errorf("cannot load identity: %w", err) } + profile.FullName = identity.FullName + err = organization.Insert(ctx, tx) if err != nil { return fmt.Errorf("cannot insert organization: %w", err)