Provision Onedrive for Test User

Peter Ashford 0 Reputation points
2024-11-24T21:39:36.09+00:00

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?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,503 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,188 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.