-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extends 'teams user app remove' command with support for name option. Closes #5447 #5460
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7756d11
Add name option
nanddeepn 7f3e723
Update user-app-remove.spec.ts
nanddeepn 695edc7
Merge branch 'main' into issue-5447
nanddeepn b4f49b0
Update user-app-remove.ts
nanddeepn 21c6661
Update user-app-remove.ts
nanddeepn cfc8470
Update user-app-remove.spec.ts
nanddeepn b40457a
Update user-app-remove.spec.ts
nanddeepn 3dd526c
Update user-app-remove.spec.ts
nanddeepn bf7727d
Update user-app-remove.spec.ts
nanddeepn 286ff5d
Update user-app-remove.spec.ts
nanddeepn 369375a
Update user-app-remove.spec.ts
nanddeepn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,11 @@ m365 teams user app remove [options] | |
## Options | ||
|
||
```md definition-list | ||
`--id <id>` | ||
: The unique id of the app instance installed for the user. | ||
`--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. | ||
|
@@ -35,18 +38,24 @@ Do not use the ID from the manifest of the zip app package or the id from the Mi | |
|
||
## Examples | ||
|
||
Uninstall an app for the specified user. | ||
Uninstall an app by id for the specified user. | ||
|
||
```sh | ||
m365 teams user app remove --id YzUyN2E0NzAtYTg4Mi00ODFjLTk4MWMtZWU2ZWZhYmE4NWM3IyM0ZDFlYTA0Ny1mMTk2LTQ1MGQtYjJlOS0wZDI4NTViYTA1YTY= --userId 2609af39-7775-4f94-a3dc-0dd67657e900 | ||
``` | ||
|
||
Uninstall an app for the specified user using its UPN. | ||
Uninstall an app by id for the specified user using its UPN. | ||
|
||
```sh | ||
m365 teams user app remove --id YzUyN2E0NzAtYTg4Mi00ODFjLTk4MWMtZWU2ZWZhYmE4NWM3IyM0ZDFlYTA0Ny1mMTk2LTQ1MGQtYjJlOS0wZDI4NTViYTA1YTY= --userName [email protected] | ||
``` | ||
|
||
Uninstall an app by name for the specified user. | ||
|
||
```sh | ||
m365 teams user app remove --name HelloWorld --userId 2609af39-7775-4f94-a3dc-0dd67657e900 | ||
``` | ||
|
||
## Response | ||
|
||
The command won't return a response on success. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than throwing an error here, we should use
Cli.handleMultipleResultsFound()
which shows a disambiguation prompt or throws error depending on a user's settings. Sorry I missed it earlier.