[feature]: API v2 needs a fine-grained OAuth scope for GET /api/v2/users/me/
メンテナーはふだん 1 日以内に返信
@dheeru0198 がすでに取り組んでいます。
2026年11月18日 から。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- python, typescript
- 領域
- api, authentication
調査の方向性
Start by reading the v2 OAuth scope table and the authentication checks for GET /api/v2/users/me/, then compare them with the v1 profile:read handling. Add a fine-grained scope for the endpoint, or clarify the intended global read requirement in the scope table and migration guide. Done when the scope behavior and documentation consistently match the chosen policy.
索引モデルが issue の本文から書いたものです。
説明
Is there an existing issue for this?
- I have searched the existing issues
Summary
GET /api/v2/users/me/ cannot be called by an OAuth token that holds only fine-grained scopes. The v2 authentication docs say it needs the global read scope, and that "no fine-grained scope covers this endpoint". Please add a fine-grained scope that covers it (for example a v2 profile scope), or document that global read is intended.
Related: #10201 reports that the docs' example response for this endpoint lists only fine-grained scopes, which contradicts the rule above. This request is about the scope model itself rather than the docs example, so a docs fix alone would not resolve it.
Why should this be worked on?
v1 has profile:read, and GET /api/v1/users/me/ works with it. In v2 that scope is not in the scope table, and no other scope covers the endpoint. An OAuth app that only needs to know who the signed-in user is has to request global read (read access to every resource in the workspace) or keep calling the v1 endpoint.
Observed: an OAuth token granted profile:read plus fine-grained project scopes (projects:read, projects.states:read, projects.work_items:read, projects.work_items:write, projects.work_items.links:read, projects.work_items.links:write):
GET /api/v1/users/me/returns 200GET /api/v2/users/me/returns 403HTTP 403 forbidden: You do not have permission to perform this action.- the same token can list and write work items through
/api/v2/workspaces/{slug}/projects/{project}/work-items/
The release notes for 4.1.0 don't mention a change to this endpoint or its scope. Observed on commercial v4.0.1.
The endpoint returns only the caller's own id, display_name, email, principal_kind and scopes, so requiring access to every workspace resource is more than it needs.
There is no other v2 endpoint that tells a caller who they are. The closest are permissions/me/ (grants and role only, no user id) and the workspace and project member lists (every member, with no way to tell which is the caller). Apps that key per-user state on the user id, such as saved ordering or preferences, have no least-privilege way to get it in v2.
Suggested options:
- Add a fine-grained scope (for example
profile:read, or a v2 equivalent) that satisfiesGET /api/v2/users/me/. - Or, if global
readis intended, say so in the scope table and in the migration guide's note on OAuth scopes, and mention thatprofile:readdoes not carry over from v1.
- 主要言語
- TypeScript
- スター
- 63k
- フォーク
- 6.5k
- 平均マージ
- 2日 16時間
- マージ済み PR(30日)
- 70
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
makeplane/plane のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
[bug]: Comment external_id is deduplicated per project instead of per work item対応中かも @MishraTanishq619 が 21 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
makeplane/plane#10195 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Missing optional chaining on actor_details and reaction_items in apps/space reactions and votes対応中かも @ghazy2001 が 29 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
makeplane/plane#10111 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
makeplane/plane#10082 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
makeplane/plane の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
frontend testing
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
vendrabuck/HERD#1588 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue priority: low
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
art-audio
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100