The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Dear @wenceslao avalos,
Good day! Welcome to Microsoft Q&A forum!
Thank you for the detailed information.Based on the currently supported options, there does not appear to be a Microsoft Graph app-only API that can proactively provision a user's OneDrive. OneDrive provisioning is typically triggered either by a user's first sign-in or through SharePoint Online provisioning processes.
At this time, the Microsoft-supported approach for pre-provisioning OneDrive is to use the Request-SPOPersonalSite cmdlet. This process runs asynchronously in the SharePoint backend, so it may take some time before the OneDrive site becomes available.
A recommended workflow would be:
- Create the user account
- Assign the required licenses (including SharePoint/OneDrive entitlement)
- Run
Request-SPOPersonalSite - Verify that the OneDrive site has been provisioned
- Allow the account to host Teams meetings
This helps prevent scenarios where meetings are created successfully but transcripts cannot be saved because the organizer's OneDrive does not yet exist.
Regarding your question about alternatives, I'm currently not aware of a supported Graph app-only or SharePoint REST app-only method that reliably provisions OneDrive ahead of first sign-in. The supported solution remains centered around SharePoint OneDrive provisioning cmdlets.
Since this scenario touches on product limitations and supported provisioning patterns, I recommend also posting in the TechCommunity where SharePoint and OneDrive subject matter experts may be able to provide additional guidance or share any recently supported approaches.
Thank you for your kindness and understanding!
If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in [forum documentation] to enable e-mail notifications if you want to receive the related email notification for this thread.