pnp / pnp/powershell

[FEATURE] - Add-PnPApp/Publish-PnPApp - add parameters to add/remove to 'all sites' and/or 'all teams'

Open
#2,921 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
904
Forks
407
Avg merge
9h 16m
Merged PRs (30d)
10

Description

Is your feature request related to a problem? Please describe.
At the moment it seems not possible to enable/disable Apps in the Tenant App Catalog for usage in All Sites or All Teams, by means of a PnP cmdlet

Describe the solution you'd like
I would like the options in the screenshot below to have corresponding cmdlet options (especially when adding/publishing apps to a catalog)

For instance:

  • add the parameters AddToAllSites and AddToAllTeams to the Add-PnPApp and Publish-PnPApp cmdlets
  • These parameters should support setting :$false and :$true, so we can enable and disable these options just like in the UI (both on Adding the App AND on Republishing an existing App)

Describe alternatives you've considered
I could do this manually, but this would require documenting what has been done. I prefer the script based approach and Documentation-as-Code.

Additional context
add the parameters AddToAllSites and AddToAllTeams to the Add-PnPApp and Publish-PnPApp cmdlets

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 at the Add-PnPApp and Publish-PnPApp cmdlet implementations and inspect how existing app-catalog options are passed through. Determine how boolean AddToAllSites and AddToAllTeams values must behave for adding and republishing, then verify both enabling and disabling paths with the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
cli, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.