|
| 1 | +--- |
| 2 | +title: "Create externalOriginResourceConnector" |
| 3 | +description: "Create a new externalOriginResourceConnector object." |
| 4 | +author: "vikama-microsoft" |
| 5 | +ms.date: 02/23/2026 |
| 6 | +ms.localizationpriority: medium |
| 7 | +ms.subservice: "entra-id-governance" |
| 8 | +doc_type: apiPageType |
| 9 | +--- |
| 10 | + |
| 11 | +# Create externalOriginResourceConnector |
| 12 | + |
| 13 | +Namespace: microsoft.graph |
| 14 | + |
| 15 | +[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)] |
| 16 | + |
| 17 | +Creates a new [externalOriginResourceConnector](../resources/externaloriginresourceconnector.md) object. |
| 18 | + |
| 19 | +## Permissions |
| 20 | + |
| 21 | +Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions [only if your app requires it](/graph/permissions-overview#best-practices-for-using-microsoft-graph-permissions). For details about delegated and application permissions, see [Permission types](/graph/permissions-overview#permission-types). To learn more about these permissions, see the [permissions reference](/graph/permissions-reference). |
| 22 | + |
| 23 | +<!-- { |
| 24 | + "blockType": "permissions", |
| 25 | + "name": "entitlementmanagement-post-externaloriginresourceconnectors-permissions" |
| 26 | +} |
| 27 | +--> |
| 28 | + |
| 29 | +[!INCLUDE [permissions-table](../includes/permissions/entitlementmanagement-post-externaloriginresourceconnectors-permissions.md)] |
| 30 | + |
| 31 | +## HTTP request |
| 32 | + |
| 33 | +<!-- { |
| 34 | + "blockType": "ignored" |
| 35 | +} |
| 36 | +--> |
| 37 | +``` http |
| 38 | +POST /identityGovernance/entitlementManagement/externalOriginResourceConnectors |
| 39 | +``` |
| 40 | + |
| 41 | +## Request headers |
| 42 | + |
| 43 | +|Name|Description| |
| 44 | +|:---|:---| |
| 45 | +|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).| |
| 46 | +|Content-Type|application/json. Required.| |
| 47 | + |
| 48 | +## Request body |
| 49 | + |
| 50 | +In the request body, supply a JSON representation of the [externalOriginResourceConnector](../resources/externaloriginresourceconnector.md) object. |
| 51 | + |
| 52 | +You can specify the following properties when creating an **externalOriginResourceConnector**. |
| 53 | + |
| 54 | +|Property|Type|Description| |
| 55 | +|:---|:---|:---| |
| 56 | +|connectionInfo|[connectionInfo](../resources/connectioninfo.md)|The connection information for the external origin resource connector. Required.| |
| 57 | +|connectorType|connectorType|The type of connector. The possible values are: `sapIag`, `sapAc`, `unknownFutureValue`. Required.| |
| 58 | +|description|String|The description of the external origin resource connector. Optional.| |
| 59 | +|displayName|String|The display name of the external origin resource connector. Optional.| |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | +## Response |
| 64 | + |
| 65 | +If successful, this method returns a `201 Created` response code and an [externalOriginResourceConnector](../resources/externaloriginresourceconnector.md) object in the response body. |
| 66 | + |
| 67 | +## Examples |
| 68 | + |
| 69 | +### Request |
| 70 | + |
| 71 | +The following example shows a request. |
| 72 | +<!-- { |
| 73 | + "blockType": "request", |
| 74 | + "name": "create_externaloriginresourceconnector_from_" |
| 75 | +} |
| 76 | +--> |
| 77 | +``` http |
| 78 | +POST https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/externalOriginResourceConnectors |
| 79 | +Content-Type: application/json |
| 80 | +
|
| 81 | +{ |
| 82 | + "@odata.type": "#microsoft.graph.externalOriginResourceConnector", |
| 83 | + "displayName": "SAP Access Control", |
| 84 | + "description": "SAP Access Control connector", |
| 85 | + "connectorType": "sapAc", |
| 86 | + "connectionInfo": { |
| 87 | + "@odata.type": "microsoft.graph.externalTokenBasedSapIagConnectionInfo", |
| 88 | + "url": "dev.test", |
| 89 | + "accessTokenUrl": "9e90019f-6256-41fa-a225-5ef9cc1d9bf8", |
| 90 | + "clientId": "e9ad8b1d-959c-4e86-8ba2-2cbf4d14bc29", |
| 91 | + "keyVaultName": "Keyvault", |
| 92 | + "secretName": "Test", |
| 93 | + "subscriptionId": "5ee98b73-d9df-43a7-8a92-36855054bdee", |
| 94 | + "resourceGroup": "SAPIAG Group" |
| 95 | + } |
| 96 | +} |
| 97 | +``` |
| 98 | + |
| 99 | + |
| 100 | +### Response |
| 101 | + |
| 102 | +The following example shows the response. |
| 103 | +>**Note:** The response object shown here might be shortened for readability. |
| 104 | +<!-- { |
| 105 | + "blockType": "response", |
| 106 | + "truncated": true, |
| 107 | + "@odata.type": "microsoft.graph.externalOriginResourceConnector" |
| 108 | +} |
| 109 | +--> |
| 110 | +``` http |
| 111 | +HTTP/1.1 201 Created |
| 112 | +Content-Type: application/json |
| 113 | +
|
| 114 | +{ |
| 115 | + "@odata.type": "#microsoft.graph.externalOriginResourceConnector", |
| 116 | + "id": "375db7fb-280f-5d24-1abd-c63e0311c131", |
| 117 | + "displayName": "SAP Access Control", |
| 118 | + "description": "SAP Access Control connector", |
| 119 | + "connectorType": "sapAc", |
| 120 | + "connectionInfo": { |
| 121 | + "@odata.type": "microsoft.graph.externalTokenBasedSapIagConnectionInfo", |
| 122 | + "url": "dev.test", |
| 123 | + "accessTokenUrl": "9e90019f-6256-41fa-a225-5ef9cc1d9bf8", |
| 124 | + "clientId": "e9ad8b1d-959c-4e86-8ba2-2cbf4d14bc29", |
| 125 | + "keyVaultName": "Keyvault", |
| 126 | + "secretName": "Test", |
| 127 | + "subscriptionId": "5ee98b73-d9df-43a7-8a92-36855054bdee", |
| 128 | + "resourceGroup": "SAPIAG Group" |
| 129 | + }, |
| 130 | + "createdBy": "admin@contoso.com", |
| 131 | + "createdDateTime": "2026-02-23T10:15:30Z", |
| 132 | + "modifiedBy": "admin@contoso.com", |
| 133 | + "modifiedDateTime": "2026-02-23T10:15:30Z" |
| 134 | +} |
| 135 | +``` |
| 136 | + |
0 commit comments