Hi @Adz
Hope you're doing well.
As you are using Client Credentials Flow, please verify the below:
- Check if the user is enabled with valid license
- If user has a license to use OneDrive, is not provisioned
- If a user's OneDrive is not provisioned but the user has a license to use OneDrive, this request will automatically provision the user's drive, when using delegated authentication
Note: Guest users won't have a dedicated OneDrive.
Also, please use GET /users/{idOrUserPrincipalName}/drive instead of /drives
Documentation Reference: Get User's OneDrive
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".