diff --git a/pkg/collections/collection.go b/pkg/collections/collection.go
index 5b3c5dd310ac8af32ee11e9e18c4aa1a3d4c72f3..39b082ef134030ab39e5e3fdae7a5692cca47d73 100644
--- a/pkg/collections/collection.go
+++ b/pkg/collections/collection.go
@@ -178,3 +178,11 @@ func (c Collection) IsNoData() bool {
 func (c Collection) IsView() bool {
 	return c.View != nil
 }
+
+func GetCollectionsIDs(collections []*Collection) []string {
+	res := make([]string, len(collections))
+	for i, c := range collections {
+		res[i] = c.ID
+	}
+	return res
+}