Skip to content

Added minimal permissions for 'spo folder sharinglink' commands. Closes #7275 - #7449

Merged
Adam-it merged 4 commits into
pnp:mainfrom
SmitaNachan:issue-7275
Oct 7, 2026
Merged

Adam-it merged 4 commits into
pnp:mainfrom
SmitaNachan:issue-7275

Conversation

@SmitaNachan

Copy link
Copy Markdown
Contributor

Added minimal permissions for spo folder sharinglink commands. Closes #7275

@milanholemans

Copy link
Copy Markdown
Contributor

Thanks, we'll review it soon!

@Adam-it Adam-it self-assigned this Jul 15, 2026

@Adam-it Adam-it left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SmitaNachan awesome work so far but there are a few things that were missed.
May I kindly ask you to give it an another go before we make this a perfect merge 💪
You Rock 🤩

Comment thread docs/docs/cmd/spo/folder/folder-sharinglink-add.mdx Outdated
Comment thread docs/docs/cmd/spo/folder/folder-sharinglink-add.mdx
Comment thread docs/docs/cmd/spo/folder/folder-sharinglink-clear.mdx Outdated
Comment thread docs/docs/cmd/spo/folder/folder-sharinglink-get.mdx Outdated
Comment thread docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx
Comment thread docs/docs/cmd/spo/folder/folder-sharinglink-remove.mdx
Comment thread docs/docs/cmd/spo/folder/folder-sharinglink-set.mdx
@Adam-it
Adam-it marked this pull request as draft July 19, 2026 20:16
@SmitaNachan
SmitaNachan marked this pull request as ready for review July 20, 2026 15:27

@Adam-it Adam-it left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SmitaNachan Awesome job. From what I checked all of those commands use helper chain commands that do the following

spo.getSiteIdByMSGraph() | GET /v1.0/sites/{host}:{path}?$select=id
drive.getDriveByUrl() | GET /v1.0/sites/{siteId}/drives?$select=webUrl,id
drive.getDriveItemId() | GET /v1.0/drives/{driveId}/root:{path}?$select=id

for this I think we need to mention Sites.Read.All for MS Graph added as well

@Adam-it
Adam-it marked this pull request as draft September 2, 2026 21:47
@SmitaNachan
SmitaNachan marked this pull request as ready for review October 5, 2026 15:27

@Adam-it Adam-it left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🔥

@Adam-it
Adam-it merged commit 2a26798 into pnp:main Oct 7, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Minimal permissions for 'spo folder sharinglink' commands

3 participants