Graph.Community
4.54.6
dotnet add package Graph.Community --version 4.54.6
NuGet\Install-Package Graph.Community -Version 4.54.6
<PackageReference Include="Graph.Community" Version="4.54.6" />
paket add Graph.Community --version 4.54.6
#r "nuget: Graph.Community, 4.54.6"
// Install Graph.Community as a Cake Addin #addin nuget:?package=Graph.Community&version=4.54.6 // Install Graph.Community as a Cake Tool #tool nuget:?package=Graph.Community&version=4.54.6
Graph SDK Community Extensions (Graph.Community)
The Graph extension library is a community effort to unblock developers building on .Net Standard who need to call endpoints that are not part of the Microsoft Graph.
Documentation
This community library contains requests and models that extend the Microsoft Graph SDK. Please review the Roadmap for an index of requests that are included and on the roadmap.
If there is an endpoint node for which you would like a request, please submit an issue to initiate a conversation. This will help reduce wasted effort.
Getting Started
The library includes a client factory class (CommunityGraphClientFactory
) that provides methods to setup the Graph Service client with the handlers included in this library.
Using TokenCredential class
To use a TokenCredential
class:
var credential = new DefaultAzureCredential();
CommunityGraphClientOptions clientOptions = new CommunityGraphClientOptions()
{
UserAgent = "ExtendedCapabilitiesSample"
};
var graphServiceClient = CommunityGraphClientFactory.Create(clientOptions, credential);
To use an Authorization provider:
IAuthenticationProvider ap = new CustomAuthenticationProvider(pca, scopes);
CommunityGraphClientOptions clientOptions = new CommunityGraphClientOptions()
{
UserAgent = "ExtendedCapabilitiesSample"
};
var graphServiceClient = CommunityGraphClientFactory.Create(clientOptions, ap);
A complete implementation is included in the Diagnostic sample.
The CommunityGraphClientOptions
provides for specifing information to decorate SharePoint REST traffic to help mitigate throttling.
Once a GraphServiceClient is instantiated, an extension method provides access to the SharePoint REST endpoint. This SharePointAPI
extension method requires an absolute URL to the SharePoint site collection that is the target of the call. Subsequent methods of the fluent API are used to address the feature area of the REST API.
Example
Statement:
gsc.SharePointAPI('https://mock.sharepoint.com/sites/mockSite')
.SiteDesigns
.Request()
.GetAsync()
Request:
GET https://mock.sharepoint.com/sites/mockSite/_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.GetSiteDesigns`
SharePoint Handler
Starting with v3.21, the library contains middleware (a delegating handler) that will transform errors from SharePoint Online into a ServiceException. This allows consuming code to standardize error handling.
Breaking change in v3.18
The SPUser
class returned from the Web.SiteUsers
request has been renamed to User
. This aligns with the OData.type property returned from the service.
Versioning
The version number intentionaly aligned with the version of the Microsoft.Graph package.
Version Component | Notes |
---|---|
Major | Aligned with Microsoft.Graph |
Minor | Aligned with Microsoft.Graph |
Patch | Incremented as requests/models are added to Graph.Community |
Suffix | Release/build type |
Version suffixes (#
indicates a sequence number that is reset for each major/minor):
-CI-#
Continuous Integration release built from dev branch-preview#
Preview release, built from prerelease branch- No suffix is release build
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.ApplicationInsights (>= 2.21.0)
- Microsoft.Graph (>= 4.54.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
4.54.6 | 2,469 | 3/21/2024 |
4.54.5 | 1,009 | 2/16/2024 |
4.54.5-preview1 | 367 | 11/20/2023 |
4.54.4 | 1,218 | 7/31/2023 |
4.54.3 | 242 | 7/14/2023 |
4.54.1 | 636 | 4/5/2023 |
4.54.0 | 1,257 | 2/22/2023 |
4.52.0 | 472 | 2/7/2023 |
4.50.1 | 794 | 1/12/2023 |
4.50.0 | 317 | 1/12/2023 |
4.47.1 | 430 | 11/15/2022 |
4.47.0 | 588 | 11/15/2022 |
4.40.1 | 3,851 | 9/19/2022 |
4.40.0 | 522 | 9/14/2022 |
4.37.0 | 474 | 8/25/2022 |
4.33.0 | 775 | 7/1/2022 |
4.32.1 | 495 | 6/24/2022 |
4.32.0 | 488 | 6/24/2022 |
4.30.1 | 531 | 6/14/2022 |
4.30.0 | 481 | 6/9/2022 |
4.29.1 | 490 | 5/27/2022 |
4.29.0 | 434 | 5/27/2022 |
4.28.0 | 609 | 5/13/2022 |
4.20.0 | 789 | 3/10/2022 |
4.14.0 | 2,456 | 1/12/2022 |
4.12.0 | 561 | 12/17/2021 |
4.10.0 | 4,986 | 11/12/2021 |
4.7.0 | 719 | 10/21/2021 |
4.6.1 | 481 | 10/13/2021 |
4.6.0 | 366 | 10/13/2021 |
4.2.0 | 1,952 | 8/28/2021 |
4.2.0-preview2 | 259 | 8/18/2021 |
3.35.4 | 509 | 9/16/2021 |
3.35.3 | 447 | 9/9/2021 |
3.35.2 | 417 | 9/8/2021 |
3.35.1 | 1,137 | 8/9/2021 |
3.35.0 | 436 | 7/30/2021 |
3.32.0 | 825 | 5/20/2021 |
3.29.0 | 508 | 4/5/2021 |
3.27.0 | 635 | 3/25/2021 |
3.25.0 | 453 | 2/18/2021 |
3.22.0 | 693 | 1/20/2021 |
3.21.2 | 442 | 1/15/2021 |
3.21.1 | 1,772 | 12/10/2020 |
3.21.0 | 450 | 12/8/2020 |
3.20.1 | 461 | 12/1/2020 |
3.20.0 | 522 | 12/1/2020 |
3.19.3 | 529 | 11/4/2020 |
3.19.2 | 509 | 11/4/2020 |
3.19.1 | 481 | 11/3/2020 |
3.19.0 | 518 | 10/29/2020 |
3.18.1 | 495 | 10/27/2020 |
3.18.0 | 521 | 10/21/2020 |
3.13.0 | 541 | 9/14/2020 |
3.10.0 | 521 | 8/19/2020 |
3.9.1 | 526 | 8/18/2020 |
3.9.0 | 502 | 8/4/2020 |
3.4.0 | 738 | 5/5/2020 |
3.2.0 | 755 | 4/14/2020 |
1.21.0 | 698 | 2/12/2020 |
1.20.0 | 754 | 11/13/2019 |
1.18.0 | 611 | 10/16/2019 |
1.17.2 | 623 | 9/18/2019 |
1.17.1 | 558 | 9/4/2019 |
1.17.0 | 565 | 9/3/2019 |
1.16.1 | 621 | 8/1/2019 |
1.16.0 | 638 | 7/9/2019 |