Others

Configure OneDrive for Business API Permissions and Handle Throttling

Steven ParkerSteven Parker Nov 18, 2026 870 views

Question details

Determine how to register an application, obtain permissions, and comply with terms and throttling limits when accessing OneDrive for Business files.

Configure OneDrive for Business API Permissions and Handle Throttling
Product
OneDrive for Business and Microsoft Graph API
Device & OS
not provided
Scenario
An application needs to access, create, or share files in OneDrive for Business.
Observed behavior
The application needs appropriate authorization, applicable licenses, and a way to handle throttled requests.
Before you start

Identify whether the app will act on behalf of a signed-in user or run without a user, and list the file operations it needs. Confirm that the target users have the required OneDrive for Business licenses and that you can request administrator consent if necessary.

Solution 1Recommended

Register the app and configure Microsoft Graph permissions

Use this approach to authorize an application to access or share OneDrive for Business files.

1
Register the application

In the Microsoft Entra admin center, open Identity > Applications > App registrations, select New registration, and configure the app name, supported account types, and redirect URI if needed.

2
Add Graph permissions

Open the registration's API permissions page, select Add a permission > Microsoft Graph, and choose delegated permissions for signed-in access or application permissions for unattended access. Select only the permissions required for the operations.

3
Obtain consent

On the API permissions page, check whether the selected permissions require administrator consent. If they do, have an authorized administrator select Grant admin consent for the organization.

4
Authenticate and test access

Configure the app's authentication settings under Authentication or Certificates & secrets, obtain a Microsoft Graph access token, and test a request against the appropriate drive endpoint. For example, a signed-in user can access their drive through GET /me/drive.

5
Review terms and sharing requirements

In Microsoft Learn, review the Microsoft Graph terms of use, OneDrive API documentation, and documentation for any sharing operation such as createLink. Check that licensing, tenant policies, and the granted permissions permit the intended use.

Register the app and configure Microsoft Graph permissions
Choose permissions carefully: Delegated permissions operate in the context of a signed-in user; application permissions allow access without a signed-in user and generally require administrator consent. The exact permission depends on the endpoint and operation.
Free Microsoft Office alternative

Edit Office documents with WPS Office

WPS Office is a free, lightweight, easy-to-use alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Office format support make it easier to move existing files between suites. It does not configure OneDrive API permissions or resolve Microsoft Graph throttling.

Create and edit documents that can be used in file-sharing workflowsOpen and save common Microsoft Office formats, including DOCX, XLSX, and PPTXUse familiar editing tools with a lightweight Office suiteMove existing Office files into a free productivity suite
microsoft office alternative - wps office

Frequently Asked Questions

Which permission should I choose for my OneDrive app?

In App registrations > API permissions, choose a Microsoft Graph delegated permission if the app acts for a signed-in user, or an application permission if it runs without one. Check the documentation for each endpoint and select the least privileged permission that supports the operation.

When is administrator consent required?

Application permissions generally require administrator consent, and some delegated permissions do too. Check the selected permissions in the app registration's API permissions page and ask an authorized administrator to grant consent when required.

What should my app do after receiving HTTP 429?

Read the Retry-After header and wait for the specified interval before retrying. If it is absent, use exponential backoff and review the Microsoft Graph throttling guidance.

Can an unattended app use the /me/drive endpoint?

No. The /me endpoint represents a signed-in user and requires delegated access. An unattended app should use an appropriate user or drive endpoint with suitable application permissions.