A resource's sharing switches
Anyone with access may read them.
Query: resource_type, resource_id. Returns settings as
[{key, value, default}] in display order, plus the caller's
access and allowed_actions.
Personal access token scope: teams:read.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
Success
curl -X GET 'http://localhost:7091/api/resource_settings'Global-admin oversight: every team with member counts, or a picker search GET
With no query args every team is returned. Any of these switches to a bounded search (same row shape): q: Case-insensitive substring of the team name or slug. without_quota: `1` keeps only teams with no team `all`-bucket quota policy. limit: The most rows to return, clamped to 1-100 (default 20). Not available to [personal access tokens](/API/personal-access-tokens); call it from a signed-in session.
List the teams a resource is shared with GET
Needs `share` on it. Powers the share dialog (current shares + unshare), so only someone who may change the sharing can enumerate it: 404 when the resource isn't visible, 403 when the caller's role can't share. [Personal access token](/API/personal-access-tokens) scope: `teams:read`.