You probably should ask this in the business specific forum
Office 365 Business Forum
https://community.office365.com/en-us/ - Home page
https://community.office365.com/en-us/f - Forums list
Rather than C, you could also look into PowerShell. Here are some scripts that may give you an idea of how to do what you want:
Office- Control access to PowerApps and Flow -https://powerapps.microsoft.com/en-us/tutorials/signup-question-and-answer/****This topic describes how users in your organization can use PowerApps, and how you can control the PowerApps service.
PowerApps and Flow are both built on the exact same platform / infra so everything is identically applicable to both.
**Use PowerShell to Explore Office 365 Installation**,
I talked about using Windows PowerShell to explore the settings and the capabilities of my Office 365 tenant installation.
on 25 Mar 2014Use PowerShell to Manage Office 365 Users - finding unlicensed users, removing users, and modifying users
**http://blogs.technet.com/b/heyscriptingguy/archive/2014/03/26/se-powershell-to-manage-office-365-users.aspx**
OFFICE-Add and remove an application in the Microsoft Deployment Toolkit (MDT) with PowerShell****Damien
Van Robaeys Mon, Mar 21 2016
deployment,
powershell,
powershell scripts
0
In this article I will demonstrate how to add and remove an application with source files and an application...
Read more
OFFICE- Get Back Older OneNote App with Radial Menu and Document Scanning / OneNoteMX / OneNote MXhttps://www.youtube.com/watch?v=YP5Y0c7-Qvg
Note: Click on “Show More” in the YouTube description to see the OneDrive download link!
The “Setup.bat” file uses PowerShell to “sideload” OneNote MX.