List of all possible domains in OneDrive item uploadUrl

Deepesh 1 Reputation point
2022-10-18T06:14:54.467+00:00

As per the answer here - https://learn.microsoft.com/en-us/answers/questions/953772/sharepoint-online-ip-address-and-url-web-service.html

Usually, the generated UploadUrl is mainly the OneDrive or SharePoint address where your file is located. In Graph API docs it appears 1drv.com domain, which is just an abbreviation for OneDrive in samples

But in my case the url to my personal onedrive is https://onedrive.live.com/?id=root&cid=31C546EE532BF3F6, but the uploadUrl comes as https://api.onedrive.com/rup/31c546ee532bf3f6/eyJSZX***. It means the uploadUrl has different domain (.onedrive.com) than my personal OneDrive domain (.live.com).

Is there a place where all these possible domains are listed, so that we can whitelist them in our application?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,067 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,024 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bhanu Kiran 3,526 Reputation points
    2022-10-18T06:58:38.643+00:00

    Hello @Deepesh ,

    Please refer to this documentation if you are looking for supported ports and hosts for OneDrive.

    If you would like to view the list of OneDrive URLs for users in your organization refer to this documentation.

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

    0 comments No comments