Skip to content

Missing admin reports scopes in picker #765

@snacsnoc

Description

@snacsnoc

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:

  1. Run:
gws auth login
  1. Inspect the interactive scope picker.
  2. There is no visible Admin Reports audit/usage option.
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions