pnp / pnp/cli-microsoft365

CLI for m365 - "Error: No access token found."

Open
#7,380 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.5k
Forks
413
Avg merge
5d 6h
Merged PRs (30d)
21

Description

Successfully installed - npm install -g @pnp/cli-microsoft365@11.7.0
Successfully logged to CLI for m365 using authtype browser and appid + tenantid
Error description: On executing the command "m365 pp environment list --asAdmin --output json"
Getting the error "Error: No access token found."
Opened a Microsoft ticket and they redirected me to open a new issue here. Request your assistance to troubleshoot the error.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing m365 pp environment list --asAdmin --output json after logging in with browser authentication, app ID, and tenant ID. Investigate why this command cannot find an access token; done means the command returns its environment list as JSON without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cli, typescript
Domain
authentication, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.