For every third-party application whose sync config sets access_control.idp_enforced, aligns Logto app-level access control with the organizations the portal admits: the Owner organization, every distributor when the distributor role is admitted, and the resellers and customers whose distributor grants the portal. An application pinned to organization_ids gets exactly those. idp_enforced: false makes sure Logto enforces nothing for the application. The same reconcile runs on its own after organization changes and periodically; call this for the rollout or to check the state. Never enables enforcement over an empty organization list. Owner organization only.
POST
/third-party-applications/reconcile-access
curl \
--request POST 'https://my.nethesis.it/backend/api/third-party-applications/reconcile-access' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"code": 200,
"message": "portal access rules reconciled",
"data": {
"dry_run": true,
"applications": [
{
"application": "helpdesk.nethesis.it",
"application_id": "6mcxf9pv2yjv4hiw7xjri",
"enforced": true,
"organization_ids": [
"string"
],
"enabled": true,
"rules_changed": true,
"enabled_changed": true,
"error": "string"
}
]
}
}
Response examples (401)
{
"code": 401,
"message": "invalid token",
"data": {}
}
Response examples (403)
{
"code": 403,
"message": "insufficient permissions",
"data": {}
}
Response examples (500)
{
"code": 500,
"message": "internal server error",
"data": {}
}