Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| spo [2025/12/03 07:42] – created epiclau | spo [2025/12/03 07:54] (current) – epiclau | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | As we are transitioning away from PNP Online Module - SECTION will capture all corresponding research. | ||
| + | |||
| + | |||
| **Working with SharePoint sites in Microsoft Graph** | **Working with SharePoint sites in Microsoft Graph** | ||
| + | |||
| https:// | https:// | ||
| + | |||
| + | API supports core activities: | ||
| + | * Access to SharePoint sites, lists, and drives (document libraries) | ||
| + | * Read-only support for site resources (no ability to create new sites) | ||
| + | * Read-write support for lists, listItems, and driveItems | ||
| + | * Read-write support for tenant-level SharePointSettings | ||
| + | * Address resources by SharePoint ID, URL, or relative path | ||
| + | |||
| + | The SharePoint API exposes three major resource types: | ||
| + | |||
| + | - Site (top-level object) | ||
| + | - List | ||
| + | - ListItem | ||
| + | |||
| + | < | ||
| + | # Install the Microsoft Graph PowerShell SDK | ||
| + | Install-Module Microsoft.Graph | ||
| + | |||
| + | # Connect to Microsoft Graph | ||
| + | Connect-MgGraph -Scopes " | ||
| + | |||
| + | # Create a new SharePoint site | ||
| + | $site = New-MgSite -DisplayName "New Site" -WebUrl " | ||
| + | </ | ||
| + | |||