diff --git a/pkg/probo/people_service.go b/pkg/probo/people_service.go index c9b8ad6fa..03cdd4e45 100644 --- a/pkg/probo/people_service.go +++ b/pkg/probo/people_service.go @@ -179,6 +179,7 @@ func (s PeopleService) Create( FullName: req.FullName, PrimaryEmailAddress: req.PrimaryEmailAddress, AdditionalEmailAddresses: req.AdditionalEmailAddresses, + UserID: req.UserID, CreatedAt: now, UpdatedAt: now, } diff --git a/pkg/usrmgr/usrmgr.go b/pkg/usrmgr/usrmgr.go index e2202a9b3..0ddc61455 100644 --- a/pkg/usrmgr/usrmgr.go +++ b/pkg/usrmgr/usrmgr.go @@ -768,13 +768,14 @@ func (s Service) ConfirmInvitation(ctx context.Context, tokenString string, pass } people := coredata.People{ - OrganizationID: token.Data.OrganizationID, - UserID: &user.ID, - FullName: token.Data.FullName, - PrimaryEmailAddress: token.Data.Email, - Kind: coredata.PeopleKindEmployee, - CreatedAt: now, - UpdatedAt: now, + OrganizationID: token.Data.OrganizationID, + UserID: &user.ID, + FullName: token.Data.FullName, + PrimaryEmailAddress: token.Data.Email, + Kind: coredata.PeopleKindEmployee, + AdditionalEmailAddresses: []string{}, + CreatedAt: now, + UpdatedAt: now, } scope := coredata.NewScope(token.Data.OrganizationID.TenantID())