using golang msgraph-sdk-go to access user's workbook in their onedrive within the same organization

it-1048 0 Reputation points
2024-06-08T06:19:49.93+00:00

Hi,

my goal is to create a background app that can access(read/write) one of the user's workbook(excel) in their onedrive within the same tenant (or organization.

i am using the example app-only https://github.com/microsoftgraph/msgraph-training-go and add the changes to the func MakeGraphCall with the https://learn.microsoft.com/en-us/graph/api/workbook-createsession?view=graph-rest-1.0&tabs=go

Q1, graphdrives does not have DriveItemItemItemWorkbookCreateSessionRequestBuilderPostRequestConfiguration function ?

Q2, graphdrives does not have NewCreateSessionPostRequestBody function ?

from the https://learn.microsoft.com/en-us/graph/api/drive-get?view=graph-rest-1.0&tabs=go ,

Q3, it said that "application" type is not supported for access user's onedrive ?

Q4 , Then, is there another way to achieve the goal of this background app?

thank you!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,247 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,652 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
938 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jiajing Hua-MFST 7,315 Reputation points Microsoft Vendor
    2024-06-10T02:42:15.2866667+00:00

    Hi @it-1048

    I suggest you post a new thread in Microsoft Tech community: https://techcommunity.microsoft.com/t5/onedrive-developer/bd-p/OneDriveDeveloper

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.


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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments