Cli-microsoft365: New command: Install Microsoft Teams app for user

Created on 4 Apr 2020  路  5Comments  路  Source: pnp/cli-microsoft365

Usage

teams user app add [options]

Description

Install an app in the personal scope of the specified user.

Options

| Option | Description |
| ----------------------- | ----------------------------------------- |
| --appId <appId> | The ID of the app to install |
| --userId <userId> | The ID of the user to install the app for |

Additional Information

Install app for user - https://docs.microsoft.com/en-us/graph/api/user-add-teamsappinstallation?view=graph-rest-beta&tabs=http

good first issue new feature work in progress

All 5 comments

To make the command more user-friendly, how about we allow specifying the app by its name and user by their email? Shall we also allow specifying multiple users as a comma-separated value?

Hi guys, can I take this up?

Absolutely, thank you for your help @aakashbhardwaj619 馃憦馃徎

It鈥檚 all yours 馃憤馃徎

For consistency reasons, shall we reconsider the naming of the options? Typically, the short id refers to the last noun in the command. In this case it would refer to app rather than user, so following this convention, we'd use --id, --userId. Still, like in all other Teams commands, all the IDs can get easily mixed up which is often we chose not to use the short id at all but always make it explicit which ID it is, so --appId, --userId.

Thanks for the suggestion @waldekmastykarz 馃檶馃徎 I've updated the spec accordingly 馃憤馃徎

Was this page helpful?
0 / 5 - 0 ratings