| Changelog | ๐ Identity Binding & Deprecated API Cleanup
โ ๏ธ Breaking
- Minimum Nextcloud version is now 32:
OCP\Config\IUserConfig is only available from Nextcloud 32 onwards, so the user preference migration below raises min-version from 30 to 32. Nextcloud 30 and 31 are no longer supported
Added
- Admin-side identity binding (
occ itop:bind): administrators can link Nextcloud accounts to their iTop person without those users touching iTop. This is the only route available to portal-only users, because iTop issues personal tokens to back-end users only. Matching is controlled by an admin-configured source attribute (Nextcloud email, user ID or display name) and target (Person.email, Person.employee_number or User.login), and results are graded: exact (attribute and name agree) is bindable, review (names differ) needs explicit confirmation, ambiguous (several candidates) is never guessed, none is reported. The command is dry-run by default and requires --apply to write; accounts can be excluded from matching entirely. A failing account is reported and skipped rather than aborting the batch, and the command warns when --limit leaves accounts unexamined. A person already linked to another Nextcloud account is graded conflict and never bound automatically, on any path โ person_id is the authorisation boundary for ticket and CI access, so two accounts holding one person would mean each seeing the other's tickets
- Identity binding settings and API: the matching rule (which Nextcloud attribute is matched against which iTop attribute) is now configurable from Admin settings โ iTop instead of only through
occ config:app:set, and shows a warning when a risky attribute is selected, before the rule is saved. Adds admin endpoints for listing accounts with their binding state, managing exclusions, and unbinding, which the association table builds on
- User associations screen: Admin settings โ iTop now lists every Nextcloud account with its iTop binding state and avatar, filterable by all / unbound / bound / excluded and searchable by name, user ID or email. Accounts can be excluded from matching (individually or in bulk) and links can be removed. Bindings made before this app recorded provenance show their origin as "unknown" rather than blank. Computing matches is not part of this screen
- Scope picker on the user associations screen: one field searches Nextcloud accounts, groups and Teams, and narrows the table to the accounts the chosen scope covers. Teams require the
circles app; with it disabled the picker simply omits them. Typing without choosing a suggestion still filters by name, user ID or email
- Match suggestions on the user associations screen: Suggest matches grades the selected accounts โ or the current page โ as exact, review, ambiguous or conflict, and Apply exact only binds the confident ones. Review rows show the Nextcloud and iTop names side by side for a one-click confirmation, ambiguous rows open a picker, and conflict rows name the account already holding that person and offer no action. An already-bound account is never re-bound by apply and gets no Apply or Confirm action โ moving someone to a different account stays an explicit unlink-then-apply. Matching runs only when asked, because each account costs one iTop request. Any unbound, non-excluded account can also be linked to a person manually โ via the same picker, pre-filled with candidates on an ambiguous row and otherwise opened empty to search โ without a match being found first, for the accounts the matcher has nothing to go on
- Self-service discovery (
POST /binding/discover): a third binding route lets a user link their own account from personal settings, with no administrator and no iTop personal token involved. It is off by default โ unlike administrator binding, which is backed by the administrator's own application token, and personal-token binding, where iTop itself resolves the token to its own contact, discovery lets the user's own attribute decide which identity they receive, so it starts opt-in and an administrator enables it from Admin settings โ iTop
- What discovery will and will not do: it binds only on an exact match โ where the matched attribute and the name agree. Review (names differ), ambiguous (several candidates) and conflict (person already linked to another account) each get their own explanation and point the user to an administrator; none of these ever names the matched person, so a result that cannot be linked automatically gives no clue who it almost matched. It never re-binds an already-linked account โ an administrator must unlink first. The discovery and confirmation endpoints take no parameters and are rate-limited to 5 calls per minute per user, and a successful bind is recorded in the audit log with the account, the person, the method (
discovery) and the matched attribute. Personal settings shows only the binding methods an administrator has enabled, and offers discovery as the alternative for portal-only users who cannot obtain a personal token, pointing them to an administrator only when discovery is also disabled
- An independent toggle for the existing personal-token route: on by default, to preserve current behaviour; the personal-token endpoint returns 403 when it is switched off
- Admin-configured request-access links: two optional ServiceSubcategory ids โ one for "I have a problem" (Incident), one for "I need assistance" (User Request) โ let an administrator point users at the right iTop request form. The link appears only where a user cannot link their own account, pointing them to a way of asking for access instead of an administrator, and the user is offered exactly one of the two, chosen by what went wrong: being unable to link because of policy โ self-service is switched off, personal tokens are not issued to this profile, the account is excluded from matching โ is a service request, while trying to link and having it break โ discovery could not match the account, a token was rejected, iTop could not be reached โ is an incident. The two normally carry different SLAs, which is the reason for configuring two ids. Either, both or neither may be set; where the id a situation calls for is not set, no link and no hint are shown at all rather than the other one being offered, since that would file the wrong kind of ticket. Setting both ids to the same value stays supported for instances where one form covers both cases. Both ids are ignored, and no link is shown, until the instance URL is configured, since there is no base URL to build the link on
- Person detail line on the user associations screen: a bound row now reads
#16 Boris Vian over boris.vian@it.com ยท admin, beside an icon in the same slot the Nextcloud avatar occupies in the Account column โ so the two columns describe the same person in the same shape, instead of leaving an administrator to look a bare id up in iTop. The icon says whether that person is a service desk agent or a portal user; where neither can be established it stays empty rather than guessing, and the hover adds the iTop User id as #2 when one is known. Resolved for the whole page in batched queries rather than one per row, so the table costs no more iTop requests than it already did. A person iTop can no longer find is called out as a broken link; an unreachable iTop leaves the line blank instead, because that is transient and not something to go and repair
Changed
- Admin settings reorganised: the sections an administrator uses day to day come first and connection setup moved to the bottom, since it is configured once. Before the connection is configured the page shows only that form. Identity binding and user associations are now a single "User associations" section listing the accounts with the matching rule beneath it, and chips under the page header jump to any section, with a back-to-top chip on each
- Migrated off deprecated
IConfig value APIs: IConfig::get/set/deleteAppValue has been deprecated since Nextcloud 29 in favour of IAppConfig, and the matching user preference methods since Nextcloud 33 in favour of IUserConfig. All ~200 call sites now use IAppConfig::getValueString/setValueString/deleteKey and IUserConfig::getValueString/setValueString/deleteUserConfig. IConfig is still used for getSystemValue, which is not deprecated
- String accessors used deliberately: the typed
getValueInt/getValueBool variants are intentionally not used. Existing values are stored as VALUE_MIXED, which reads safely under any getter, but the first typed write pins a config key's type permanently โ a single missed call site would then raise AppConfigTypeConflictException at runtime. The string accessors preserve the previous behaviour exactly and leave typed accessors as a safe per-key follow-up
- Controller routing flags moved to PHP attributes:
@NoAdminRequired, @NoCSRFRequired and @PublicPage have been deprecated as PHPDoc annotations since Nextcloud 30 in favour of the OCP\AppFramework\Http\Attribute\* attributes. All 16 across the three remaining controllers were converted. Nextcloud logged one deprecation line per matched method per request, so an endpoint such as the CI class icon โ fetched once per class on every settings page load โ filled the log on instances running at a low log level. No endpoint's access level changed
- Notifier registration moved to the bootstrap context:
IManager::registerNotifierService() has been deprecated since Nextcloud 22; the notifier is now registered via IRegistrationContext, which also removes a service container lookup from the Application constructor
- Replaced legacy
OC globals in the settings bundles: OC.generateUrl โ generateUrl (@nextcloud/router), OC.requestToken โ getRequestToken() (@nextcloud/auth), OC.Notification.showTemporary โ showSuccess/showError (@nextcloud/dialogs), and the window.t fallback โ translate (@nextcloud/l10n). The request token is now read when each request's headers are built rather than cached at module load, so a rotated token is picked up
<hr />
- The personal settings page no longer names iTop: every string a user sees there now uses the display name an administrator configured, so an instance rebranded to something else never shows the underlying product name to people who have never heard it. The default is still
iTop, so an instance that has not been rebranded is unchanged. Two paragraphs aimed at administrators โ how to install the portal personal tokens extension, and which iTop configuration key allows token creation โ have been removed from that page entirely; they are not instructions the person reading their own settings can act on
- Personal settings only shows what a linked account can act on: Search Settings, Notification Settings and Configuration Item Classes appear once the account is linked to a person, since none of them affect anything until it is. The Save button and the "Available features" list are likewise shown only where there is something to save or some way to link. Linking by personal token refreshes the page so the newly available settings appear straight away
Security
- Cross-site scripting through iTop-supplied text: a person's name, email and organisation were written into the personal settings page as markup rather than text, and a ticket's caller name was built into a link in the reference widget the same way. Anyone able to edit those fields in iTop โ an agent, not necessarily an administrator โ could run script in the session of any Nextcloud user whose settings page loaded that person, or of everyone in a Talk room where such a ticket link was shared. Both now render as text, and a link whose URL is not
http/https is dropped rather than followed. Present in earlier releases; upgrading is the fix
- The personal-token endpoint is now rate limited to 5 calls per minute per user, with brute-force protection armed on a failed validation. It accepts a token supplied by the caller and makes up to two outbound iTop requests per call, so without a ceiling any signed-in account could use Nextcloud to guess iTop tokens and to generate load against the iTop instance
Fixed
- Portal users with an additional profile were treated as back-end users: iTop confines a user to the front-end portal as soon as the
Portal user profile is assigned โ the back office stays locked even when a back-end profile such as Service Desk Agent is also present. ProfileService::isPortalOnly() only reported portal-only when Portal user was the sole profile, so these users were misclassified. The consequences were that ticket links pointed at /pages/UI.php (the back office they cannot open) in widgets, rich previews and notifications; the agent dashboard widget and agent notifications were offered to them; and, because all queries run under the application token, searchCIs() and getCIPreview() skipped the contact-based scoping that portal users are meant to get and could return Configuration Items beyond the user's entitlement. Detection now keys on the profile being present at all. Portal power user is unaffected and still means a back-end user with portal access (typically Service Desk Agent + Portal power user), since the comparison is exact rather than a substring match
- Cached portal status is recomputed on upgrade: a post-migration repair step clears
is_portal_only and profiles_last_check for all users, so the corrected rule takes effect immediately instead of after the profile cache TTL lapses
- Personal settings respects simple ticketing mode: in simple mode the ticket count endpoint no longer queries the
Incident class (which does not exist there) or shows an Incidents: 0 row that could never be anything else; it shows a single ticket count instead
Known issue
occ user:setting <uid> integration_itop <key> <value> now fails with "conflict between new type (mixed) and old type (string)" for keys the app has already written. IUserConfig::setValueString() pins a key's type, while occ user:setting writes an untyped value; setValueMixed() is not public API, so this affects any app using IUserConfig on Nextcloud 32+. App behaviour is unaffected โ only manual administration. Workaround: occ user:setting <uid> integration_itop <key> --delete first, then set the value
<hr /> |