Determine if a User has a Drive through Graph API?

Adz 286 Reputation points

I am attempting to get a Users Drive through the graph API, however


"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."

The Drive would get provisioned automatically if I do a get on /users/{id}/drive

Is there a way to determine if a User has a Drive without a user's Drive getting provisioned automatically.

If there isn't a way without provisioning one, will the GET /users/{id}/drive and automatic provisioning incur an extra fee on my company?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
9,936 questions
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,146 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous

    Hi @Adz,

    Thanks for reaching out!

    Currently there isn't any way to check the users drive without provisioning and automatic provisioning does not incur any extra charges on the company if you already have a OneDrive license associated with the user.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    0 comments No comments

0 additional answers

Sort by: Most helpful