Streamline your SharePoint experience with the new Microsoft Graph SharePoint Admin API

Microsoft Graph SharePoint Admin API
The Microsoft Graph SharePoint Admin API allows developers to interact with SharePoint and OneDrive tenant-level settings, providing a simple and intuitive interface for updating various settings such as file sharing capabilities and site creation options.
Update SharePoint and OneDrive tenant-level settings
With the SharePoint Admin API on Microsoft Graph, developers can easily update one or more tenant-level settings for SharePoint and OneDrive, including settings for the retention period for deleted user personal sites, excluded file extensions for the OneDrive sync app, and the default storage limit for personal sites.
Manage sharing capabilities and domain restrictions
The Microsoft Graph SharePoint Admin API also enables developers to manage sharing capabilities and domain restrictions for their tenant. They can control the sharing capability for the tenant and specify the external sharing mode for domains by setting values such as "no restrictions apply", "allowed email domains", and "blocked email domains".
Example: Updating tenant-level settings
Developers can update tenant-level settings using the Microsoft Graph SharePoint Admin API by sending an HTTP request with the appropriate permission and user role, as shown in the example provided.
Conclusion
By leveraging the Microsoft Graph SharePoint Admin API, developers can gain greater control over their organisation's settings, enhancing their SharePoint experience. To learn more about using the API, check out the official documentation. Happy coding!