List the teams a resource is shared with
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 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_shares'A resource's sharing switches GET
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](/API/personal-access-tokens) scope: `teams:read`.
List resources shared with this team GET
Requires membership. Each row carries the resource's name, owner and people labels (email when on file, else null) and `caller` β the caller's own live `{access, allowed_actions}` on that resource (null if none). A plain member sees whole-team grants and grants aimed at them; a team_admin, or someone with `share` on the resource, sees every grant. [Personal access token](/API/personal-access-tokens) scope: `teams:read`.