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 Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,236 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,032 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 6,340 Reputation points Microsoft Vendor
    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 Answers by the question author, which helps users to know the answer solved the author's problem.