Docs
Live demo
POST/api/v2/connectors/{id}/duplicates/decisions

Some changes in this call need a fresh second factor. A token cannot give a second factor, so such a change gets 403 auth.api_token_not_allowed. Make it in the console.

Decide on duplicate accounts: link means the account belongs to one of the suggested people, create means it is a new person with the login of the account. Every decision is checked first, then the decisions apply at once in the order of the accounts and leave the list. A sync of the connector starts to add their groups (sync_job_id, absent while a sync already runs: that sync or the next one adds them). A decision that can't apply answers 409 with the reason, for example the person no longer has the email or username of the account, another person has its login, another connector of the same installation links the account, or the account already signs in as another person. The decisions before it stay applied (decided). Linking needs every permission the chosen person holds in each of their organizations, as linking an external account through the API does: otherwise 403.

Needs MFA step-up, or a token with allow_security_changes and security:manage.

Parameters

Path1 required of 1
idstringpathrequired

Connector ID (UUID)

Request body application/json · ConnectorDuplicateDecisionsRequest

Required1 of 1 fields
itemsarray of ConnectorDuplicateDecisionrequired
min items 1 · max items 500
3 fields
duplicate_idstring · uuidrequired
decisionstringrequired
linkcreate
identity_idstring · uuid

The person to link the account to, one of the suggested people. Required for link.

Responses

200

OK

ConnectorDuplicateDecisionsResponse · 2 fields
decidedintegerrequired
sync_job_idstring · uuid

The sync that applies the decisions. Absent when a sync already runs.

400

Bad Request - a person outside the suggested people, a link without identity_id, the same account or the same person twice in one request, or more than 500 decisions

409

Conflict - a decision was refused with the reason in detail, the connector is syncing now, or the connector is paused (connector.paused). Decided counts the decisions before the refused one, which stay applied

Common errors: 401 403 404 413 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close