Posts

Showing posts with the label SPO & Azure

Sharepoint list item using the Microsoft Graph API and Postman

  To retrieve a list item using the Microsoft Graph API and Postman, you'll need to follow these general steps. I'll provide a basic example, but keep in mind that you may need to adjust the details based on your specific use case and the permissions you have. Prerequisites: Register an App in Azure AD: Go to the Azure Portal . Navigate to Azure Active Directory -> App registrations -> New registration. Note down the Application (client) ID and Directory (tenant) ID. Create Client Secret: In the App registration, go to Certificates & Secrets. Create a new client secret and note down the Value. Grant API Permissions: Go to API permissions and grant the necessary permissions (e.g., Sites.ReadWrite.All for SharePoint). Get Access Token: Use the client ID, client secret, and tenant ID to get an access token. You can use the OAuth 2.0 authorization code flow or client credentials flow. For simplicity, I'll use the client credentials flow here. http Copy code POST http...

Azure app registration sharepoint online api c#

  https://www.c-sharpcorner.com/article/consume-sharepoint-online-csom-rest-api-with-dotnet-core-3-1/ To access SharePoint resources using Azure App Registration and SharePoint API in a C# application, you can follow these steps: Step 1: Register your Application in Azure Portal Go to the Azure Portal ( https://portal.azure.com/ ). Navigate to Azure Active Directory -> App registrations -> New registration. Provide a name and redirect URI for your application. Note down the Application (client) ID and Directory (tenant) ID. Step 2: Set API Permissions In your registered application, go to "API permissions" -> "Add a permission" -> SharePoint -> "Delegated permissions" or "Application permissions". Choose the appropriate permissions according to your requirements. Click "Add permissions" and then "Grant admin consent for [your organization]". Step 3: Get Client Secret In your registered application, go to "C...