pnp / cli-microsoft365

Manage Microsoft 365 and SharePoint Framework projects on any platform
https://aka.ms/cli-m365
MIT License
919 stars 325 forks source link

New command: Upgrade installed Teams app for a specified user #5705

Closed garrytrinder closed 4 months ago

garrytrinder commented 11 months ago

Usage

m365 teams user app upgrade

Description

Upgrade an app in the personal scope of the specified user

Options

Option Description
--id [id] The unique id of the app instance installed for the user. Specify either id or name.
--name [name] Name of the app instance installed for the user. Specify either id or name.
--userId [userId] The ID of the user to uninstall the app for. Specify userId or userName but not both.
--userName [userName] The UPN of the user to uninstall the app for. Specify userId or userName but not both.

Examples

Upgrade an app by name for the specified user using its UPN.

m365 teams user app upgrade --name HelloWorld --userName admin@contoso.com

Upgrade an app by name for the specified user using its id.

m365 teams user app upgrade --name HelloWorld --userId 2609af39-7775-4f94-a3dc-0dd67657e900

Upgrade an app by id for the specified user using its UPN.

m365 teams user app upgrade --id YzUyN2E0NzAtYTg4Mi00ODFjLTk4MWMtZWU2ZWZhYmE4NWM3IyM0ZDFlYTA0Ny1mMTk2LTQ1MGQtYjJlOS0wZDI4NTViYTA1YTY= --userName admin@contoso.com

Upgrade an app by id for the specified user using its id.

m365 teams user app upgrade --id YzUyN2E0NzAtYTg4Mi00ODFjLTk4MWMtZWU2ZWZhYmE4NWM3IyM0ZDFlYTA0Ny1mMTk2LTQ1MGQtYjJlOS0wZDI4NTViYTA1YTY= --userId 2609af39-7775-4f94-a3dc-0dd67657e900

Default properties

No response

Additional Info

teamsAppInstallation in personal scope: upgrade

Rachit1313 commented 11 months ago

I would like to work on this one? Can you assign me?

milanholemans commented 11 months ago

Certainly, thank you @Rachit1313!

Rachit1313 commented 10 months ago

Hi @milanholemans / @garrytrinder , I am trying to work on this issue but not able to connect my personal microsoft account via m365 login. For the school account I don't have permissions. Is there any way I can connect account so that I can test the commands?

Adam-it commented 10 months ago

hi @Rachit1313, The easiest way to get started is to:

  1. sign up for (free) developer M365 tenant (E5 license) 👉 https://developer.microsoft.com/en-us/microsoft-365/dev-program
  2. after that, you may follow our guide login 👉 https://pnp.github.io/cli-microsoft365/user-guide/connecting-microsoft-365 to your newly created dev tenant.
Rachit1313 commented 10 months ago

hi @Rachit1313,

The easiest way to get started is to:

  1. sign up for (free) developer M365 tenant (E5 license) 👉 https://developer.microsoft.com/en-us/microsoft-365/dev-program

  2. after that, you may follow our guide login 👉 https://pnp.github.io/cli-microsoft365/user-guide/connecting-microsoft-365 to your newly created dev tenant.

Thank you for the confirmation @Adam-it . The logic for the command is ready. I will be creating the test cases and would make a PR within 24 hours after checking the command.

Adam-it commented 10 months ago

Thank you for the confirmation @Adam-it . The logic for the command is ready. I will be creating the test cases and would make a PR within 24 hours after checking the command.

No rush 👍. Thanks for the update

waldekmastykarz commented 9 months ago

Resetting due to lack of response

MathijsVerbeeck commented 7 months ago

Can I work on this?