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 365 and Office OneDrive For business Windows
Microsoft 365 and Office Excel For business Windows
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jiajing Hua 18,060 Reputation points Moderator
    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

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.