OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Creates the FilesQuery and Reuses the OneDrive User Query
Marcello Rocha7898d3a8c815
diff --git a/modules/storages/app/common/storages/adapters/providers/share_point/base.rb b/modules/storages/app/common/storages/adapters/providers/share_point/base.rbindex 515dcc20320..2ba1141f186 100644--- a/modules/storages/app/common/storages/adapters/providers/share_point/base.rb+++ b/modules/storages/app/common/storages/adapters/providers/share_point/base.rb@@ -49,8 +49,17 @@ module Storages@storage = storageend+ def base_uri = @storage.uri+private+ def drive_and_location(location)+ drive_id, item_id = location.to_s.split(SharePointStorage::IDENTIFIER_SEPARATOR)+ { drive_id:, location: Peripherals::ParentFolder.new(item_id || "/") }+ end++ def request_uri = raise Errors::SubclassResponsibility+# @param error [Results::Error]# @return [void]def log_storage_error(error, context = {})diff --git a/modules/storages/app/common/storages/adapters/providers/share_point/commands/create_folder_command.rb b/modules/storages/app/common/storages/adapters/providers/share_point/commands/create_folder_command.rbnew file mode 100644index 00000000000..67553364762--- /dev/null+++ b/modules/storages/app/common/storages/adapters/providers/share_point/commands/create_folder_command.rb@@ -0,0 +1,64 @@+# frozen_string_literal: true++#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See COPYRIGHT and LICENSE files for more details.+#++++module Storages+ module Adapters+ module Providers+ module SharePoint+ module Commands+ class CreateFolderCommand < Base+ # @param auth_strategy [Result(Input::Strategy)]+ # @param input_data [Input::CreateFolder]+ def call(auth_strategy:, input_data:)+ Authentication[auth_strategy].call(storage: @storage) do |_http|+ # Input data has: folder name, parent_location+ # Parent Location here need to be eiter a Drive+ # Or a pair of Drive + Parent Folder+ Rails.logger.debug request_uri(**drive_and_location(input_data.parent_location))+ end+ end++ private++ def request_uri(drive_id:, location:)+ last_fragment = if location.root?+ ["/root/children"]+ else+ ["/items", parent_location.path, "/children"]+ end++ UrlBuilder.url(base_uri, "/drives/", drive_id, *last_fragment)+ end+ end+ end+ end+ end+ end+enddiff --git a/modules/storages/app/common/storages/adapters/providers/share_point/queries/files_query.rb b/modules/storages/app/common/storages/adapters/providers/share_point/queries/files_query.rbnew file mode 100644index 00000000000..ad43fa5f670--- /dev/null+++ b/modules/storages/app/common/storages/adapters/providers/share_point/queries/files_query.rb@@ -0,0 +1,65 @@+# frozen_string_literal: true++#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See COPYRIGHT and LICENSE files for more details.+#++++module Storages+ module Adapters+ module Providers+ module SharePoint+ module Queries+ class FilesQuery < Base+ def call(auth_strategy:, **)+ Authentication[auth_strategy].call(storage: @storage) do |http|+ Internal::ListsQuery.call(storage: @storage, http:).bind { build_collection(it) }+ end+ end++ private++ def build_collection(files)+ Results::StorageFileCollection.build(+ files:,+ parent: root(Digest::SHA256.hexdigest("i_am_site_root")),+ ancestors: []+ )+ end++ def root(id)+ Results::StorageFile.new(+ name: URI(@storage.host).path&.split("/")&.last,+ location: "/", id:,+ permissions: %i[readable writeable]+ )+ end+ end+ end+ end+ end+ end+enddiff --git a/modules/storages/app/common/storages/adapters/providers/share_point/queries/internal/lists_query.rb b/modules/storages/app/common/storages/adapters/providers/share_point/queries/internal/lists_query.rbnew file mode 100644index 00000000000..80445020f7f--- /dev/null+++ b/modules/storages/app/common/storages/adapters/providers/share_point/queries/internal/lists_query.rb@@ -0,0 +1,91 @@+# frozen_string_literal: true++#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See COPYRIGHT and LICENSE files for more details.+#++++module Storages+ module Adapters+ module Providers+ module SharePoint+ module Queries+ module Internal+ class ListsQuery < Base+ FIELDS = "?$expand=drive&$select=id,name,drive"++ def self.call(storage:, http:)+ new(storage).call(http)+ end++ def call(http)+ handle_response(http.get(request_uri + FIELDS)).fmap { parse_response(it) }+ end++ private++ def handle_response(response)+ error = Results::Error.new(source: self, payload: response)++ case response+ in { status: 200..299 }+ Success(response.json(symbolize_keys: true))+ in { status: 400 }+ Failure(error.with(code: :request_error))+ in { status: 404 }+ Failure(error.with(code: :not_found))+ in { status: 403 }+ Failure(error.with(code: :forbidden))+ in { status: 401 }+ Failure(error.with(code: :unauthorized))+ else+ Failure(error.with(code: :error))+ end+ end++ def parse_response(json)+ json[:value].filter_map do |entry|+ Results::StorageFile.build(+ name: entry[:name],+ id: entry.dig(:drive, :id),+ mime_type: "application/x-op-drive",+ location: "/drives/#{entry.dig(:drive, :id)}",+ permissions: %i[readable writeable]+ ).value_or { nil }+ end+ end++ def request_uri+ storage_host = URI(@storage.host)+ URI.join(base_uri.origin, "/v1.0/sites/#{storage_host.host}:#{storage_host.path}:/lists").to_s+ end+ end+ end+ end+ end+ end+ end+enddiff --git a/modules/storages/app/common/storages/adapters/providers/share_point/share_point_registry.rb b/modules/storages/app/common/storages/adapters/providers/share_point/share_point_registry.rbindex b1802c10b24..c37264df4e1 100644--- a/modules/storages/app/common/storages/adapters/providers/share_point/share_point_registry.rb+++ b/modules/storages/app/common/storages/adapters/providers/share_point/share_point_registry.rb@@ -62,6 +62,11 @@ module Storagesnamespace("validators") doregister(:connection, Validators::ConnectionValidator)end++ namespace("queries") do+ register(:files, Queries::FilesQuery)+ register(:user, OneDrive::Queries::UserQuery)+ endendendenddiff --git a/modules/storages/app/common/storages/adapters/results/storage_file.rb b/modules/storages/app/common/storages/adapters/results/storage_file.rbindex 36083dee2fc..d7339bdd83a 100644--- a/modules/storages/app/common/storages/adapters/results/storage_file.rb+++ b/modules/storages/app/common/storages/adapters/results/storage_file.rb@@ -65,6 +65,10 @@ module Storagesdef folder?mime_type.present? && mime_type == "application/x-op-directory"end++ def drive?+ mime_type.present? && mime_type == "application/x-op-drive"+ endendendenddiff --git a/modules/storages/app/models/storages/share_point_storage.rb b/modules/storages/app/models/storages/share_point_storage.rbindex 62989206fab..a7b5550e262 100644--- a/modules/storages/app/models/storages/share_point_storage.rb+++ b/modules/storages/app/models/storages/share_point_storage.rb@@ -30,6 +30,8 @@module Storagesclass SharePointStorage < Storage+ IDENTIFIER_SEPARATOR = "||"+PROVIDER_FIELDS_DEFAULTS = {automatically_managed: false,automatic_management_enabled: false@@ -37,12 +39,14 @@ module Storagesstore_attribute :provider_fields, :tenant_id, :string- # For now SharePoint is visible only for development and tests.+ # For now SharePoint is visible only in tests.# This is to prevent it from being shown in the UI, as it is not ready yet.def self.visible?Rails.env.local?end+ store_attribute :provider_fields, :tenant_id, :string+def self.short_provider_name = :share_pointdef audience = nil@@ -58,6 +62,10 @@ module Storagesendend+ def uri+ @uri ||= URI("https://graph.microsoft.com").normalize+ end+def oauth_configuration = Adapters::Providers::SharePoint::OAuthConfiguration.new(self)def provider_fields_defaultsdiff --git a/modules/storages/spec/common/storages/adapters/providers/share_point/queries/files_query_spec.rb b/modules/storages/spec/common/storages/adapters/providers/share_point/queries/files_query_spec.rbnew file mode 100644index 00000000000..21245de9bc5--- /dev/null+++ b/modules/storages/spec/common/storages/adapters/providers/share_point/queries/files_query_spec.rb@@ -0,0 +1,125 @@+# frozen_string_literal: true++#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See COPYRIGHT and LICENSE files for more details.+#++++require "spec_helper"+require_module_spec_helper++module Storages+ module Adapters+ module Providers+ module SharePoint+ module Queries+ RSpec.describe FilesQuery, :webmock do+ let(:user) { create(:admin) }+ let(:storage) { create(:share_point_storage, oauth_client_token_user: user) }++ let(:auth_strategy) { Registry["share_point.authentication.userless"].call(false) }+ let(:input_data) { Input::Files.build(folder:).value! }++ it_behaves_like "adapter files_query: basic query setup"++ context "when parent folder is root, return a list of drives", vcr: "share_point/files_query_root" do+ let(:folder) { "/" }+ let(:files_result) do+ Results::StorageFileCollection.new(+ files: [+ Results::StorageFile.new(+ id: "b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY8Qconfm2i6SKEoCmuGYqQK",+ name: "OpenProject",+ mime_type: "application/x-op-drive",+ location: "/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY8Qconfm2i6SKEoCmuGYqQK",+ permissions: %i[readable writeable]+ ),+ Results::StorageFile.new(+ id: "b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw",+ name: "Shared Documents",+ mime_type: "application/x-op-drive",+ location: "/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw",+ permissions: %i[readable writeable]+ ),+ Results::StorageFile.new(+ id: "b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY8Pmdpc8mQ1QJkyIbbWQJol",+ name: "Selected Permissions",+ mime_type: "application/x-op-drive",+ location: "/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY8Pmdpc8mQ1QJkyIbbWQJol",+ permissions: %i[readable writeable]+ ),+ Results::StorageFile.new(+ id: "b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY_YoKf1JPvYSJeFRsyx4zF_",+ name: "Chris document library",+ mime_type: "application/x-op-drive",+ location: "/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY_YoKf1JPvYSJeFRsyx4zF_",+ permissions: %i[readable writeable]+ ),+ Results::StorageFile.new(+ id: "b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY8CfNaHr_0ERYs5kgmEWFrX",+ name: "Marcello AMPF",+ mime_type: "application/x-op-drive",+ location: "/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY8CfNaHr_0ERYs5kgmEWFrX",+ permissions: %i[readable writeable]+ ),+ Results::StorageFile.new(+ id: "b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY8opHtYeMANTahXlS54FgHn",+ name: "Dominic",+ mime_type: "application/x-op-drive",+ location: "/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY8opHtYeMANTahXlS54FgHn",+ permissions: %i[readable writeable]+ ),+ Results::StorageFile.new(+ id: "b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY93AQ5rgPKoR7tMwpspgj95",+ name: "Markus",+ mime_type: "application/x-op-drive",+ location: "/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY93AQ5rgPKoR7tMwpspgj95",+ permissions: %i[readable writeable]+ ),+ Results::StorageFile.new(+ id: "b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY9jo6leJDqrT7muzvmiWjFW",+ name: "Marcello VCR",+ mime_type: "application/x-op-drive",+ location: "/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY9jo6leJDqrT7muzvmiWjFW",+ permissions: %i[readable writeable]+ )+ ],+ parent: Results::StorageFile.new(id: "1269877d26360587caf07834bc72ee3ad3c3698f1651bf85d8562e7fda19aa0f",+ name: "OPTest",+ location: "/",+ permissions: %i[readable writeable]),+ ancestors: []+ )+ end++ it_behaves_like "adapter files_query: successful files response"+ end+ end+ end+ end+ end+ end+enddiff --git a/modules/storages/spec/factories/storage_factory.rb b/modules/storages/spec/factories/storage_factory.rbindex eef7959d215..31cfbfd45bd 100644--- a/modules/storages/spec/factories/storage_factory.rb+++ b/modules/storages/spec/factories/storage_factory.rb@@ -234,4 +234,29 @@ FactoryBot.define dotenant_id { SecureRandom.uuid }endend+++ factory :share_point_dev_storage, parent: :storage, class: "::Storages::SharePointStorage" do+ tenant_id { ENV.fetch("SHARE_POINT_TEST_TENANT_ID", "e36f1dbc-fdae-427e-b61b-0d96ddfb81a4") }+ host { ENV.fetch("SHARE_POINT_TEST_HOST", "https://ymt6d.sharepoint.com/sites/OPTest") }++ transient do+ oauth_client_token_user { association :user }+ end++ after(:create) do |storage, evaluator|+ create(:oauth_client,+ client_id: ENV.fetch("SHARE_POINT_TEST_OAUTH_CLIENT_ID", "MISSING_SHARE_POINT_TEST_OAUTH_CLIENT_ID"),+ client_secret: ENV.fetch("SHARE_POINT_TEST_OAUTH_CLIENT_SECRET", "MISSING_SHARE_POINT_TEST_OAUTH_CLIENT_SECRET"),+ integration: storage)++ create(:oauth_client_token,+ oauth_client: storage.oauth_client,+ user: evaluator.oauth_client_token_user,+ access_token: ENV.fetch("SHARE_POINT_TEST_OAUTH_CLIENT_ACCESS_TOKEN", "SHARE_POINT_TEST_OAUTH_CLIENT_ACCESS_TOKEN"),+ refresh_token: ENV.fetch("SHARE_POINT_TEST_OAUTH_CLIENT_REFRESH_TOKEN",+ "MISSING_SHARE_POINT_TEST_OAUTH_CLIENT_REFRESH_TOKEN"),+ token_type: "bearer")+ end+ endenddiff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/share_point/files_query_root.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/share_point/files_query_root.ymlnew file mode 100644index 00000000000..fc70a731f63--- /dev/null+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/share_point/files_query_root.yml@@ -0,0 +1,147 @@+---+http_interactions:+- request:+ method: post+ uri: https://login.microsoftonline.com/e36f1dbc-fdae-427e-b61b-0d96ddfb81a4/oauth2/v2.0/token+ body:+ encoding: ASCII-8BIT+ string: grant_type=client_credentials&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default+offline_access&client_id=404e0567-19a1-4a64-b2d1-d3b0c99f2ed9&client_secret=QRB8Q%7Ei.1rID_.MC9FTfRGq-FTE5SgWYsoeLacWf+ headers:+ User-Agent:+ - httpx.rb/1.3.4+ Accept:+ - "*/*"+ Accept-Encoding:+ - gzip, deflate+ Content-Type:+ - application/x-www-form-urlencoded+ Content-Length:+ - '199'+ response:+ status:+ code: 200+ message: OK+ headers:+ Cache-Control:+ - no-store, no-cache+ Pragma:+ - no-cache+ Content-Type:+ - application/json; charset=utf-8+ Expires:+ - "-1"+ Strict-Transport-Security:+ - max-age=31536000; includeSubDomains+ X-Content-Type-Options:+ - nosniff+ P3p:+ - CP="DSP CUR OTPi IND OTRi ONL FIN"+ X-Ms-Request-Id:+ - 2151528f-3b78-4c06-af47-5418b6440400+ X-Ms-Ests-Server:+ - 2.1.21415.7 - SEC ProdSlices+ X-Ms-Srs:+ - 1.P+ Content-Security-Policy-Report-Only:+ - object-src 'none'; base-uri 'self'; script-src 'self' 'nonce-LLJhckFDSgu1DYtB3fvK-g'+ 'unsafe-inline' 'unsafe-eval' https://*.msauth.net https://*.msftauth.net+ https://*.msftauthimages.net https://*.msauthimages.net https://*.msidentity.com+ https://*.microsoftonline-p.com https://*.microsoftazuread-sso.com https://*.azureedge.net+ https://*.outlook.com https://*.office.com https://*.office365.com https://*.microsoft.com+ https://*.bing.com 'report-sample'; report-uri https://csp.microsoft.com/report/ESTS-UX-All+ X-Xss-Protection:+ - '0'+ Set-Cookie:+ - fpc=AkhqyVRZf9VOqEbrBAV5PXFZ-dCOAQAAAGYiFOAOAAAA; expires=Sat, 23-Aug-2025+ 12:47:35 GMT; path=/; secure; HttpOnly; SameSite=None, x-ms-gateway-slice=estsfd;+ path=/; secure; samesite=none; httponly, stsservicecookie=estsfd; path=/;+ secure; samesite=none; httponly+ Date:+ - Thu, 24 Jul 2025 12:47:35 GMT+ Content-Length:+ - '1925'+ body:+ encoding: UTF-8+ string: '{"token_type":"Bearer","expires_in":3599,"ext_expires_in":3599,"access_token":"<ACCESS_TOKEN>"}'+ recorded_at: Thu, 24 Jul 2025 12:47:35 GMT+- request:+ method: get+ uri: https://graph.microsoft.com/v1.0/sites/ymt6d.sharepoint.com:/sites/OPTest:/lists?$expand=drive&$select=id,name,drive+ body:+ encoding: US-ASCII+ string: ''+ headers:+ User-Agent:+ - httpx.rb/1.3.4+ Accept:+ - "*/*"+ Accept-Encoding:+ - gzip, deflate+ Authorization:+ - Bearer <BEARER TOKEN>+ response:+ status:+ code: 200+ message: OK+ headers:+ Cache-Control:+ - no-store, no-cache+ Content-Type:+ - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8+ Content-Encoding:+ - gzip+ Vary:+ - Accept-Encoding+ Strict-Transport-Security:+ - max-age=31536000+ Request-Id:+ - 516e4e68-f5a2-4665-8f98-0171e66f50ce+ Client-Request-Id:+ - 516e4e68-f5a2-4665-8f98-0171e66f50ce+ X-Ms-Ags-Diagnostic:+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"006","RoleInstance":"FR1PEPF00001FC9"}}'+ Splogid:+ - 66eab4a1-e040-0000-7380-7fa7ad0849a5+ Odata-Version:+ - '4.0'+ Date:+ - Thu, 24 Jul 2025 12:47:35 GMT+ body:+ encoding: UTF-8+ string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.list)(id,name,drive,drive())","value":[{"@odata.etag":"\"df897210-689b-48ba-a128-0a6b8662a40a,26\"","id":"df897210-689b-48ba-a128-0a6b8662a40a","name":"OpenProject","[email protected]":"https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.list)(''df897210-689b-48ba-a128-0a6b8662a40a'')/drive/$entity","drive":{"createdDateTime":"2024-02-02T13:53:33Z","description":"Enabled+ for automatic management","id":"b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY8Qconfm2i6SKEoCmuGYqQK","lastModifiedDateTime":"2025-06-18T11:42:21Z","name":"OpenProject","webUrl":"https://ymt6d.sharepoint.com/sites/OPTest/OpenProject","driveType":"documentLibrary","createdBy":{"user":{"email":"[email protected]","id":"5b5a7dc4-4539-41ba-9fa9-100f0a26acb7","displayName":"Eric+ Schubert"}},"lastModifiedBy":{"user":{"email":"[email protected]","id":"5b5a7dc4-4539-41ba-9fa9-100f0a26acb7","displayName":"Eric+ Schubert"}},"owner":{"group":{"email":"[email protected]","id":"5dfb4269-d3e3-4c70-83f5-c4937ff6dcdb","displayName":"OP+ Test Owners"}},"quota":{"deleted":47480,"remaining":27487787051559,"state":"normal","total":27487790694400,"used":3595361}}},{"@odata.etag":"\"7a76be3b-077e-41ef-a9d9-1d7f97080cb0,21\"","id":"7a76be3b-077e-41ef-a9d9-1d7f97080cb0","name":"Shared+ Documents","[email protected]":"https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.list)(''7a76be3b-077e-41ef-a9d9-1d7f97080cb0'')/drive/$entity","drive":{"createdDateTime":"2023-12-10T00:27:16Z","description":"","id":"b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw","lastModifiedDateTime":"2024-08-09T11:53:52Z","name":"Documents","webUrl":"https://ymt6d.sharepoint.com/sites/OPTest/Shared%20Documents","driveType":"documentLibrary","createdBy":{"user":{"displayName":"System+ Account"}},"lastModifiedBy":{"user":{"email":"[email protected]","id":"5b5a7dc4-4539-41ba-9fa9-100f0a26acb7","displayName":"Eric+ Schubert"}},"owner":{"group":{"email":"[email protected]","id":"5dfb4269-d3e3-4c70-83f5-c4937ff6dcdb","displayName":"OP+ Test Owners"}},"quota":{"deleted":47480,"remaining":27487787051559,"state":"normal","total":27487790694400,"used":3595361}}},{"@odata.etag":"\"5cda990f-64f2-4035-9932-21b6d6409a25,4\"","id":"5cda990f-64f2-4035-9932-21b6d6409a25","name":"Selected+ Permissions","[email protected]":"https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.list)(''5cda990f-64f2-4035-9932-21b6d6409a25'')/drive/$entity","drive":{"createdDateTime":"2024-08-12T13:14:43Z","description":"","id":"b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY8Pmdpc8mQ1QJkyIbbWQJol","lastModifiedDateTime":"2024-08-12T16:45:41Z","name":"Selected+ Permissions","webUrl":"https://ymt6d.sharepoint.com/sites/OPTest/Selected%20Permissions","driveType":"documentLibrary","createdBy":{"user":{"email":"[email protected]","id":"5b5a7dc4-4539-41ba-9fa9-100f0a26acb7","displayName":"Eric+ Schubert"}},"lastModifiedBy":{"user":{"email":"[email protected]","id":"ddbce65c-65fd-42a9-be30-253e244c3f36","displayName":"OP+ Owner"}},"owner":{"group":{"email":"[email protected]","id":"5dfb4269-d3e3-4c70-83f5-c4937ff6dcdb","displayName":"OP+ Test Owners"}},"quota":{"deleted":47480,"remaining":27487787051559,"state":"normal","total":27487790694400,"used":3595361}}},{"@odata.etag":"\"f5a7a0d8-fb24-48d8-9785-46ccb1e3317f,22\"","id":"f5a7a0d8-fb24-48d8-9785-46ccb1e3317f","name":"Chris+ document library","[email protected]":"https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.list)(''f5a7a0d8-fb24-48d8-9785-46ccb1e3317f'')/drive/$entity","drive":{"createdDateTime":"2024-02-13T15:38:57Z","description":"For+ testing","id":"b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY_YoKf1JPvYSJeFRsyx4zF_","lastModifiedDateTime":"2024-05-21T12:58:12Z","name":"Chris+ document library","webUrl":"https://ymt6d.sharepoint.com/sites/OPTest/Chris%20document%20library","driveType":"documentLibrary","createdBy":{"user":{"email":"[email protected]","id":"5bbaa900-f913-41c9-9593-c3d03a14684b","displayName":"Christophe+ Bliard"}},"owner":{"group":{"email":"[email protected]","id":"5dfb4269-d3e3-4c70-83f5-c4937ff6dcdb","displayName":"OP+ Test Owners"}},"quota":{"deleted":47480,"remaining":27487787051559,"state":"normal","total":27487790694400,"used":3595361}}},{"@odata.etag":"\"87d67c02-fdaf-4504-8b39-920984585ad7,4\"","id":"87d67c02-fdaf-4504-8b39-920984585ad7","name":"Marcello+ AMPF","[email protected]":"https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.list)(''87d67c02-fdaf-4504-8b39-920984585ad7'')/drive/$entity","drive":{"createdDateTime":"2025-04-07T12:03:17Z","description":"","id":"b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY8CfNaHr_0ERYs5kgmEWFrX","lastModifiedDateTime":"2025-04-09T16:01:59Z","name":"Marcello+ (AMPF)","webUrl":"https://ymt6d.sharepoint.com/sites/OPTest/Marcello%20AMPF","driveType":"documentLibrary","createdBy":{"user":{"email":"[email protected]","id":"5b5a7dc4-4539-41ba-9fa9-100f0a26acb7","displayName":"Eric+ Schubert"}},"lastModifiedBy":{"user":{"email":"[email protected]","id":"5b5a7dc4-4539-41ba-9fa9-100f0a26acb7","displayName":"Eric+ Schubert"}},"owner":{"group":{"email":"[email protected]","id":"5dfb4269-d3e3-4c70-83f5-c4937ff6dcdb","displayName":"OP+ Test Owners"}},"quota":{"deleted":47480,"remaining":27487787051559,"state":"normal","total":27487790694400,"used":3595361}}},{"@odata.etag":"\"587ba428-c078-4d0d-a857-952e781601e7,6\"","id":"587ba428-c078-4d0d-a857-952e781601e7","name":"Dominic","[email protected]":"https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.list)(''587ba428-c078-4d0d-a857-952e781601e7'')/drive/$entity","drive":{"createdDateTime":"2024-07-05T09:54:25Z","description":"","id":"b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY8opHtYeMANTahXlS54FgHn","lastModifiedDateTime":"2024-07-19T07:48:01Z","name":"Dominic","webUrl":"https://ymt6d.sharepoint.com/sites/OPTest/Dominic","driveType":"documentLibrary","createdBy":{"user":{"email":"[email protected]","id":"5b5a7dc4-4539-41ba-9fa9-100f0a26acb7","displayName":"Eric+ Schubert"}},"owner":{"group":{"email":"[email protected]","id":"5dfb4269-d3e3-4c70-83f5-c4937ff6dcdb","displayName":"OP+ Test Owners"}},"quota":{"deleted":47480,"remaining":27487787051559,"state":"normal","total":27487790694400,"used":3595361}}},{"@odata.etag":"\"6b0e0177-f280-47a8-bb4c-c29b29823f79,25\"","id":"6b0e0177-f280-47a8-bb4c-c29b29823f79","name":"Markus","[email protected]":"https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.list)(''6b0e0177-f280-47a8-bb4c-c29b29823f79'')/drive/$entity","drive":{"createdDateTime":"2024-05-13T14:53:56Z","description":"","id":"b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY93AQ5rgPKoR7tMwpspgj95","lastModifiedDateTime":"2025-05-19T13:28:22Z","name":"Markus","webUrl":"https://ymt6d.sharepoint.com/sites/OPTest/Markus","driveType":"documentLibrary","createdBy":{"user":{"email":"[email protected]","id":"5b5a7dc4-4539-41ba-9fa9-100f0a26acb7","displayName":"Eric+ Schubert"}},"lastModifiedBy":{"user":{"email":"[email protected]","id":"ddbce65c-65fd-42a9-be30-253e244c3f36","displayName":"OP+ Owner"}},"owner":{"group":{"email":"[email protected]","id":"5dfb4269-d3e3-4c70-83f5-c4937ff6dcdb","displayName":"OP+ Test Owners"}},"quota":{"deleted":47480,"remaining":27487787051559,"state":"normal","total":27487790694400,"used":3595361}}},{"@odata.etag":"\"5ea9a363-3a24-4fab-b9ae-cef9a25a3156,20\"","id":"5ea9a363-3a24-4fab-b9ae-cef9a25a3156","name":"Marcello+ VCR","[email protected]":"https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.list)(''5ea9a363-3a24-4fab-b9ae-cef9a25a3156'')/drive/$entity","drive":{"createdDateTime":"2025-04-07T12:02:17Z","description":"","id":"b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY9jo6leJDqrT7muzvmiWjFW","lastModifiedDateTime":"2025-07-22T17:22:13Z","name":"Marcello+ (VCR)","webUrl":"https://ymt6d.sharepoint.com/sites/OPTest/Marcello%20VCR","driveType":"documentLibrary","createdBy":{"user":{"email":"[email protected]","id":"5b5a7dc4-4539-41ba-9fa9-100f0a26acb7","displayName":"Eric+ Schubert"}},"lastModifiedBy":{"user":{"email":"[email protected]","id":"a9023fd0-c421-4695-b83c-bb3ba67708d6","displayName":"OP+ Member"}},"owner":{"group":{"email":"[email protected]","id":"5dfb4269-d3e3-4c70-83f5-c4937ff6dcdb","displayName":"OP+ Test Owners"}},"quota":{"deleted":47480,"remaining":27487787051559,"state":"normal","total":27487790694400,"used":3595361}}},{"@odata.etag":"\"da53472d-ec9c-4fb1-b021-d89d3748c8a1,0\"","id":"da53472d-ec9c-4fb1-b021-d89d3748c8a1","name":"wte"},{"@odata.etag":"\"834449c8-dc24-44e0-a59a-e94f9128801c,8\"","id":"834449c8-dc24-44e0-a59a-e94f9128801c","name":"Access+ Requests"}]}'+ recorded_at: Thu, 24 Jul 2025 12:47:35 GMT+recorded_with: VCR 6.3.1