Configure OneDrive for Business API Permissions and Handle Throttling
Question details
Determine how to register an application, obtain permissions, and comply with terms and throttling limits when accessing OneDrive for Business files.

- 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.
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.
Register the app and configure Microsoft Graph permissions
Use this approach to authorize an application to access or share OneDrive for Business files.
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.
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.
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.
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.
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.

Handle Microsoft Graph throttling responses
Use request handling and backoff to recover when API traffic exceeds service limits.
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.

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.




