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 365 and Office | OneDrive | For business | Windows
Microsoft Security | Microsoft Graph
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.