Skip to content

Open Team Membership not respected when saving ownership rules #107815

@Kobby-Bawuah

Description

@Kobby-Bawuah

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. Organization has Open Team Membership enabled
  2. Project has ownership rules referencing multiple teams
  3. User with org-level Member role (who is only a member of some of the referenced teams) attempts to save ownership rules
  4. No changes to the rules are necessary to trigger the error -- simply saving the existing content fails

Expected Result

Per our membership docs(https://docs.sentry.io/organization/membership/): "Once you've joined a project you'll also be able to edit ownership rules for that project."

Since Open Team Membership is enabled, the team membership validation should be bypassed (as it already is for alerts, monitors, and detectors after PR #107333). Users who are project members should be able to save ownership rules.

Actual Result

Users receive a 400 error: "You do not have permission to assign ownership to one or more teams."

The validation added in PR #107064 checks whether the user is a member of every team referenced in the ownership file.

Since ownership rules are saved as a single block, a user who only belongs to some of the referenced teams cannot save the file at all -- even without making any changes.

This affects some users where Members are blocked from editing ownership rules for the some projects, which references ~10+ teams. One of these users is even a Team Admin on their teams but is still blocked because the validation only checks org-level scopes.

This is a regression from behavior prior to Jan 27, 2026.

Product Area

Issues

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Support

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions