How can I access Microsoft Graph API for personal account to modify excel files stored in OneDrive though my own application.

Omar Bsoul 5 Reputation points
2024-03-09T14:04:30.7466667+00:00

I am trying to develop a custom GPT that would automate filling of an excel file for my personal uses. For that I developed a custom action handler for the custom GPT. However, now I require access to microsoft graph api to do so, which mentions on the "Get Started" page that it is for business.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,043 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,916 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Diah.Karim-MSFT 330 Reputation points Microsoft Vendor
    2024-04-02T07:35:33.79+00:00

    Good day Omar,

    To access the Microsoft Graph API for personal accounts to modify Excel files stored in OneDrive through your own application, you can follow these steps:

    1. Register your application with the Azure Active Directory (Azure AD) to obtain the client ID and secret.
    2. Implement authentication in your application to obtain an access token from Azure AD using OAuth 2.0.
    3. Use the access token to make requests to the Microsoft Graph API to access and modify Excel files stored in OneDrive.
    

    For detailed guidance, you can refer to the Microsoft Graph documentation and resources available on the Microsoft Learn platform Working with Excel in https://learn.microsoft.com/en-us/graph/api/resources/excel?view=graph-rest-1.0. Additionally, you may find the "Excel Integration using Microsoft Graph API" presentation by Bailey Chauner (Aquent LLC) helpful, which demonstrates accessing Excel files through the Microsoft Graph API. Remember to ensure that your application has the necessary permissions to access and modify the files in 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".

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.