Create, update, and delete connections 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.
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:
- Create a connection with a unique ID, display name, and description.
- 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.
Connection settings
You can configure the default connection settings for each enabled content experience. When enabled, these settings affect the content experiences.
Search settings
You can define how search results are displayed in the Microsoft Search results page by supplying the default search display templates for your content in searchSettings. A set of search display templates can be used to display distinct kinds of search results differently. A search display template has a result layout built using Adaptive Cards and rules that specify one or more conditions. When these conditions are met, the layout will be applied to the search result and displayed on the results page.
Activity settings
In activity settings, you can provide a way for Microsoft 365 apps to detect share activity, which will enable your content to be recommended to users who interact with that content the most. The way to do this is to add a urlToItemResolver, which will allow a URL from the connection detected within Microsoft 365 apps to be resolved to its respective item ID on the externalItem.
The following image shows how your item might appear within recommendation experiences across Microsoft 365.
Update a connection
To change the display name, description, or enabled content experiences for 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
意見反應
提交並檢視相關的意見反應