ESC
Type to search...

ExternalConnection.ReadWrite.OwnedBy

Export JSON
Export CSV
Copy URL
Print
ApplicationDelegated Read/Write Owned Only

Allows the app to read and write external connections without a signed-in user. The app can only read and write external connections that it is authorized to, or it can create new external connections.

Permission data: April 6, 2026 at 4:06 AM UTC
Delegated Access App-Only Access

Permission Details

Application Permission

Read and write external connections

Allows the app to read and write external connections without a signed-in user. The app can only read and write external connections that it is authorized to, or it can create new external connections.

Delegated Permission Admin consent required

Read and write external connections

Allows the app to read and write settings of external connections on behalf of a signed-in user. The signed-in user must be an administrator. The app can only read and write settings of connections that it is authorized to.

Properties

Microsoft Graph beta exact-category

Properties is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.

Property Type Description
configuration object
description stringNullable
groups externalGroup collection
id string The unique identifier for an entity. Read-only.
items externalItem collection
name stringNullable
operations connectionOperation collection
schema object
state objectRead-only

JSON Representation

Microsoft Graph beta exact-category

JSON representation is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.

JSON representation
{
  "configuration": {
    "sample": "value"
  },
  "description": "String",
  "groups": [
    {
      "@type": "externalGroup",
      "id": "00000000-0000-0000-0000-000000000000"
    }
  ],
  "id": "String",
  "items": [
    {
      "@type": "externalItem",
      "id": "00000000-0000-0000-0000-000000000000"
    }
  ],
  "name": "String",
  "operations": [
    {
      "@type": "connectionOperation",
      "id": "00000000-0000-0000-0000-000000000000"
    }
  ],
  "schema": {
    "sample": "value"
  },
  "state": {
    "sample": "value"
  }
}

Relationships

Microsoft Graph beta exact-category

Relationships is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.

Relationship Type Description
groups externalGroup collection External groups in the connection.
items externalItem collection External items in the connection.
schema schema Schema definition for the external connection.
operations connectionOperation collection Related operations data exposed by this resource.

Graph Methods

Delegated access App-only access
Exact Microsoft Learn match

Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.

Methods
GET /external/connections
GET /external/connections/{connectionsId}
GET /external/connections/{connectionsId}/operations/{connectionOperationId}
GET /external/connections/{connectionsId}/schema
POST /external/connections
PATCH /external/connections/{connectionsId}
PATCH /external/connections/{id}/schema
DELETE /external/connections/{connectionsId}
Exact Microsoft Learn match

Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.

Methods
GET /external/connections
GET /external/connections/{connection-id}/operations/{operation-id}
GET /external/connections/{id}
GET /external/connections/{id}/quota
GET /external/connections/{id}/schema
POST /external/connections
PATCH /external/connections/{connectionId}/schema
PATCH /external/connections/{id}
PATCH /external/connections/{id}/schema
DELETE /external/connections/{id}
Exact Microsoft Learn PowerShell match

Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.

Commands
Get-MgExternalConnection /external/connections
List externalConnections
Get-MgExternalConnection /external/connections/{connectionsId}
Get externalConnection
Get-MgExternalConnectionOperation /external/connections/{connectionsId}/operations/{connectionOperationId}
Get connectionOperation
Get-MgExternalConnectionSchema /external/connections/{connectionsId}/schema
Get schema
New-MgExternalConnection /external/connections
Create externalConnection
Remove-MgExternalConnection /external/connections/{connectionsId}
Delete externalConnection
Update-MgExternalConnection /external/connections/{connectionsId}
Update externalConnection
Update-MgExternalConnectionSchema /external/connections/{id}/schema
Create or update schema
Exact Microsoft Learn PowerShell match

Microsoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.

Commands
Get-MgBetaExternalConnection /external/connections
List connections
Get-MgBetaExternalConnection /external/connections/{id}
Get connection
Get-MgBetaExternalConnectionOperation /external/connections/{connection-id}/operations/{operation-id}
Get connectionOperation
Get-MgBetaExternalConnectionQuota /external/connections/{id}/quota
Get connectionQuota
Get-MgBetaExternalConnectionSchema /external/connections/{id}/schema
Get schema
New-MgBetaExternalConnection /external/connections
Create connection
Remove-MgBetaExternalConnection /external/connections/{id}
Delete externalConnection
Update-MgBetaExternalConnection /external/connections/{id}
Update externalConnection
Update-MgBetaExternalConnectionSchema /external/connections/{connectionId}/schema
Update schema
Update-MgBetaExternalConnectionSchema /external/connections/{id}/schema
Create or update schema

Code Examples

C# / .NET SDK
Create externalConnection
// Code snippets are only available for the latest version. Current version is 5.x

// Dependencies
using Microsoft.Graph.Models.ExternalConnectors;

var requestBody = new ExternalConnection
{
	Id = "contosohr",
	Name = "Contoso HR",
	Description = "Connection to index Contoso HR system",
};

// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.External.Connections.PostAsync(requestBody);
JavaScript
Create externalConnection
const options = {
	authProvider,
};

const client = Client.init(options);

const externalConnection = {
  id: 'contosohr',
  name: 'Contoso HR',
  description: 'Connection to index Contoso HR system'
};

await client.api('/external/connections')
	.post(externalConnection);
PowerShell
Create externalConnection
Import-Module Microsoft.Graph.Search

$params = @{
	id = "contosohr"
	name = "Contoso HR"
	description = "Connection to index Contoso HR system"
}

New-MgExternalConnection -BodyParameter $params
Python
Create externalConnection
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.external_connectors.external_connection import ExternalConnection
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = ExternalConnection(
	id = "contosohr",
	name = "Contoso HR",
	description = "Connection to index Contoso HR system",
)

result = await graph_client.external.connections.post(request_body)

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 ExternalConnection.ReadWrite.OwnedBy

4

Grant Admin Consent

Application permissions always require admin consent.