Skip to content

[Bug]: GroupPrincipalBackend ignores IHideFromCollaborationBackend #52958

Closed

Description

@kesselb

Bug description

The IHideFromCollaborationBackend interface is used by the guests app (but can be implemented by any group backend) to hide the guest group from auto-completion dialogs. When sharing a calendar or address book, a report request is sent to perform a principal-property-search. The group principal backend currently does not check if the backend implements IHideFromCollaborationBackend and where the hideGroup method may return true.

Steps to reproduce

  1. Have guests app
  2. shareapi_only_share_with_group_members = no
  3. Visit calendar app
  4. Open settings for a calendar and type "Guests"
  5. See the guests group suggested

Expected behavior

Guests group should be hidden

Nextcloud Server version

master

Activity

  1. added
    0. Needs triage
    on May 19, 2025
  2. added
    1. to develop
    and removed
    0. Needs triage
    on May 19, 2025
  3. moved this from To triage to Confirmed in 🧑‍🤝‍🧑 Community triageon May 19, 2025
  4. added
    feature: caldav
    feature: carddav
    and removed on May 19, 2025
  5. kesselb commented on May 21, 2025

    @kesselb
    ContributorAuthor

    I did some debugging today to understand the impact of hiding the guest group from the group’s principal backend. It seems reasonable and would also align with the initial implementation: #14347 and #27761.

    However, sharing a calendar with the guest group can also be a useful feature. It works well and seems perfectly fine if done intentionally. Therefore, I’m considering adding a feature flag to the guests app to make hideGroup configurable.

    That said, this change would affect every part of the system where we already check for hideGroup, and it would make the group more invisible than it currently is.

    cc @icewind1991 @skjnldsv (as app owners)
    cc @SebastianKrupinski @st3iny (for caldav)

  6. reopened this on Jun 6, 2025
  7. moved this from 📄 To do to 🏗️ In progress in 💌 📅 👥 Groupware teamon Jun 11, 2025
  8. added
    3. to review
    and removed
    1. to develop
    on Jun 11, 2025
  9. moved this from 🏗️ In progress to ☑️ Done in 💌 📅 👥 Groupware teamon Jun 17, 2025
  10. github-actions commented on Nov 28, 2026

    @github-actions
    Contributor

    This issue has been automatically locked because it has been closed for more than 14 days. As we do not monitor closed issues, we are locking this issue to prevent further comments from getting lost in the noise.
    Please open a new issue if you have a similar problem instead. For general discussions, please use our forum: https://help.nextcloud.com

  11. locked as resolved and limited conversation to collaborators on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    29-feedback3. to reviewbugfeature: caldavfeature: carddavfeature: dav

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions