diff --git a/src/internal/m365/collection/drive/group_handler.go b/src/internal/m365/collection/drive/group_handler.go index 386b3c696..5a2438c21 100644 --- a/src/internal/m365/collection/drive/group_handler.go +++ b/src/internal/m365/collection/drive/group_handler.go @@ -63,6 +63,11 @@ func (h groupBackupHandler) MetadataPathPrefix(tenantID string) (path.Path, erro return nil, clues.Wrap(err, "making metadata path") } + p, err = p.Append(false, odConsts.SitesPathDir, h.siteID) + if err != nil { + return nil, clues.Wrap(err, "appending sites to metadata path") + } + return p, nil } diff --git a/src/internal/m365/collection/drive/group_handler_test.go b/src/internal/m365/collection/drive/group_handler_test.go index bd44d5796..44847e80e 100644 --- a/src/internal/m365/collection/drive/group_handler_test.go +++ b/src/internal/m365/collection/drive/group_handler_test.go @@ -59,7 +59,7 @@ func (suite *GroupBackupHandlerUnitSuite) TestMetadataPathPrefix() { }{ { name: "group", - expect: "tenant/groupsMetadata/resourceOwner/libraries", + expect: "tenant/groupsMetadata/resourceOwner/libraries/sites/site-id", expectErr: assert.NoError, }, }