-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Add ToDo list management commands and update Viva Engage com…
…munity privacy setting
- Loading branch information
Gautam Sheth
committed
Dec 26, 2024
1 parent
733dca0
commit 206fe1b
Showing
12 changed files
with
641 additions
and
2 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,106 @@ | ||
--- | ||
Module Name: PnP.PowerShell | ||
title: Get-PnPTodoList | ||
schema: 2.0.0 | ||
applicable: SharePoint Online | ||
external help file: PnP.PowerShell.dll-Help.xml | ||
online version: https://pnp.github.io/powershell/cmdlets/Get-PnPTodoList.html | ||
--- | ||
|
||
# Get-PnPTodoList | ||
|
||
## SYNOPSIS | ||
|
||
**Required Permissions** | ||
|
||
* Microsoft Graph API : One of Tasks.Read, Tasks.ReadWrite, Tasks.Read.All | ||
|
||
Gets one Todo list or all Todo lists. | ||
|
||
## SYNTAX | ||
|
||
```powershell | ||
Get-PnPTodoList [[-Identity] <String>] [-[User] <AzureADUserPipeBind>] | ||
``` | ||
|
||
## DESCRIPTION | ||
Use the cmdlet to retrieve all Todo lists or a specific Todo list. | ||
|
||
## EXAMPLES | ||
|
||
### EXAMPLE 1 | ||
```powershell | ||
Get-PnPTodoList | ||
``` | ||
|
||
This will return all your (logged-in user) todo lists. | ||
|
||
### EXAMPLE 2 | ||
```powershell | ||
Get-PnPTodoList -Identity "AAMkAGU4MGE1OTRiLTUzMGEtNDRjZi05ZmVmLWFiMTkyYmQxODRjOQAuAAAAAACQV8RStyZCQJ4ydzjIK5HmAQD2LFcxdwYMRqbupn47nEYYAASUnLfyAAA=" | ||
``` | ||
|
||
This will return your (logged-in user) todo list with the specified Id. | ||
|
||
### EXAMPLE 3 | ||
```powershell | ||
Get-PnPTodoList -User john@doe.com | ||
``` | ||
|
||
This will return the todo lists for the user john. | ||
|
||
### EXAMPLE 4 | ||
```powershell | ||
Get-PnPTodoList -User john@doe.com -Identity "AAMkAGU4MGE1OTRiLTUzMGEtNDRjZi05ZmVmLWFiMTkyYmQxODRjOQAuAAAAAACQV8RStyZCQJ4ydzjIK5HmAQD2LFcxdwYMRqbupn47nEYYAASUnLfyAAA=" | ||
``` | ||
|
||
This will return the todo list for the user john with specified Id. | ||
|
||
## PARAMETERS | ||
|
||
### -Identity | ||
Id of the Todo list. | ||
|
||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -User | ||
The UPN, Id or instance of an Azure AD user for which you would like to retrieve the todo list available to this user | ||
```yaml | ||
Type: AzureADUserPipeBind | ||
Parameter Sets: (All) | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -Connection | ||
Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection. | ||
```yaml | ||
Type: PnPConnection | ||
Parameter Sets: (All) | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
## RELATED LINKS | ||
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) | ||
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 |
---|---|---|
@@ -0,0 +1,92 @@ | ||
--- | ||
Module Name: PnP.PowerShell | ||
title: New-PnPTodoList | ||
schema: 2.0.0 | ||
applicable: SharePoint Online | ||
external help file: PnP.PowerShell.dll-Help.xml | ||
online version: https://pnp.github.io/powershell/cmdlets/New-PnPTodoList.html | ||
--- | ||
|
||
# New-PnPTodoList | ||
|
||
## SYNOPSIS | ||
|
||
**Required Permissions** | ||
|
||
* Microsoft Graph API : One of Tasks.ReadWrite, Tasks.ReadWrite.All | ||
|
||
Creates a new todo list. | ||
|
||
## SYNTAX | ||
|
||
```powershell | ||
New-PnPTodoList [[-DisplayName] <String>] [-[User] <AzureADUserPipeBind>] | ||
``` | ||
|
||
## DESCRIPTION | ||
Use the cmdlet to create a Todo list. | ||
|
||
## EXAMPLES | ||
|
||
### EXAMPLE 1 | ||
```powershell | ||
New-PnPTodoList -DisplayName "Travel items" | ||
``` | ||
|
||
This will create a todo list associated with your (logged-in user) account. | ||
|
||
### EXAMPLE 2 | ||
```powershell | ||
New-PnPTodoList -User john@doe.com -DisplayName "Travel Items" | ||
``` | ||
|
||
This will create a todo list associated with John's account. | ||
|
||
## PARAMETERS | ||
|
||
### -DisplayName | ||
Display name of the Todo list. | ||
|
||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -User | ||
The UPN, Id or instance of an Azure AD user for which you would like to create the todo list. | ||
```yaml | ||
Type: AzureADUserPipeBind | ||
Parameter Sets: (All) | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -Connection | ||
Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection. | ||
```yaml | ||
Type: PnPConnection | ||
Parameter Sets: (All) | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
## RELATED LINKS | ||
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) | ||
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 |
---|---|---|
@@ -0,0 +1,92 @@ | ||
--- | ||
Module Name: PnP.PowerShell | ||
title: Remove-PnPTodoList | ||
schema: 2.0.0 | ||
applicable: SharePoint Online | ||
external help file: PnP.PowerShell.dll-Help.xml | ||
online version: https://pnp.github.io/powershell/cmdlets/Remove-PnPTodoList.html | ||
--- | ||
|
||
# Remove-PnPTodoList | ||
|
||
## SYNOPSIS | ||
|
||
**Required Permissions** | ||
|
||
* Microsoft Graph API : Tasks.ReadWrite | ||
|
||
Removes a new todo list. | ||
|
||
## SYNTAX | ||
|
||
```powershell | ||
Remove-PnPTodoList [[-Identity] <String>] [-[User] <AzureADUserPipeBind>] | ||
``` | ||
|
||
## DESCRIPTION | ||
Use the cmdlet to delete a Todo list. | ||
|
||
## EXAMPLES | ||
|
||
### EXAMPLE 1 | ||
```powershell | ||
Remove-PnPTodoList -Identity "AAMkAGU4MGE1OTRiLTUzMGEtNDRjZi05ZmVmLWFiMTkyYmQxODRjOQAuAAAAAACQV8RStyZCQJ4ydzjIK5HmAQD2LFcxdwYMRqbupn47nEYYAASYG0vWAAA=" | ||
``` | ||
|
||
This will delete a todo list with specified Id associated with your (logged-in user) account. | ||
|
||
### EXAMPLE 2 | ||
```powershell | ||
Remove-PnPTodoList -Identity "AAMkAGU4MGE1OTRiLTUzMGEtNDRjZi05ZmVmLWFiMTkyYmQxODRjOQAuAAAAAACQV8RStyZCQJ4ydzjIK5HmAQD2LFcxdwYMRqbupn47nEYYAASYG0vWAAA=" -User john@doe.com | ||
``` | ||
|
||
This will delete a todo list with specified Id associated with John's account. | ||
|
||
## PARAMETERS | ||
|
||
### -Identity | ||
Id of the Todo list. | ||
|
||
```yaml | ||
Type: String | ||
Parameter Sets: (All) | ||
|
||
Required: True | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -User | ||
The UPN, Id or instance of an Azure AD user for which you would like to create the todo list. | ||
```yaml | ||
Type: AzureADUserPipeBind | ||
Parameter Sets: (All) | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -Connection | ||
Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection. | ||
```yaml | ||
Type: PnPConnection | ||
Parameter Sets: (All) | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
## RELATED LINKS | ||
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp) | ||
Oops, something went wrong.