diff --git a/services/graph/pkg/service/v0/sharedwithme.go b/services/graph/pkg/service/v0/sharedwithme.go index 73558f324..9a8ea148e 100644 --- a/services/graph/pkg/service/v0/sharedwithme.go +++ b/services/graph/pkg/service/v0/sharedwithme.go @@ -136,7 +136,7 @@ func (g Graph) listSharedWithMe(ctx context.Context) ([]libregraph.DriveItem, er driveItem.SetId(storagespace.FormatResourceID(storageprovider.ResourceId{ StorageId: utils.ShareStorageProviderID, - OpaqueId: receivedShare.GetShare().GetId().GetOpaqueId(), + OpaqueId: storagespace.FormatResourceID(*receivedShare.GetShare().GetResourceId()), SpaceId: utils.ShareStorageSpaceID, }))