Missing admin reports scopes in picker
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 88/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- rust
- Domain
- authentication, cli
Research direction
Start in auth_commands.rs and inspect the static SCOPE_ENTRIES list used by gws auth login. Compare its entries with the scopes required by the built-in admin-reports service, then run the interactive picker and the provided admin-reports activities list command to verify both scopes are selectable and usable.
Written by the indexing model from the issue text.
Description
Environment:
- CLI Version: 0.22.5 installed via homebrew
- OS: macOS
- Auth method: OAuth desktop app
Description:
The interactive scope picker shown by gws auth login does not include the scopes required for the admin-reports service.
The missing scopes are:
https://www.googleapis.com/auth/admin.reports.audit.readonly
https://www.googleapis.com/auth/admin.reports.usage.readonly
These are missing from the static SCOPE_ENTRIES list in auth_commands.rs.
Steps to reproduce:
- Run:
gws auth login
- Inspect the interactive scope picker.
- There is no visible Admin Reports audit/usage option.
- Run:
gws admin-reports activities list \
--params '{"userKey":"all","applicationName":"login","maxResults":1}'
Observed:
The scope needed by admin-reports activities list cannot be selected from the interactive picker.
Expected:
The interactive picker should include the scopes needed by the built-in admin-reports service.
Suggested fix:
Add these scopes to SCOPE_ENTRIES:
https://www.googleapis.com/auth/admin.reports.audit.readonly
https://www.googleapis.com/auth/admin.reports.usage.readonly
- Dominant language
- Rust
- Stars
- 31.1k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from googleworkspace/cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
googleworkspace/cli#921 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
googleworkspace/cli#920 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
googleworkspace/cli#914 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
googleworkspace/cli#882 · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
googleworkspace/cli#858 ·
All issues in googleworkspace/cli
Similar issues
-
bug github_actions
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
registrystack/registry-stack#1393 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
longbridge/gpui-kit#3223 ·
-
bug engine
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
rocky-data/rocky#2181 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
oasisprotocol/oasis-sdk#2523 ·
-
[indexer] [QA] Add a focused test for the new NonRetryableError / assertSocketAlive() behavior. Openbot:ai-assisted component:indexer QA-roadmap status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
midnightntwrk/midnight-indexer#1557 ·