Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,503 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm writing Integration Tests for restore-in-place disaster recovery. I can do everything I need via MS Graph (create a user, create O365 objects delete, restore etc) except for testing Onedrive restores because I cannot provision a Onedrive for the test user, programmatically. I cannot use a pre-existing test user because part of the testing requires fully deleting the user and recreating a new user with the same name.
How can I create test users with Onedrives programmatically?