First of all, you are reading the documentation for a deprecated API. With this API you actually had two separate APIs, one from OneDrive personal and one for OneDrive for Business. For the former you'd create an OAuth2 application on Windows Live which would be common for all users (that's what we did) and they'd only be able to access their OneDrive personal drives — not even their personal drives provided by a school or organization.
The other option was to create an OAuth2 application for a specific Azure tenant. This was absurdly complicated, it had to be done separately for each organisation and would only give access to that organisation's drives (and only according to the privileges delegated to the OAuth2 application). We never implemented that because it would require EITHER creating a separate integration for each and every client of ours (we'd have to charge an upfront itnegration fee and a yearly maintenance fee on top of the subscription for that to make business sense) OR you'd have to figure out how to create the app in Azure and how to set up the endpoint mediator on your site. Both options require extensive, very expensive support. We can't do that with our current prices, it doesn't make sense to charge everyone extra to subsidise a niche use case and it's impossible to sell a product where a certain feature requires an additional payment that's 10 to 20 times bigger than the product's subscription fee. What made most business sense is refuse to implement this feature and possibly lose a dozen or so clients.
This all became moot in 2019 when Microsoft FINALLY deprecated the kludgy OneDrive API and replaced it with the Microsoft Graph API (https://docs.microsoft.com/en-us/graph/use-the-api), a unified API for all of its services. Its OneDrive integration is here:https://docs.microsoft.com/en-us/graph/onedrive-concept-overview. According to Microsoft, it lets you upload to any of the drives you have upload access, no matter if they are personal or business (organization) drives. The default drive you have access to is your personal drive and that's what we use in our integration. Remember, the original goal was to let people use their Drives regardless of whether they were OneDrive personal (part of their personal account or personal Microsoft Office 365 or-whatever-the-call-it-this-month subscription) or OneDrive for Business (part of their school/organisation's Microsoft whatever-they-call-it-this-month subscription). So, this part works.
What you ask is a bit different. You want to write not to your personal drive provided by your organization but to a different drive which you have write access to as part of your organisation group. Writing to a different drive directly requires some missing plumbing. The only way around that that would work with what you are looking for is possibly doing the same thing we're doing with Google Drive. After you copy your tokens we can access the /me/drives endpoint to get the IDs of the drives you have access to and let you select which one. I can give it a go but since I don't have a business drive and don't have a spare domain to run a new MS subscription I won't be able to test it. I will work on it today. Tomorrow I'll be making releases and you can try that (tentative) feature.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!