Rediger

Del via


Update externalOriginResourceConnector

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Update the properties of an externalOriginResourceConnector object.

Permissions

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. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) EntitlementManagement.ReadWrite.All Not available.
Delegated (personal Microsoft account) Not supported. Not supported.
Application EntitlementManagement.ReadWrite.All Not available.

Tip

In delegated scenarios with work or school accounts, the signed-in user must also be assigned an administrator role with supported role permissions through the following option:

  • A Microsoft Entra role where the least privileged role is Identity Governance Administrator. This is the least privileged option.

In app-only scenarios, the calling app can be assigned one of the preceding supported roles instead of the EntitlementManagement.ReadWrite.All application permission. The Identity Governance Administrator role is less privileged than the EntitlementManagement.ReadWrite.All application permission.

For more information, see Delegation and roles in entitlement management and how to delegate access governance to access package managers in entitlement management.

HTTP request

PATCH /identityGovernance/entitlementManagement/externalOriginResourceConnectors/{externalOriginResourceConnectorId}

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

In the request body, supply only the values for properties to update. Existing properties that aren't included in the request body maintain their previous values or are recalculated based on changes to other property values.

The following table specifies the properties that can be updated.

Property Type Description
displayName String The display name of the connector. Optional.
description String A description of the connector. Optional.
connectorType connectorType The type of connector. Connector types can be either SAP Cloud Identity Access Governance(sapIag) or SAP Augmented Access Control (sapAc). The possible values are: sapIag, sapAc, unknownFutureValue. Optional.
connectionInfo connectionInfo The connection information used to communicate with the external resource system. Optional.

Response

If successful, this method returns a 200 OK response code and an updated externalOriginResourceConnector object in the response body.

Examples

Request

The following example shows a request.

PATCH https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/externalOriginResourceConnectors/e363ebb8-6faa-4980-ac5b-eefc196e1cd4
Content-Type: application/json

{
  "id": "d743fe46-80f8-41b1-a2ee-7796e024edb9",
  "connectorType": "sapIag",
  "displayName": "SAP IAG 5.0",
  "description": "SAP IAG 5.0.0.0.0",
  "connectionInfo": {
    "@odata.type": "Microsoft.IGAELM.EC.FrontEnd.ExternalModel.externalTokenBasedSapIagConnectionInfo",
    "url": "https://IAGINTGORG-iag-intg-space-java-rest-arqapi.cfps.sap.hana.ondemand.com",
    "keyVaultName": "sap-key-vault",
    "subscriptionId": "caa5v042-9c76-44de-9e84-f3e3071a7b4e",
    "resourceGroup": "test-rg",
    "accessTokenUrl": "https://entra-intg-l4nds6yn.authentication.sap.hana.ondemand.com/oauth/token",
    "clientId": "sb-8d896b-72b5-46ce-9273-471874a09137!b133623|iagapi-iag-intg-space!b11378",
    "secretName": "clienecret"
  }
}

Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#identityGovernance/entitlementManagement/externalOriginResourceConnector/$entity",
  "@odata.type": "#microsoft.graph.externalOriginResourceConnector",
  "id": "e363ebb8-6faa-4980-ac5b-eefc196e1cd",
  "displayName": "SAP Identity Access Governance Connector Test",
  "description": "SAP Identity Access Governance Connector test",
  "connectorType": "sapIag",
  "connectionInfo": {
    "@odata.type": "microsoft.graph.externalTokenBasedSapIagConnectionInfo",
              "url": "dev.test",
              "accessTokenUrl": "9e90019f-6256-41fa-a225-5ef9cc1d9bf8",
              "clientId": "e9ad8b1d-959c-4e86-8ba2-2cbf4d14bc29",
              "keyVaultName": "Keyvault",
              "secretName": "Test",
              "subscriptionId": "5ee98b73-d9df-43a7-8a92-36855054bdee",
              "resourceGroup": "SAPIAG Group"
  },
  "createdBy": "kayat@contoso.com",
  "createdDateTime": "2025-10-29T09:50:23Z",
  "modifiedBy": "kayat@contoso.com",
  "modifiedDateTime": "2025-12-04T01:10:28Z"
}