Skip to content

feat: allow exact UID lookup through Nextcloud global search - #219

Open
vitormattos wants to merge 1 commit into
mainfrom
feat/profile-fields-directory-uid-search-20261114
Open

vitormattos wants to merge 1 commit into
mainfrom
feat/profile-fields-directory-uid-search-20261114

Conversation

@vitormattos

Copy link
Copy Markdown
Member

Objective

Allow the connected Nextcloud MCP to inspect Profile Fields through its existing unified search tool. No MCP Connector changes are required.

Changes

  • profile_fields.directory recognizes uid:<nextcloud_uid> for a Nextcloud instance administrator.
  • Each populated active field is returned as a separate paginated search hit, avoiding the current three-match preview limit.
  • Ordinary users and group-only administrators get no results for exact-UID lookups; other directory searches retain their visibility behavior.
  • Correctly stringify boolean false as false, not an empty value.
  • Unit and Nextcloud OCS/Behat regressions, plus README documentation.

Validation

  • PHP 8.4 syntax: pass on four changed PHP files.
  • Isolated runtime smoke test: pass (admin, paging, boolean, non-admin, unknown UID).
  • PHPUnit and Nextcloud Behat: not executed locally (Nextcloud runtime not available in the isolated worktree); CI pending.
  • No production changes or account imports.

Security

  • Explicitly relies on IGroupManager::isAdmin for exact-UID inspection.
  • Hidden fields are disclosed only under Nextcloud instance-administrator permissions.
  • No credentials or secrets imported, no mailbox provisioning, no new external services.

This PR is independent from changes in any upstream MCP Connector repository.

Expose populated administrative profile fields through Nextcloud search using uid:<user>. Return paginated field results and deny private lookups to non-admins.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant