Create, update, and delete connections in Microsoft Graph

Connections from external services to the Microsoft Search service are represented by the externalConnection resource in Microsoft Graph.

The Microsoft Graph connectors platform offers an intuitive way to add your external data into Microsoft Graph. A connection is a logical container for your external data that an administrator can manage as a single unit.

After a connection has been created, you can add your content from any external data source such as an on-premises content source or an external SaaS service. You can only view and manage the connections that you created or were explicitly authorized to manage. A search admin can view and manage all the connections in the tenant from the Modern Admin Center.

Sample custom helpdesk system Tickets Connector structure.

Sample custom helpdesk system Tickets Connector structure.

Admin view of connections including the custom Tickets Connector.

Admin view of connections including the custom Tickets Connector.

You can model a connection any way you want, but creating one connection for every instance of your connector is the most common model. For example, each time that you set up the Microsoft Windows file share connector, a new connection is created. You can also create a single connection to add all items from your data source. For example, you can create a single connection to add all the tickets and incidents across multiple teams from your helpdesk system.

States and operations

Your connection can exist in one of the following states.

State Description
Draft An empty connection is provisioned. The data source, schema, or any settings have not been configured yet.
Ready The connection is provisioned with registered schema and is ready for ingestion.
Obsolete This occurs when a dependent feature, such as an API, has been deprecated. Deleting the connection is the only valid operation.
LimitExceeded If you reach the maximum limit of a single connection or the tenant level quota across all connections, you cannot add more items until you exit the state.

The following table specifies which operations are available in each state.

Operation Draft Ready Obsolete LimitExceeded
Create connection ✔️ ✔️
Read connection ✔️ ✔️ ✔️ ✔️
Update connection ✔️ ✔️ ✔️
Delete connection ✔️ ✔️ ✔️ ✔️
Create schema ✔️
Read schema ✔️ ✔️ ✔️
Update schema
Delete schema
Create item ✔️
Read item ✔️ ✔️ ✔️
Update item ✔️ ✔️
Delete item ✔️ ✔️

A connection allows your application to define a schema for items that will be indexed, and it provides an endpoint for your service to add, update, or delete items from the index.

The first step for an application to add items to the search index is to create a connection.

Create a connection

Before an application can add items to the search index, it must create and configure a connection:

  1. Create a connection with a unique ID, display name, and description.
  2. Register a schema to define the fields that will be included in the index.

Note

For information about updating the schema for an existing connection, see Schema update capabilities.

Update a connection

To change the display name or description of an existing connection, you can update the connection.

Delete a connection

To remove all items that were indexed via a connection, you can delete a connection.

Next steps