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)