Talewright Docs Open the app

In which order are the checks made when a role is changed?

Sign-in (401), the organization (404), a valid role (422), whether you are a plain member (403), whether the person is a member (404), whether owner is involved and you are not one (403), then the last-owner rule (409 SOLE_OWNER). The first that fails decides the answer.