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.
[CmdletHelp("Uses the Microsoft Authentication Library (Preview) to connect to Azure AD and to get an OAuth 2.0 Access Token to consume the Microsoft Graph API",
Remarks="Connects to Azure AD and gets and OAuth 2.0 Access Token to consume the Microsoft Graph API including the declared permission scopes. The available permission scopes are defined at the following URL: https://graph.microsoft.io/en-us/docs/authorization/permission_scopes",
Remarks="Connects to the Microsoft Graph API using application permissions via an app's declared permission scopes. See https://github.com/SharePoint/PnP-PowerShell/tree/master/Samples/Graph.ConnectUsingAppPermissions for a sample on how to get started.",
[Parameter(Mandatory=true,HelpMessage="The array of permission scopes for the Microsoft Graph API.",ParameterSetName="Scope")]
29
+
publicstring[]Scopes;
30
+
31
+
[Parameter(Mandatory=true,HelpMessage="The client id of the app which gives you access to the Microsoft Graph API.",ParameterSetName="AAD")]
32
+
publicstringAppId;
22
33
23
-
[Parameter(Mandatory=true,HelpMessage="The array of permission scopes for the Microsoft Graph API.")]
24
-
publicString[]Scopes;
34
+
[Parameter(Mandatory=true,HelpMessage="The app key of the app which gives you access to the Microsoft Graph API.",ParameterSetName="AAD")]
35
+
publicstringAppSecret;
36
+
37
+
[Parameter(Mandatory=true,HelpMessage="The AAD where the O365 app is registred. Eg.: contoso.com, or contoso.onmicrosoft.com.",ParameterSetName="AAD")]
Copy file name to clipboardExpand all lines: Commands/Lists/AddListItem.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ public class AddListItem : PnPWebCmdlet
57
57
"\n\nMulti value lookup (id of lookup values as array 1): -Values @{\"MultiLookupField\" = \"1\",\"2\"}"+
58
58
"\n\nMulti value lookup (id of lookup values as array 2): -Values @{\"MultiLookupField\" = 1,2}"+
59
59
"\n\nMulti value lookup (id of lookup values as string): -Values @{\"MultiLookupField\" = \"1,2\"}"+
60
-
"\n\nYes/No: -Values @{\"YesNo\" = \"No\"}"+
60
+
"\n\nYes/No: -Values @{\"YesNo\" = $false}"+
61
61
"\n\nPerson/Group (id of user/group in Site User Info List or email of the user, seperate multiple values with a comma): -Values @{\"Person\" = \"[email protected]\",\"21\"}"+
62
62
"\n\nManaged Metadata (single value with path to term): -Values @{\"MetadataField\" = \"CORPORATE|DEPARTMENTS|FINANCE\"}"+
63
63
"\n\nManaged Metadata (single value with id of term): -Values @{\"MetadataField\" = \"fe40a95b-2144-4fa2-b82a-0b3d0299d818\"} with Id of term"+
Remarks="Sets a default value for the MyPeopleField people field on a library to a value of \"Foo Bar\" using the id from the user information list.")]
Remarks="Sets a default value for the MyPeopleField people field on a library to a value of \"Foo Bar\" using the id from the user information list.")]
Remarks="Sets a default value for the MyMultiPeopleField people field on a library to a value of \"User 1\" and \"User 2\" using the id from the user information list.")]
32
44
publicclassSetDefaultColumnValues:PnPWebCmdlet
33
45
{
34
46
[Parameter(Mandatory=true,ValueFromPipeline=true,Position=0,HelpMessage="The ID, Name or Url of the list.")]
@@ -37,7 +49,7 @@ public class SetDefaultColumnValues : PnPWebCmdlet
37
49
[Parameter(Mandatory=true,HelpMessage="The internal name, id or a reference to a field")]
38
50
publicFieldPipeBindField;
39
51
40
-
[Parameter(Mandatory=true,HelpMessage="A list of values. In case of a text field the values will be concatenated, separated by a semi-colon. In case of a taxonomy field multiple values will added")]
52
+
[Parameter(Mandatory=true,HelpMessage="A list of values. In case of a text field the values will be concatenated, separated by a semi-colon. In case of a taxonomy field multiple values will added. In case of people field multiple values will be added.")]
41
53
publicstring[]Value;
42
54
43
55
[Parameter(Mandatory=false,HelpMessage="A library relative folder path, if not specified it will set the default column values on the root folder of the library ('/')")]
Copy file name to clipboardExpand all lines: Commands/Lists/SetListItem.cs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ public class SetListItem : PnPWebCmdlet
54
54
"\n\nMulti value lookup (id of lookup values as array 1): -Values @{\"MultiLookupField\" = \"1\",\"2\"}"+
55
55
"\n\nMulti value lookup (id of lookup values as array 2): -Values @{\"MultiLookupField\" = 1,2}"+
56
56
"\n\nMulti value lookup (id of lookup values as string): -Values @{\"MultiLookupField\" = \"1,2\"}"+
57
-
"\n\nYes/No: -Values @{\"YesNoField\" = \"No\"}"+
57
+
"\n\nYes/No: -Values @{\"YesNoField\" = $false}"+
58
58
"\n\nPerson/Group (id of user/group in Site User Info List or email of the user, seperate multiple values with a comma): -Values @{\"PersonField\" = \"[email protected]\",\"21\"}"+
59
59
"\n\nManaged Metadata (single value with path to term): -Values @{\"MetadataField\" = \"CORPORATE|DEPARTMENTS|FINANCE\"}"+
60
60
"\n\nManaged Metadata (single value with id of term): -Values @{\"MetadataField\" = \"fe40a95b-2144-4fa2-b82a-0b3d0299d818\"} with Id of term"+
0 commit comments