Generate a client id to use Graph API on Sharepoint documents.

Douglas Smith 0 Reputation points
2024-09-26T06:18:04.0066667+00:00

How do I generate a client id in sharepoint such that I can interact with excel documents and sharepoint folders and document via Graph API?

Microsoft 365 and Office | SharePoint | Development
Microsoft Security | Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-09-26T07:17:40.8266667+00:00

    Hi @Douglas Smith

    To access SharePoint through the Graph API, you need to register the application in Azure, and properties such as the client id will be automatically generated. You can refer to the registration process in this document.

    In addition, I share two related API endpoints for managing SharePoint:

    Manage Excel through the Graph API:

    https://learn.microsoft.com/en-us/graph/api/resources/excel?view=graph-rest-1.0

    Manage files stored in SharePoint through the Graph API:

    https://learn.microsoft.com/en-us/graph/api/resources/onedrive?view=graph-rest-1.0

    Finally, you can also call the Graph API directly through the Graph Explorer without registering the app. See the documentation for more details.

    Hope this helps.

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

    0 comments No comments

Your answer

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