You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
10
10
## [3.23.2007.0]
11
11
12
12
### Added
13
-
- Added `-WithRightsAssignedDetailed` parameter to `Get-PnPUser` allowing for fine grained (broken) permissions on item, list and site level to be shown [PR #2754](https://github.com/pnp/PnP-PowerShell/pull/2754)
13
+
- Added `-WithRightsAssignedDetailed` parameter to `Get-PnPUser`when used against SharePoint Online allowing for fine grained (broken) permissions on item, list and site level to be shown [PR #2754](https://github.com/pnp/PnP-PowerShell/pull/2754)
14
14
- Added a `-RowLimit` parameter to `Clear-PnPRecycleBinItem` and `Restore-PnPRecycleBinItem` so that it can be used on recycle bins which hold more than 5000 items [PR #2760](https://github.com/pnp/PnP-PowerShell/pull/2760)
15
15
- Added connection option to `Connect-PnPOnline` taking `-Scopes` and `-Credentials` to allow setting up a delegated permission token for use with Microsoft Graph and the Office 365 Management API. See [this wiki page](https://github.com/pnp/PnP-PowerShell/wiki/Connect-options#connect-using-scopes-and-credentials) for more details. [PR #2746](https://github.com/pnp/PnP-PowerShell/pull/2746)
16
16
- Added support for enabling and disabling fields using `Set-PnPField -Identity FieldName -Values @{AllowDeletion=$false}`[PR #2766](https://github.com/pnp/PnP-PowerShell/pull/2766)
17
17
- Added the following cmdlets to add/remove/clear owners and members of Microsoft 365 Groups: `Add-PnPMicrosoft365GroupMember`, `Add-PnPMicrosoft365GroupOwner`, `Remove-PnPMicrosoft365GroupMember`, `Remove-PnPMicrosoft365GroupOwner`, `Clear-PnPMicrosoft365GroupMember`, `Clear-PnPMicrosoft365GroupOwner`[PR #2750](https://github.com/pnp/PnP-PowerShell/pull/2750)
- Added `-HideFromAddressLists` and `-HideFromOutlookClients` to `Set-PnPUnifiedGroup` to allow for setting the visibility of Microsoft 365 Groups [PR #2717](https://github.com/pnp/PnP-PowerShell/pull/2717)
20
21
21
22
### Changed
22
23
- Updated implementation of `Move-PnPFile` to now also support moving of files and folders accross site collections [PR #2749](https://github.com/pnp/PnP-PowerShell/pull/2749)
[CmdletHelp("Copies a file or folder to a different location. This location can be within the same document library, same site, same site collection or even to another site collection on the same tenant. Currently there is a 200MB file size limit for the file or folder to be copied.",
16
16
Category=CmdletHelpCategory.Files)]
17
+
#if !ONPREMISES
17
18
[CmdletExample(
18
19
Remarks="Copies a file named company.docx located in a document library called Shared Documents in the site collection project to the Shared Documents library in the site collection otherproject. If a file named company.docx already exists, it won't perform the copy.",
Remarks="Copies a folder named Archive located in a document library called Shared Documents in the site collection project to the Shared Documents library in the site collection otherproject. If a folder named Archive already exists, it will overwrite it.",
@@ -75,7 +77,9 @@ public class CopyFile : PnPWebCmdlet
75
77
publicstringSourceUrl=string.Empty;
76
78
77
79
[Parameter(Mandatory=true,Position=1,HelpMessage="Server relative Url where to copy the file or folder to. Must not include the file name.")]
80
+
#if !ONPREMISES
78
81
[Alias(nameof(MoveFile.TargetServerRelativeLibrary))]// Aliases is present to allow for switching between Move-PnPFile and Copy-PnPFile keeping the same parameters.
82
+
#endif
79
83
publicstringTargetUrl=string.Empty;
80
84
81
85
[Parameter(Mandatory=false,HelpMessage="If provided, if a file already exists at the TargetUrl, it will be overwritten. If omitted, the copy operation will be canceled if the file already exists at the TargetUrl location.")]
Remarks="Returns only those users from the User Information List of the current site collection who currently have any kind of access rights given either directly to the user or Active Directory Group or given to the user or Active Directory Group via membership of a SharePoint Group to subsite 'subsite1'",
Remarks="Returns all users who have been granted explicit access to the current site, lists and listitems",
47
48
SortOrder=7)]
49
+
#endif
48
50
publicclassGetUser:PnPWebCmdlet
49
51
{
50
52
privateconststringPARAMETERSET_IDENTITY="Identity based request";
51
53
privateconststringPARAMETERSET_WITHRIGHTSASSIGNED="With rights assigned";
54
+
#if !ONPREMISES
52
55
privateconststringPARAMETERSET_WITHRIGHTSASSIGNEDDETAILED="With rights assigned detailed";
56
+
#endif
53
57
54
58
[Parameter(Mandatory=false,ValueFromPipeline=true,ParameterSetName=PARAMETERSET_IDENTITY,HelpMessage="User ID or login name")]
55
59
publicUserPipeBindIdentity;
56
60
57
61
[Parameter(Mandatory=false,ParameterSetName=PARAMETERSET_WITHRIGHTSASSIGNED,HelpMessage="If provided, only users that currently have any kinds of access rights assigned to the current site collection will be returned. Otherwise all users, even those who previously had rights assigned, but not anymore at the moment, will be returned as the information is pulled from the User Information List. Only works if you don't provide an -Identity.")]
58
62
publicSwitchParameterWithRightsAssigned;
59
63
64
+
#if !ONPREMISES
60
65
[Parameter(Mandatory=false,ParameterSetName=PARAMETERSET_WITHRIGHTSASSIGNEDDETAILED,HelpMessage="If provided, only users that currently have any specific kind of access rights assigned to the current site, lists or listitems/documents will be returned. Otherwise all users, even those who previously had rights assigned, but not anymore at the moment, will be returned as the information is pulled from the User Information List. Only works if you don't provide an -Identity.")]
61
66
publicSwitchParameterWithRightsAssignedDetailed;
67
+
#endif
62
68
63
69
/// <summary>
64
70
/// Output type used with parameter WithRightsAssignedDetailed
SelectedWeb.Context.Load(SelectedWeb.Lists, l =>l.Include(li =>li.ItemCount, li =>li.IsSystemList, li=>li.IsCatalog, li =>li.RootFolder.ServerRelativeUrl, li =>li.RoleAssignments, li =>li.Title, li =>li.HasUniqueRoleAssignments));
0 commit comments