pnp / pnp/cli-microsoft365

Extend getting started docs with information about setting SharePoint URL

Open
#4,211 14 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

When using CLI for M365 with custom AAD apps, you get to choose which permissions you want to grant. Unfortunately, spo commands depend on SharePoint URL discovery and require the Microsoft Graph Sites.Read.All scope. Without this scope, using the command fails with a vague error: AccessDenied: Either scp or roles claim need to be present in the token. This can be solved either by adding this scope to the AAD app, or manually setting the SharePoint root url using m365 spo set --url https://yourtenant.sharepoint.com after logging in but before calling spo commands. We should add this information to our Getting started docs.

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 in the repository's Getting started documentation and locate the section covering custom AAD apps and SharePoint commands. Document the required Microsoft Graph Sites.Read.All scope and the alternative m365 spo set --url step; the work is done when users can understand both ways to configure the SharePoint URL before using spo commands.

Written by the indexing model from the issue text.

Assessment

Tech stack
cli
Domain
cli, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.