Skip to content

Commit 0b49232

Browse files
authored
Merge pull request #7406 from erwinvanhunen/PNPPS1_4
PnP PS 1.4 release
2 parents 607ff0c + 6fbe132 commit 0b49232

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+3150
-189
lines changed
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
---
2+
Module Name: PnP.PowerShell
3+
schema: 2.0.0
4+
applicable: SharePoint Online
5+
online version: https://pnp.github.io/powershell/cmdlets/Add-PnPAzureADGroupMember.html
6+
external help file: PnP.PowerShell.dll-Help.xml
7+
title: Add-PnPAzureADGroupMember
8+
---
9+
10+
# Add-PnPAzureADGroupMember
11+
12+
## SYNOPSIS
13+
14+
> [!TIP]
15+
> We encourage you to make improvements to this documentation. Please navigate to https://github.com/pnp/powershell/blob/dev/documentation/Add-PnPAzureADGroupMember.md to change this file.
16+
17+
18+
**Required Permissions**
19+
20+
* Microsoft Graph API: All of Group.ReadWrite.All, User.ReadWrite.All
21+
22+
Adds members to a particular Azure Active Directory Group. This can be a security, distribution or Microsoft 365 group.
23+
24+
## SYNTAX
25+
26+
```powershell
27+
Add-PnPAzureADGroupMember -Identity <AzureADGroupPipeBind> -Users <String[]> [-RemoveExisting] [<CommonParameters>]
28+
```
29+
30+
## DESCRIPTION
31+
32+
## EXAMPLES
33+
34+
### EXAMPLE 1
35+
```powershell
36+
Add-PnPAzureADGroupMember -Identity "Project Team" -Users "[email protected]","[email protected]"
37+
```
38+
39+
Adds the provided two users as additional members to the Azure Active Directory Group named "Project Team"
40+
41+
### EXAMPLE 2
42+
```powershell
43+
Add-PnPAzureADGroupMember -Identity "Project Team" -Users "[email protected]","[email protected]" -RemoveExisting
44+
```
45+
46+
Sets the provided two users as the only members of the Azure Active Directory group named "Project Team" by removing any current existing members first
47+
48+
## PARAMETERS
49+
50+
### -Identity
51+
The Identity of the Azure Active Directory group to add members to
52+
53+
```yaml
54+
Type: AzureADGroupPipeBind
55+
Parameter Sets: (All)
56+
57+
Required: True
58+
Position: Named
59+
Default value: None
60+
Accept pipeline input: True (ByValue)
61+
Accept wildcard characters: False
62+
```
63+
64+
### -RemoveExisting
65+
If provided, all existing members will be removed and only those provided through Users will become members
66+
67+
```yaml
68+
Type: SwitchParameter
69+
Parameter Sets: (All)
70+
71+
Required: False
72+
Position: Named
73+
Default value: None
74+
Accept pipeline input: False
75+
Accept wildcard characters: False
76+
```
77+
78+
### -Users
79+
The UPN(s) of the user(s) to add to the Azure Active Directory group as a member
80+
81+
```yaml
82+
Type: String[]
83+
Parameter Sets: (All)
84+
85+
Required: True
86+
Position: Named
87+
Default value: None
88+
Accept pipeline input: False
89+
Accept wildcard characters: False
90+
```
91+
92+
## RELATED LINKS
93+
94+
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)[Documentation](https://docs.microsoft.com/graph/api/group-post-members)
95+
96+
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
Module Name: PnP.PowerShell
3+
schema: 2.0.0
4+
applicable: SharePoint Online
5+
online version: https://pnp.github.io/powershell/cmdlets/Add-PnPAzureADGroupOwner.html
6+
external help file: PnP.PowerShell.dll-Help.xml
7+
title: Add-PnPAzureADGroupOwner
8+
---
9+
10+
# Add-PnPAzureADGroupOwner
11+
12+
## SYNOPSIS
13+
14+
> [!TIP]
15+
> We encourage you to make improvements to this documentation. Please navigate to https://github.com/pnp/powershell/blob/dev/documentation/Add-PnPAzureADGroupOwner.md to change this file.
16+
17+
18+
**Required Permissions**
19+
20+
* Microsoft Graph API: All of Group.ReadWrite.All, User.ReadWrite.All
21+
22+
Adds users to the owners of an Azure Active Directory group. This can be a security, distribution or Microsoft 365 group.
23+
24+
## SYNTAX
25+
26+
```powershell
27+
Add-PnPAzureADGroupOwner -Identity <AzureADGroupPipeBind> -Users <String[]> [-RemoveExisting] [<CommonParameters>]
28+
```
29+
30+
## DESCRIPTION
31+
32+
## EXAMPLES
33+
34+
### EXAMPLE 1
35+
```powershell
36+
Add-PnPAzureADGroupOwner -Identity "Project Team" -Users "[email protected]","[email protected]"
37+
```
38+
39+
Adds the provided two users as additional owners to the Azure Active Directory group named "Project Team"
40+
41+
### EXAMPLE 2
42+
```powershell
43+
Add-PnPAzureADGroupOwner -Identity "Project Team" -Users "[email protected]","[email protected]" -RemoveExisting
44+
```
45+
46+
Sets the provided two users as the only owners of the Azure Active Directory group named "Project Team" by removing any current existing members first
47+
48+
## PARAMETERS
49+
50+
### -Identity
51+
The Identity of the Azure Active Directory group to add owners to
52+
53+
```yaml
54+
Type: AzureADGroupPipeBind
55+
Parameter Sets: (All)
56+
57+
Required: True
58+
Position: Named
59+
Default value: None
60+
Accept pipeline input: True (ByValue)
61+
Accept wildcard characters: False
62+
```
63+
64+
### -RemoveExisting
65+
If provided, all existing members will be removed and only those provided through Users will become members
66+
67+
```yaml
68+
Type: SwitchParameter
69+
Parameter Sets: (All)
70+
71+
Required: False
72+
Position: Named
73+
Default value: None
74+
Accept pipeline input: False
75+
Accept wildcard characters: False
76+
```
77+
78+
### -Users
79+
The UPN(s) of the user(s) to add to the Azure Active Directory group as a member
80+
81+
```yaml
82+
Type: String[]
83+
Parameter Sets: (All)
84+
85+
Required: True
86+
Position: Named
87+
Default value: None
88+
Accept pipeline input: False
89+
Accept wildcard characters: False
90+
```
91+
92+
## RELATED LINKS
93+
94+
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)
95+
[Documentation](https://docs.microsoft.com/graph/api/group-post-members)
96+
97+

sharepoint/sharepoint-ps/sharepoint-pnp/Add-PnPPlannerTask.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@ Adds a new task to a planner bucket
2525

2626
### By Group
2727
```powershell
28-
Add-PnPPlannerTask -Group <PlannerGroupPipeBind> -Plan <PlannerPlanPipeBind> -Bucket <PlannerBucketPipeBind>
29-
-Title <String> [<CommonParameters>]
28+
Add-PnPPlannerTask -Group <PlannerGroupPipeBind> -Plan <PlannerPlanPipeBind> -Bucket <PlannerBucketPipeBind> -Title <String> [-AssignedTo <String[]>]
3029
```
3130

3231
### By Plan Id
3332
```powershell
34-
Add-PnPPlannerTask -Bucket <PlannerBucketPipeBind> -PlanId <String> -Title <String> [<CommonParameters>]
33+
Add-PnPPlannerTask -Bucket <PlannerBucketPipeBind> -PlanId <String> -Title <String> [-AssignedTo <String[]>]
3534
```
3635

3736
## DESCRIPTION
@@ -53,6 +52,13 @@ Add-PnPPlannerTask -PlanId "QvfkTd1mc02gwxHjHC_43JYABhAy" -Bucket "Todos" -Title
5352

5453
This cmdlet adds a new task.
5554

55+
### Example 3
56+
```powershell
57+
Add-PnPPlannerTask -Group "Marketing" -Plan "Conference Plan" -Bucket "Todos" -Title "Design booth layout" -AssignedTo "[email protected]","[email protected]"
58+
```
59+
60+
This cmdlet adds a new task and assigns to [email protected] and [email protected]
61+
5662

5763
## PARAMETERS
5864

@@ -131,6 +137,21 @@ Accept pipeline input: False
131137
Accept wildcard characters: False
132138
```
133139
140+
### -AssignedTo
141+
Specify the email(s) of the user to assign the task to.
142+
143+
```yaml
144+
Type: String[]
145+
Parameter Sets: (All)
146+
Aliases:
147+
148+
Required: True
149+
Position: Named
150+
Default value: None
151+
Accept pipeline input: False
152+
Accept wildcard characters: False
153+
```
154+
134155
### CommonParameters
135156
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
136157
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
---
2+
Module Name: PnP.PowerShell
3+
schema: 2.0.0
4+
applicable: SharePoint Online
5+
online version: https://pnp.github.io/powershell/cmdlets/Add-PnPSiteScriptPackage.html
6+
external help file: PnP.PowerShell.dll-Help.xml
7+
title: Add-PnPSiteScriptPackage
8+
---
9+
10+
# Add-PnPSiteScriptPackage
11+
12+
## SYNOPSIS
13+
14+
> [!TIP]
15+
> We encourage you to make improvements to this documentation. Please navigate to https://github.com/pnp/powershell/blob/dev/documentation/Add-PnPSiteScriptPackage.md to change this file.
16+
17+
18+
**Required Permissions**
19+
20+
* SharePoint: Access to the SharePoint Tenant Administration site
21+
22+
Creates a new Site Script Package on the current tenant. Site script packages can contain files in addition to the site scripts which can be used to upload files to sites om which a site design gets applied.
23+
24+
## SYNTAX
25+
26+
```powershell
27+
Add-PnPSiteScriptPackage -Title <String> [-Description <String>] -ContentPath <String> [-Connection <PnPConnection>] [<CommonParameters>]
28+
```
29+
30+
## DESCRIPTION
31+
32+
## EXAMPLES
33+
34+
### EXAMPLE 1
35+
```powershell
36+
Add-PnPSiteScriptPackage -Title "My Site Script Package" -Description "A more detailed description" -ContentPath "c:\package.zip"
37+
```
38+
39+
Adds a new Site Script Package
40+
41+
## PARAMETERS
42+
43+
### -Connection
44+
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.
45+
46+
```yaml
47+
Type: PnPConnection
48+
Parameter Sets: (All)
49+
50+
Required: False
51+
Position: Named
52+
Default value: None
53+
Accept pipeline input: False
54+
Accept wildcard characters: False
55+
```
56+
57+
### -ConContentPathtent
58+
The full path to the locally stored Site Script Package to upload
59+
60+
```yaml
61+
Type: String
62+
Parameter Sets: (All)
63+
64+
Required: True
65+
Position: Named
66+
Default value: None
67+
Accept pipeline input: False
68+
Accept wildcard characters: False
69+
```
70+
71+
### -Description
72+
The description of the site script package
73+
74+
```yaml
75+
Type: String
76+
Parameter Sets: (All)
77+
78+
Required: False
79+
Position: Named
80+
Default value: None
81+
Accept pipeline input: False
82+
Accept wildcard characters: False
83+
```
84+
85+
### -Title
86+
The title of the site script package
87+
88+
```yaml
89+
Type: String
90+
Parameter Sets: (All)
91+
92+
Required: True
93+
Position: Named
94+
Default value: None
95+
Accept pipeline input: False
96+
Accept wildcard characters: False
97+
```
98+
99+
## RELATED LINKS
100+
101+
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)
102+
103+

0 commit comments

Comments
 (0)