ESC
Type to search...

Contracts.Read.All

Export JSON
Export CSV
Copy URL
Print
ApplicationDelegated Read All Resources

Allows the app to read available properties on contracts, without a signed-in user.

Permission data: April 5, 2026 at 4:03 AM UTC
Delegated Access App-Only Access

Permission Details

Application Permission

Read contracts

Allows the app to read available properties on contracts, without a signed-in user.

Delegated Permission Admin consent required

Read contracts

Allows the app to read available properties of contracts, on behalf of the signed-in user.

Properties

Microsoft Graph v1.0 endpoint-derived-docs

Properties is shown from stable Microsoft Graph v1.0 metadata.

Property Type Description
contractType StringNullable Type of contract. The possible values are: SyndicationPartner, BreadthPartner, ResellerPartner. See more in the table below.
customerId GuidNullable The unique identifier for the customer tenant referenced by this partnership. Corresponds to the id property of the customer tenant's organization resource.
defaultDomainName StringNullable A copy of the customer tenant's default domain name. The copy is made when the partnership with the customer is established. It isn't automatically updated if the customer tenant's default domain name changes.
displayName StringNullable A copy of the customer tenant's display name. The copy is made when the partnership with the customer is established. It is not automatically updated if the customer tenant's display name changes.
id String The unique identifier for the partnership. Key, read-only
deletedDateTime date-timeNullable Date and time when this object was deleted. Always null when the object hasn't been deleted.

JSON Representation

Microsoft Graph v1.0 endpoint-derived-docs

JSON representation is shown from stable Microsoft Graph v1.0 metadata.

JSON representation
{
  "contractType": "String",
  "customerId": "Guid",
  "defaultDomainName": "String",
  "displayName": "String",
  "id": "String (identifier)"
}

Relationships

Microsoft Graph v1.0 schema-derived

Relationships is shown from stable Microsoft Graph v1.0 metadata.

Relationship Type Description
customerId uuid The unique identifier for the customer tenant referenced by this partnership. Corresponds to the id property of the customer tenant's organization resource.

Graph Methods

Delegated access App-only access
Contracts resource-family fallback

Microsoft Graph v1.0 endpoints are shown from Microsoft Graph OpenAPI resource-family metadata because Microsoft Learn does not publish a direct mapping for this permission.

Methods
GET /contracts
GET /contracts/{contract-id}
GET /contracts/{contract-id}/restore
POST /contracts
POST /contracts/{contract-id}/checkMemberGroups
POST /contracts/{contract-id}/checkMemberObjects
POST /contracts/{contract-id}/getMemberGroups
POST /contracts/{contract-id}/getMemberObjects
POST /contracts/{contract-id}/restore
POST /contracts/getAvailableExtensionProperties
POST /contracts/getByIds
POST /contracts/validateProperties
PATCH /contracts/{contract-id}
DELETE /contracts/{contract-id}
Contracts resource-family fallback

Microsoft Graph beta endpoints are shown from Microsoft Graph OpenAPI resource-family metadata because Microsoft Learn does not publish a direct mapping for this permission.

Methods
GET /contracts
GET /contracts/{contract-id}
GET /contracts/{contract-id}/restore
POST /contracts
POST /contracts/{contract-id}/checkMemberGroups
POST /contracts/{contract-id}/checkMemberObjects
POST /contracts/{contract-id}/getMemberGroups
POST /contracts/{contract-id}/getMemberObjects
POST /contracts/{contract-id}/restore
POST /contracts/getByIds
POST /contracts/getUserOwnedObjects
POST /contracts/validateProperties
PATCH /contracts/{contract-id}
DELETE /contracts/{contract-id}
No Microsoft Learn PowerShell mapping available

Microsoft Graph PowerShell v1.0 commands are not available from refreshed Microsoft Learn PowerShell snippets for this permission.

No deterministic PowerShell command map is available for this permission.

Browse PowerShell docs
No Microsoft Learn PowerShell mapping available

Microsoft Graph PowerShell beta commands are not available from refreshed Microsoft Learn PowerShell snippets for this permission.

No deterministic PowerShell command map is available for this permission.

Browse PowerShell docs

Code Examples

C# / .NET SDK
using Azure.Identity;
using Microsoft.Graph;

var scopes = new[] { "Contracts.Read.All" };
var credential = new InteractiveBrowserCredential(
    new InteractiveBrowserCredentialOptions
    {
        ClientId = "YOUR_CLIENT_ID",
        TenantId = "YOUR_TENANT_ID",
        RedirectUri = new Uri("http://localhost")
    });

var graphClient = new GraphServiceClient(credential, scopes);
var response = await graphClient
    .WithUrl("https://graph.microsoft.com/v1.0/contracts")
    .GetAsync();
JavaScript
import { Client } from "@microsoft/microsoft-graph-client";
import { InteractiveBrowserCredential } from "@azure/identity";

const credential = new InteractiveBrowserCredential({
  clientId: "YOUR_CLIENT_ID",
  tenantId: "YOUR_TENANT_ID",
  redirectUri: "http://localhost"
});

const token = await credential.getToken(["Contracts.Read.All"]);
const client = Client.init({
  authProvider: (done) => done(null, token.token)
});

const response = await client.api("/contracts").get();
PowerShell
Connect-MgGraph -Scopes "Contracts.Read.All"
Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/contracts"
Python
from azure.identity import InteractiveBrowserCredential
import requests

credential = InteractiveBrowserCredential(
    client_id="YOUR_CLIENT_ID",
    tenant_id="YOUR_TENANT_ID"
)

token = credential.get_token("Contracts.Read.All")
response = requests.get(
    "https://graph.microsoft.com/v1.0/contracts",
    headers={"Authorization": f"Bearer {token.token}"}
)

print(response.json())

App Registration

1

Navigate to Azure Portal

Go to App registrations in Microsoft Entra admin center

2

Add API Permission

Select your app → API permissions → Add a permission → Microsoft Graph

3

Select Permission Type

Choose Application permissions or delegated permissions and search for Contracts.Read.All

4

Grant Admin Consent

Application permissions always require admin consent.