You would utilize the Known Folder Move OneDrive policies. There are a few different methods to accomplish this, have a look at Microsoft's documentation, https://learn.microsoft.com/en-us/sharepoint/redirect-known-folders.
We use configuration profiles within Intune to accomplish this:
Please accept as an answer if this was helpful.