From e9961628c93b20d50b0510909553c916087e4556 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:10:57 +0000 Subject: [PATCH 001/388] Examples update on D:\a\_work\1\s\tools\..\src\Files\Files\examples\v1.0-beta/Restore-MgDriveListItemVersion.md-beta --- .../Restore-MgDriveListItemVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Files/Files/examples/v1.0-beta/Restore-MgDriveListItemVersion.md b/src/Files/Files/examples/v1.0-beta/Restore-MgDriveListItemVersion.md index 093355d11d5..ea2b1d02022 100644 --- a/src/Files/Files/examples/v1.0-beta/Restore-MgDriveListItemVersion.md +++ b/src/Files/Files/examples/v1.0-beta/Restore-MgDriveListItemVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -ListItemVersionId $listItemVersionId +``` +This example shows how to use the Restore-MgDriveListItemVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 3cfc93e77e1cc051f855cef82831c2031e5ac85f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:10:57 +0000 Subject: [PATCH 002/388] Examples update on D:\a\_work\1\s\tools\..\src\Files\Files\examples\v1.0-beta/Restore-MgShareListItemVersion.md-beta --- .../Restore-MgShareListItemVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Files/Files/examples/v1.0-beta/Restore-MgShareListItemVersion.md b/src/Files/Files/examples/v1.0-beta/Restore-MgShareListItemVersion.md index 093355d11d5..d3e1e042285 100644 --- a/src/Files/Files/examples/v1.0-beta/Restore-MgShareListItemVersion.md +++ b/src/Files/Files/examples/v1.0-beta/Restore-MgShareListItemVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -ListItemVersionId $listItemVersionId +``` +This example shows how to use the Restore-MgShareListItemVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From d69e31d62e86eed3aac3eef19c2b0d5bf3a879e5 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:34 +0000 Subject: [PATCH 003/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Add-MgGroupDriveListContentTypeCopy.md-beta --- .../Add-MgGroupDriveListContentTypeCopy.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupDriveListContentTypeCopy.md b/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupDriveListContentTypeCopy.md index 093355d11d5..20ef36cf54b 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupDriveListContentTypeCopy.md +++ b/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupDriveListContentTypeCopy.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" +} +Add-MgSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgGroupDriveListContentTypeCopy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From cfa60099e11b29e59d2a72e45d0c4bf3049bf6e9 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:34 +0000 Subject: [PATCH 004/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Add-MgGroupDriveListContentTypeCopyFromContentTypeHub.md-beta --- ...veListContentTypeCopyFromContentTypeHub.md | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupDriveListContentTypeCopyFromContentTypeHub.md b/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupDriveListContentTypeCopyFromContentTypeHub.md index 093355d11d5..d8e9f3405d8 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupDriveListContentTypeCopyFromContentTypeHub.md +++ b/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupDriveListContentTypeCopyFromContentTypeHub.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Synchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgGroupDriveListContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Asynchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgGroupDriveListContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 13e892de788f9ead3a6c688d016b18fbbb291f1a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:35 +0000 Subject: [PATCH 005/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Add-MgGroupSiteContentTypeCopy.md-beta --- .../Add-MgGroupSiteContentTypeCopy.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupSiteContentTypeCopy.md b/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupSiteContentTypeCopy.md index 093355d11d5..786bb789ba6 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupSiteContentTypeCopy.md +++ b/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupSiteContentTypeCopy.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" +} +Add-MgSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgGroupSiteContentTypeCopy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From f444eceb1963c4517b58e050eb117cdacc7c0a6d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:36 +0000 Subject: [PATCH 006/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Add-MgGroupSiteContentTypeCopyFromContentTypeHub.md-beta --- ...upSiteContentTypeCopyFromContentTypeHub.md | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupSiteContentTypeCopyFromContentTypeHub.md b/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupSiteContentTypeCopyFromContentTypeHub.md index 093355d11d5..df305c5cb98 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupSiteContentTypeCopyFromContentTypeHub.md +++ b/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupSiteContentTypeCopyFromContentTypeHub.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Synchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgGroupSiteContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Asynchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgGroupSiteContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From d3a60fe3537134b6f8087c2f1f32473abb614fac Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:36 +0000 Subject: [PATCH 007/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Add-MgGroupSiteListContentTypeCopy.md-beta --- .../Add-MgGroupSiteListContentTypeCopy.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupSiteListContentTypeCopy.md b/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupSiteListContentTypeCopy.md index 093355d11d5..fb73eacda86 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupSiteListContentTypeCopy.md +++ b/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupSiteListContentTypeCopy.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" +} +Add-MgSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgGroupSiteListContentTypeCopy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 12d4914896f6577629d4b9c72afa5a1266907fba Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:37 +0000 Subject: [PATCH 008/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Add-MgGroupSiteListContentTypeCopyFromContentTypeHub.md-beta --- ...teListContentTypeCopyFromContentTypeHub.md | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupSiteListContentTypeCopyFromContentTypeHub.md b/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupSiteListContentTypeCopyFromContentTypeHub.md index 093355d11d5..1723e67ff68 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupSiteListContentTypeCopyFromContentTypeHub.md +++ b/src/Groups/Groups/examples/v1.0-beta/Add-MgGroupSiteListContentTypeCopyFromContentTypeHub.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Synchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgGroupSiteListContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Asynchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgGroupSiteListContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 0d55c383d240ceda16c1c474b033e879066651f3 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:37 +0000 Subject: [PATCH 009/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Confirm-MgGroupMemberGroup.md-beta --- .../v1.0-beta/Confirm-MgGroupMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Confirm-MgGroupMemberGroup.md b/src/Groups/Groups/examples/v1.0-beta/Confirm-MgGroupMemberGroup.md index 093355d11d5..abb97f1cdf6 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Confirm-MgGroupMemberGroup.md +++ b/src/Groups/Groups/examples/v1.0-beta/Confirm-MgGroupMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgGroupMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgGroupMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 743a1acfda9db3eaa1c9c9e59b4db503ae6c0ffd Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:38 +0000 Subject: [PATCH 010/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Confirm-MgGroupPermissionGrantMemberGroup.md-beta --- ...nfirm-MgGroupPermissionGrantMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Confirm-MgGroupPermissionGrantMemberGroup.md b/src/Groups/Groups/examples/v1.0-beta/Confirm-MgGroupPermissionGrantMemberGroup.md index 093355d11d5..ad70b2f1159 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Confirm-MgGroupPermissionGrantMemberGroup.md +++ b/src/Groups/Groups/examples/v1.0-beta/Confirm-MgGroupPermissionGrantMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgGroupPermissionGrantMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgGroupPermissionGrantMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From fc808b80bcecc713a3e8de6a00c37c5fd3d48627 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:39 +0000 Subject: [PATCH 011/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Copy-MgGroupDriveListContentTypeToDefaultContentLocation.md-beta --- ...ListContentTypeToDefaultContentLocation.md | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupDriveListContentTypeToDefaultContentLocation.md b/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupDriveListContentTypeToDefaultContentLocation.md index 093355d11d5..8d619750093 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupDriveListContentTypeToDefaultContentLocation.md +++ b/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupDriveListContentTypeToDefaultContentLocation.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SourceFile = @{ + SharepointIds = @{ + ListId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" + ListItemId = "2" + } + } + DestinationFileName = "newname.txt" +} +Copy-MgSiteContentTypeToDefaultContentLocation -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +``` +This example shows how to use the Copy-MgGroupDriveListContentTypeToDefaultContentLocation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From c29f99381e4ffb7be9f81223cbe39194478b2ab3 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:39 +0000 Subject: [PATCH 012/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Copy-MgGroupOnenoteNotebook.md-beta --- .../v1.0-beta/Copy-MgGroupOnenoteNotebook.md | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupOnenoteNotebook.md b/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupOnenoteNotebook.md index 093355d11d5..823360dbfc2 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupOnenoteNotebook.md +++ b/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupOnenoteNotebook.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + GroupId = "groupId-value" + RenameAs = "renameAs-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenoteNotebook -UserId $userId -NotebookId $notebookId -BodyParameter $params +``` +This example shows how to use the Copy-MgGroupOnenoteNotebook Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 853343e187935995590feb1f295a14180f2cce0e Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:40 +0000 Subject: [PATCH 013/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Copy-MgGroupOnenotePageToSection.md-beta --- .../Copy-MgGroupOnenotePageToSection.md | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupOnenotePageToSection.md b/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupOnenotePageToSection.md index 093355d11d5..5b71558b3a2 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupOnenotePageToSection.md +++ b/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupOnenotePageToSection.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Id = "id-value" + GroupId = "groupId-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenotePageToSection -UserId $userId -OnenotePageId $onenotePageId -BodyParameter $params +``` +This example shows how to use the Copy-MgGroupOnenotePageToSection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 79bf50ce85329fd37fccc59d6059117821362e16 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:40 +0000 Subject: [PATCH 014/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Copy-MgGroupOnenoteSectionToNotebook.md-beta --- .../Copy-MgGroupOnenoteSectionToNotebook.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupOnenoteSectionToNotebook.md b/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupOnenoteSectionToNotebook.md index 093355d11d5..3768165ad57 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupOnenoteSectionToNotebook.md +++ b/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupOnenoteSectionToNotebook.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Id = "id-value" + GroupId = "groupId-value" + RenameAs = "renameAs-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenoteSectionToNotebook -UserId $userId -OnenoteSectionId $onenoteSectionId -BodyParameter $params +``` +This example shows how to use the Copy-MgGroupOnenoteSectionToNotebook Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 767793e7a1942ff515cbd3342e013ee480f27bf7 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:41 +0000 Subject: [PATCH 015/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Copy-MgGroupOnenoteSectionToSectionGroup.md-beta --- ...opy-MgGroupOnenoteSectionToSectionGroup.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupOnenoteSectionToSectionGroup.md b/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupOnenoteSectionToSectionGroup.md index 093355d11d5..28e4680d161 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupOnenoteSectionToSectionGroup.md +++ b/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupOnenoteSectionToSectionGroup.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Id = "id-value" + GroupId = "groupId-value" + RenameAs = "renameAs-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenoteSectionToSectionGroup -UserId $userId -OnenoteSectionId $onenoteSectionId -BodyParameter $params +``` +This example shows how to use the Copy-MgGroupOnenoteSectionToSectionGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From f2040b1b73daf1596958b8a3edb8972e42781ce2 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:41 +0000 Subject: [PATCH 016/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Copy-MgGroupSiteContentTypeToDefaultContentLocation.md-beta --- ...SiteContentTypeToDefaultContentLocation.md | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupSiteContentTypeToDefaultContentLocation.md b/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupSiteContentTypeToDefaultContentLocation.md index 093355d11d5..c909beda839 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupSiteContentTypeToDefaultContentLocation.md +++ b/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupSiteContentTypeToDefaultContentLocation.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SourceFile = @{ + SharepointIds = @{ + ListId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" + ListItemId = "2" + } + } + DestinationFileName = "newname.txt" +} +Copy-MgSiteContentTypeToDefaultContentLocation -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +``` +This example shows how to use the Copy-MgGroupSiteContentTypeToDefaultContentLocation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From f814a6adfe5a0f980ce2625c5fb648dd8034707e Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:42 +0000 Subject: [PATCH 017/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Copy-MgGroupSiteListContentTypeToDefaultContentLocation.md-beta --- ...ListContentTypeToDefaultContentLocation.md | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupSiteListContentTypeToDefaultContentLocation.md b/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupSiteListContentTypeToDefaultContentLocation.md index 093355d11d5..06e5517fe09 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupSiteListContentTypeToDefaultContentLocation.md +++ b/src/Groups/Groups/examples/v1.0-beta/Copy-MgGroupSiteListContentTypeToDefaultContentLocation.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SourceFile = @{ + SharepointIds = @{ + ListId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" + ListItemId = "2" + } + } + DestinationFileName = "newname.txt" +} +Copy-MgSiteContentTypeToDefaultContentLocation -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +``` +This example shows how to use the Copy-MgGroupSiteListContentTypeToDefaultContentLocation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 22d8ac3fd991b697f59b39dbaf5d952e0c71a0e8 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:43 +0000 Subject: [PATCH 018/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Get-MgGroupById.md-beta --- .../examples/v1.0-beta/Get-MgGroupById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupById.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupById.md index 093355d11d5..93632a147f1 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupById.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgGroupById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 33af5ef257b8ecaed3245133dfb69528a11ea362 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:43 +0000 Subject: [PATCH 019/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Get-MgGroupCalendarSchedule.md-beta --- .../v1.0-beta/Get-MgGroupCalendarSchedule.md | 38 +++++++++++-------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupCalendarSchedule.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupCalendarSchedule.md index 093355d11d5..a116df3befa 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupCalendarSchedule.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupCalendarSchedule.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Schedules = @( + "adelev@contoso.onmicrosoft.com" + "meganb@contoso.onmicrosoft.com" + ) + StartTime = @{ + DateTime = "2019-03-15T09:00:00" + TimeZone = "Pacific Standard Time" + } + EndTime = @{ + DateTime = "2019-03-15T18:00:00" + TimeZone = "Pacific Standard Time" + } + AvailabilityViewInterval = 60 +} +# A UPN can also be used as -UserId. +Get-MgUserDefaultCalendarSchedule -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupCalendarSchedule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 66396f26f44c57be6c887c09f24d8c1e7d9b89ad Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:47 +0000 Subject: [PATCH 020/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Get-MgGroupMemberGroup.md-beta --- .../v1.0-beta/Get-MgGroupMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupMemberGroup.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupMemberGroup.md index 093355d11d5..5b701bf01d4 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupMemberGroup.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 0736f93f34a04079d49f1274cb524846ed02b885 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:47 +0000 Subject: [PATCH 021/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Get-MgGroupMemberObject.md-beta --- .../v1.0-beta/Get-MgGroupMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupMemberObject.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupMemberObject.md index 093355d11d5..3f17a303441 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupMemberObject.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From a86bcc8d4ab0e7656d0965a3050d39b2d1bdbe81 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:48 +0000 Subject: [PATCH 022/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Get-MgGroupOnenoteNotebookFromWebUrl.md-beta --- .../Get-MgGroupOnenoteNotebookFromWebUrl.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupOnenoteNotebookFromWebUrl.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupOnenoteNotebookFromWebUrl.md index 093355d11d5..986aea89529 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupOnenoteNotebookFromWebUrl.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupOnenoteNotebookFromWebUrl.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + WebUrl = "webUrl value" +} +# A UPN can also be used as -UserId. +Get-MgUserOnenoteNotebookFromWebUrl -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupOnenoteNotebookFromWebUrl Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 7dbe60b99daf23852141f67dfc2079eb6028b6b4 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:49 +0000 Subject: [PATCH 023/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Get-MgGroupPermissionGrantMemberGroup.md-beta --- .../Get-MgGroupPermissionGrantMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupPermissionGrantMemberGroup.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupPermissionGrantMemberGroup.md index 093355d11d5..36c41ab2509 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupPermissionGrantMemberGroup.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupPermissionGrantMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupPermissionGrantMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupPermissionGrantMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 1b810f8b1d2afd1971b4bab7dfdcdddc3b2d101f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:49 +0000 Subject: [PATCH 024/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Get-MgGroupPermissionGrantMemberObject.md-beta --- .../Get-MgGroupPermissionGrantMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupPermissionGrantMemberObject.md b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupPermissionGrantMemberObject.md index 093355d11d5..fbda4de79dd 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupPermissionGrantMemberObject.md +++ b/src/Groups/Groups/examples/v1.0-beta/Get-MgGroupPermissionGrantMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupPermissionGrantMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 56245da722d68800b58482457e8c858de02a71d2 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:53 +0000 Subject: [PATCH 025/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Grant-MgGroupDriveItemPermission.md-beta --- .../Grant-MgGroupDriveItemPermission.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Grant-MgGroupDriveItemPermission.md b/src/Groups/Groups/examples/v1.0-beta/Grant-MgGroupDriveItemPermission.md index 093355d11d5..4bc44b3421f 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Grant-MgGroupDriveItemPermission.md +++ b/src/Groups/Groups/examples/v1.0-beta/Grant-MgGroupDriveItemPermission.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Recipients = @( + @{ + Email = "john@contoso.com" + } + @{ + Email = "ryan@external.com" + } + ) + Roles = @( + "read" + ) +} +Grant-MgSharePermission -SharedDriveItemId $sharedDriveItemId -BodyParameter $params +``` +This example shows how to use the Grant-MgGroupDriveItemPermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From b7b0cb900097d61a895d245251745588769971df Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:53 +0000 Subject: [PATCH 026/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Grant-MgGroupDriveRootPermission.md-beta --- .../Grant-MgGroupDriveRootPermission.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Grant-MgGroupDriveRootPermission.md b/src/Groups/Groups/examples/v1.0-beta/Grant-MgGroupDriveRootPermission.md index 093355d11d5..37dcac81bff 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Grant-MgGroupDriveRootPermission.md +++ b/src/Groups/Groups/examples/v1.0-beta/Grant-MgGroupDriveRootPermission.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Recipients = @( + @{ + Email = "john@contoso.com" + } + @{ + Email = "ryan@external.com" + } + ) + Roles = @( + "read" + ) +} +Grant-MgSharePermission -SharedDriveItemId $sharedDriveItemId -BodyParameter $params +``` +This example shows how to use the Grant-MgGroupDriveRootPermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 18bcd0a7985b354050e8fe0f78a4824ed6c35fcd Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:54 +0000 Subject: [PATCH 027/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Grant-MgGroupSitePermission.md-beta --- .../v1.0-beta/Grant-MgGroupSitePermission.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Grant-MgGroupSitePermission.md b/src/Groups/Groups/examples/v1.0-beta/Grant-MgGroupSitePermission.md index 093355d11d5..7b5b1efe4c4 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Grant-MgGroupSitePermission.md +++ b/src/Groups/Groups/examples/v1.0-beta/Grant-MgGroupSitePermission.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Recipients = @( + @{ + Email = "john@contoso.com" + } + @{ + Email = "ryan@external.com" + } + ) + Roles = @( + "read" + ) +} +Grant-MgSharePermission -SharedDriveItemId $sharedDriveItemId -BodyParameter $params +``` +This example shows how to use the Grant-MgGroupSitePermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 2ece884fb9eb4ce4dc7f996b17b734c2dedf0858 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:54 +0000 Subject: [PATCH 028/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgAcceptGroupCalendarEvent.md-beta --- .../Invoke-MgAcceptGroupCalendarEvent.md | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgAcceptGroupCalendarEvent.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgAcceptGroupCalendarEvent.md index 093355d11d5..b0503c64933 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgAcceptGroupCalendarEvent.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgAcceptGroupCalendarEvent.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" + SendResponse = $true +} +# A UPN can also be used as -UserId. +Invoke-MgAcceptUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgAcceptGroupCalendarEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 4631e2585aa5355f0ecd30eec1f0caa28f590d62 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:55 +0000 Subject: [PATCH 029/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgAcceptGroupCalendarEventTentatively.md-beta --- ...e-MgAcceptGroupCalendarEventTentatively.md | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgAcceptGroupCalendarEventTentatively.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgAcceptGroupCalendarEventTentatively.md index 093355d11d5..262158d64b1 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgAcceptGroupCalendarEventTentatively.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgAcceptGroupCalendarEventTentatively.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "I may not be able to make this week. How about next week?" + SendResponse = $true + ProposedNewTime = @{ + Start = @{ + DateTime = "2019-12-02T18:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-12-02T19:00:00" + TimeZone = "Pacific Standard Time" + } + } +} +# A UPN can also be used as -UserId. +Invoke-MgAcceptUserEventTentatively -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgAcceptGroupCalendarEventTentatively Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 43d1fcb625f024629655f0e57333b528529bd877 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:55 +0000 Subject: [PATCH 030/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgAcceptGroupEvent.md-beta --- .../v1.0-beta/Invoke-MgAcceptGroupEvent.md | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgAcceptGroupEvent.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgAcceptGroupEvent.md index 093355d11d5..7da0b0a71ff 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgAcceptGroupEvent.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgAcceptGroupEvent.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" + SendResponse = $true +} +# A UPN can also be used as -UserId. +Invoke-MgAcceptUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgAcceptGroupEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 57c7f61ae6dc0a719830651304cc04998fc855ef Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:56 +0000 Subject: [PATCH 031/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgAcceptGroupEventTentatively.md-beta --- .../Invoke-MgAcceptGroupEventTentatively.md | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgAcceptGroupEventTentatively.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgAcceptGroupEventTentatively.md index 093355d11d5..f4fb3296bd8 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgAcceptGroupEventTentatively.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgAcceptGroupEventTentatively.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "I may not be able to make this week. How about next week?" + SendResponse = $true + ProposedNewTime = @{ + Start = @{ + DateTime = "2019-12-02T18:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-12-02T19:00:00" + TimeZone = "Pacific Standard Time" + } + } +} +# A UPN can also be used as -UserId. +Invoke-MgAcceptUserEventTentatively -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgAcceptGroupEventTentatively Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From dad2649bf4e607e4228492b07216720dcdb6e489 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:56 +0000 Subject: [PATCH 032/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgCheckinGroupDriveItem.md-beta --- .../Invoke-MgCheckinGroupDriveItem.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgCheckinGroupDriveItem.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgCheckinGroupDriveItem.md index 093355d11d5..210876c140b 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgCheckinGroupDriveItem.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgCheckinGroupDriveItem.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "Updating the latest guidelines" +} +Invoke-MgCheckinDriveItem -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params +``` +This example shows how to use the Invoke-MgCheckinGroupDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From b1134f77ef5adaca8b56ce5e6524a889048c587d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:57 +0000 Subject: [PATCH 033/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgCheckinGroupDriveRoot.md-beta --- .../Invoke-MgCheckinGroupDriveRoot.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgCheckinGroupDriveRoot.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgCheckinGroupDriveRoot.md index 093355d11d5..bea20b741e9 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgCheckinGroupDriveRoot.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgCheckinGroupDriveRoot.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "Updating the latest guidelines" +} +Invoke-MgCheckinDriveItem -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params +``` +This example shows how to use the Invoke-MgCheckinGroupDriveRoot Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From c02cc86384f161cd918b2cb3f6f4efc5d5c85204 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:57 +0000 Subject: [PATCH 034/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgCheckoutGroupDriveItem.md-beta --- .../Invoke-MgCheckoutGroupDriveItem.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgCheckoutGroupDriveItem.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgCheckoutGroupDriveItem.md index 093355d11d5..7967ddad643 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgCheckoutGroupDriveItem.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgCheckoutGroupDriveItem.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Files +Invoke-MgCheckoutDriveItem -DriveId $driveId -DriveItemId $driveItemId +``` +This example shows how to use the Invoke-MgCheckoutGroupDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 8d508d85db38079647e78752be9c068d3e25cd58 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:57 +0000 Subject: [PATCH 035/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgCheckoutGroupDriveRoot.md-beta --- .../Invoke-MgCheckoutGroupDriveRoot.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgCheckoutGroupDriveRoot.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgCheckoutGroupDriveRoot.md index 093355d11d5..43b97013b82 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgCheckoutGroupDriveRoot.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgCheckoutGroupDriveRoot.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Files +Invoke-MgCheckoutDriveItem -DriveId $driveId -DriveItemId $driveItemId +``` +This example shows how to use the Invoke-MgCheckoutGroupDriveRoot Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 9cf386e274b7503265c3164e30fd16b992641f63 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:58 +0000 Subject: [PATCH 036/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgDeclineGroupCalendarEvent.md-beta --- .../Invoke-MgDeclineGroupCalendarEvent.md | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgDeclineGroupCalendarEvent.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgDeclineGroupCalendarEvent.md index 093355d11d5..1e7c66d8439 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgDeclineGroupCalendarEvent.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgDeclineGroupCalendarEvent.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "I won't be able to make this week. How about next week?" + SendResponse = $true + ProposedNewTime = @{ + Start = @{ + DateTime = "2019-12-02T18:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-12-02T19:00:00" + TimeZone = "Pacific Standard Time" + } + } +} +# A UPN can also be used as -UserId. +Invoke-MgDeclineUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgDeclineGroupCalendarEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From fb2fb9a398131b0a67acb429eeabb0b4e2d42af2 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:58 +0000 Subject: [PATCH 037/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgDeclineGroupEvent.md-beta --- .../v1.0-beta/Invoke-MgDeclineGroupEvent.md | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgDeclineGroupEvent.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgDeclineGroupEvent.md index 093355d11d5..3104012aa9e 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgDeclineGroupEvent.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgDeclineGroupEvent.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "I won't be able to make this week. How about next week?" + SendResponse = $true + ProposedNewTime = @{ + Start = @{ + DateTime = "2019-12-02T18:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-12-02T19:00:00" + TimeZone = "Pacific Standard Time" + } + } +} +# A UPN can also be used as -UserId. +Invoke-MgDeclineUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgDeclineGroupEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 21f695b56d2b9f7fa541eb5e488c8de452eadb94 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:59 +0000 Subject: [PATCH 038/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgDismissGroupCalendarEventReminder.md-beta --- ...oke-MgDismissGroupCalendarEventReminder.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgDismissGroupCalendarEventReminder.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgDismissGroupCalendarEventReminder.md index 093355d11d5..ca9cc6eff1b 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgDismissGroupCalendarEventReminder.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgDismissGroupCalendarEventReminder.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Invoke-MgDismissUserEventReminder -UserId $userId -EventId $eventId +``` +This example shows how to use the Invoke-MgDismissGroupCalendarEventReminder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From fd7518db8d424e8984bc65c5ff5a38d22b40fa5b Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:11:59 +0000 Subject: [PATCH 039/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgDismissGroupEventReminder.md-beta --- .../Invoke-MgDismissGroupEventReminder.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgDismissGroupEventReminder.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgDismissGroupEventReminder.md index 093355d11d5..6baea04a224 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgDismissGroupEventReminder.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgDismissGroupEventReminder.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Invoke-MgDismissUserEventReminder -UserId $userId -EventId $eventId +``` +This example shows how to use the Invoke-MgDismissGroupEventReminder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From b6b28955c7336d624779dd5e6c623f2c8f4830d7 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:12:00 +0000 Subject: [PATCH 040/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgForwardGroupCalendarEvent.md-beta --- .../Invoke-MgForwardGroupCalendarEvent.md | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupCalendarEvent.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupCalendarEvent.md index 093355d11d5..5fe8fc1f2d6 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupCalendarEvent.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupCalendarEvent.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "danas@contoso.onmicrosoft.com" + Name = "Dana Swope" + } + } + ) + Comment = "Dana, hope you can make this meeting." +} +# A UPN can also be used as -UserId. +Invoke-MgForwardUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgForwardGroupCalendarEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 5cad9b7248f3a1bb296f1f57aceb9b0e0be0b43a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:12:01 +0000 Subject: [PATCH 041/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgForwardGroupConversationThreadPost.md-beta --- ...ke-MgForwardGroupConversationThreadPost.md | 33 ++++++++++--------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupConversationThreadPost.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupConversationThreadPost.md index 093355d11d5..2e27648056d 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupConversationThreadPost.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupConversationThreadPost.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Groups -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" + ToRecipients = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) +} +Invoke-MgForwardGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -BodyParameter $params +``` +This example shows how to use the Invoke-MgForwardGroupConversationThreadPost Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 36182d3cc94421099745e5d53e38dfb1afa403ed Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:12:01 +0000 Subject: [PATCH 042/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgForwardGroupConversationThreadPostInReplyTo.md-beta --- ...ardGroupConversationThreadPostInReplyTo.md | 33 ++++++++++--------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupConversationThreadPostInReplyTo.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupConversationThreadPostInReplyTo.md index 093355d11d5..d8d0528f100 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupConversationThreadPostInReplyTo.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupConversationThreadPostInReplyTo.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Groups -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" + ToRecipients = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) +} +Invoke-MgForwardGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -BodyParameter $params +``` +This example shows how to use the Invoke-MgForwardGroupConversationThreadPostInReplyTo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From d35dd28f871eb099f1ac6784c8a8df590d9322c7 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:12:02 +0000 Subject: [PATCH 043/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgForwardGroupEvent.md-beta --- .../v1.0-beta/Invoke-MgForwardGroupEvent.md | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupEvent.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupEvent.md index 093355d11d5..558cf55176a 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupEvent.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupEvent.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "danas@contoso.onmicrosoft.com" + Name = "Dana Swope" + } + } + ) + Comment = "Dana, hope you can make this meeting." +} +# A UPN can also be used as -UserId. +Invoke-MgForwardUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgForwardGroupEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 9161ff236d3b42e902607e87e7e7b3a3bd76336a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:12:02 +0000 Subject: [PATCH 044/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgForwardGroupThreadPostInReplyTo.md-beta --- ...nvoke-MgForwardGroupThreadPostInReplyTo.md | 33 ++++++++++--------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupThreadPostInReplyTo.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupThreadPostInReplyTo.md index 093355d11d5..949da4f90df 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupThreadPostInReplyTo.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgForwardGroupThreadPostInReplyTo.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Groups -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" + ToRecipients = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) +} +Invoke-MgForwardGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -BodyParameter $params +``` +This example shows how to use the Invoke-MgForwardGroupThreadPostInReplyTo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From a6908efefac26560a22a463ac8f1defac74e5dfa Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:12:05 +0000 Subject: [PATCH 045/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgReplyGroupConversationThread.md-beta --- .../Invoke-MgReplyGroupConversationThread.md | 87 ++++++++++++++++--- 1 file changed, 75 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupConversationThread.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupConversationThread.md index 093355d11d5..cf82bf5ba7c 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupConversationThread.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupConversationThread.md @@ -1,18 +1,81 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Include a file attachment -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Groups -{{ Add description here }} +$params = @{ + Post = @{ + Body = @{ + ContentType = "text" + Content = "Which quarter does that file cover? See my attachment." + } + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + Name = "Another file as attachment" + ContentBytes = "VGhpcyBpcyBhIGZpbGUgdG8gYmUgYXR0YWNoZWQu" + } + ) + } +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Invoke-MgReplyGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyGroupConversationThread Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Include an item attachment -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Groups -{{ Add description here }} +$params = @{ + Post = @{ + Body = @{ + ContentType = "text" + Content = "I attached an event." + } + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.itemAttachment" + Name = "Holiday event" + Item = @{ + "@odata.type" = "microsoft.graph.event" + Subject = "Discuss gifts for children" + } + } + ) + } +} +Invoke-MgReplyGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyGroupConversationThread Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Include a reference attachment + +```powershell Import-Module Microsoft.Graph.Groups + +$params = @{ + Post = @{ + Body = @{ + ContentType = "text" + Content = "I attached a reference to a file on OneDrive." + } + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.referenceAttachment" + Name = "Personal pictures" + SourceUrl = "https://contoso.com/personal/mario_contoso_net/Documents/Pics" + ProviderType = "oneDriveConsumer" + Permission = "Edit" + IsFolder = "True" + } + ) + } +} + +Invoke-MgReplyGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyGroupConversationThread Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From fe0195da629d26ab32db0d8529cafc0c79d8af2a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:12:05 +0000 Subject: [PATCH 046/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgReplyGroupConversationThreadPost.md-beta --- ...voke-MgReplyGroupConversationThreadPost.md | 74 +++++++++++++++---- 1 file changed, 59 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupConversationThreadPost.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupConversationThreadPost.md index 093355d11d5..9d43fe66a89 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupConversationThreadPost.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupConversationThreadPost.md @@ -1,18 +1,62 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Groups -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Post = @{ + Body = @{ + ContentType = "" + Content = "content-value" + } + ReceivedDateTime = [System.DateTime]::Parse("datetime-value") + HasAttachments = $true + From = @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + Sender = @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ConversationThreadId = "conversationThreadId-value" + NewParticipants = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) + ConversationId = "conversationId-value" + CreatedDateTime = [System.DateTime]::Parse("datetime-value") + LastModifiedDateTime = [System.DateTime]::Parse("datetime-value") + ChangeKey = "changeKey-value" + Categories = @( + "categories-value" + ) + Id = "id-value" + InReplyTo = @{ + } + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + LastModifiedDateTime = [System.DateTime]::Parse("datetime-value") + Name = "name-value" + ContentType = "contentType-value" + Size = 99 + IsInline = $true + Id = "id-value" + } + ) + } +} +Invoke-MgReplyGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyGroupConversationThreadPost Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 3ffab469d0848c3c5517920213630eec584d53dd Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:12:06 +0000 Subject: [PATCH 047/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgReplyGroupConversationThreadPostInReplyTo.md-beta --- ...plyGroupConversationThreadPostInReplyTo.md | 74 +++++++++++++++---- 1 file changed, 59 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupConversationThreadPostInReplyTo.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupConversationThreadPostInReplyTo.md index 093355d11d5..4b229e75ed6 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupConversationThreadPostInReplyTo.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupConversationThreadPostInReplyTo.md @@ -1,18 +1,62 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Groups -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Post = @{ + Body = @{ + ContentType = "" + Content = "content-value" + } + ReceivedDateTime = [System.DateTime]::Parse("datetime-value") + HasAttachments = $true + From = @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + Sender = @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ConversationThreadId = "conversationThreadId-value" + NewParticipants = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) + ConversationId = "conversationId-value" + CreatedDateTime = [System.DateTime]::Parse("datetime-value") + LastModifiedDateTime = [System.DateTime]::Parse("datetime-value") + ChangeKey = "changeKey-value" + Categories = @( + "categories-value" + ) + Id = "id-value" + InReplyTo = @{ + } + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + LastModifiedDateTime = [System.DateTime]::Parse("datetime-value") + Name = "name-value" + ContentType = "contentType-value" + Size = 99 + IsInline = $true + Id = "id-value" + } + ) + } +} +Invoke-MgReplyGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyGroupConversationThreadPostInReplyTo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 5f014799b837fecf8f165ce97d5d181709fe8ba8 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:12:07 +0000 Subject: [PATCH 048/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgReplyGroupThreadPostInReplyTo.md-beta --- .../Invoke-MgReplyGroupThreadPostInReplyTo.md | 74 +++++++++++++++---- 1 file changed, 59 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupThreadPostInReplyTo.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupThreadPostInReplyTo.md index 093355d11d5..24bd9f8fdef 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupThreadPostInReplyTo.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgReplyGroupThreadPostInReplyTo.md @@ -1,18 +1,62 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Groups -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Post = @{ + Body = @{ + ContentType = "" + Content = "content-value" + } + ReceivedDateTime = [System.DateTime]::Parse("datetime-value") + HasAttachments = $true + From = @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + Sender = @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ConversationThreadId = "conversationThreadId-value" + NewParticipants = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) + ConversationId = "conversationId-value" + CreatedDateTime = [System.DateTime]::Parse("datetime-value") + LastModifiedDateTime = [System.DateTime]::Parse("datetime-value") + ChangeKey = "changeKey-value" + Categories = @( + "categories-value" + ) + Id = "id-value" + InReplyTo = @{ + } + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + LastModifiedDateTime = [System.DateTime]::Parse("datetime-value") + Name = "name-value" + ContentType = "contentType-value" + Size = 99 + IsInline = $true + Id = "id-value" + } + ) + } +} +Invoke-MgReplyGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyGroupThreadPostInReplyTo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 0e65bfe4b24720482edb2e55c80a9e35831f9d7d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:12:07 +0000 Subject: [PATCH 049/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgSnoozeGroupCalendarEventReminder.md-beta --- ...voke-MgSnoozeGroupCalendarEventReminder.md | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgSnoozeGroupCalendarEventReminder.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgSnoozeGroupCalendarEventReminder.md index 093355d11d5..c9aa5016e01 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgSnoozeGroupCalendarEventReminder.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgSnoozeGroupCalendarEventReminder.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + NewReminderTime = @{ + DateTime = "dateTime-value" + TimeZone = "timeZone-value" + } +} +# A UPN can also be used as -UserId. +Invoke-MgSnoozeUserEventReminder -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgSnoozeGroupCalendarEventReminder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 7fe46a5a6ae8e91a2cce747532eca60cc04185fc Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:12:08 +0000 Subject: [PATCH 050/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/Invoke-MgSnoozeGroupEventReminder.md-beta --- .../Invoke-MgSnoozeGroupEventReminder.md | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgSnoozeGroupEventReminder.md b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgSnoozeGroupEventReminder.md index 093355d11d5..412c0070b67 100644 --- a/src/Groups/Groups/examples/v1.0-beta/Invoke-MgSnoozeGroupEventReminder.md +++ b/src/Groups/Groups/examples/v1.0-beta/Invoke-MgSnoozeGroupEventReminder.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + NewReminderTime = @{ + DateTime = "dateTime-value" + TimeZone = "timeZone-value" + } +} +# A UPN can also be used as -UserId. +Invoke-MgSnoozeUserEventReminder -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgSnoozeGroupEventReminder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 4dd6f9c3c90d995a149e9f474ca1c49214a31503 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:12:09 +0000 Subject: [PATCH 051/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/New-MgGroupConversationThreadPostAttachmentUploadSession.md-beta --- ...sationThreadPostAttachmentUploadSession.md | 44 ++++++++++++++----- 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupConversationThreadPostAttachmentUploadSession.md b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupConversationThreadPostAttachmentUploadSession.md index 093355d11d5..6647ae0737c 100644 --- a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupConversationThreadPostAttachmentUploadSession.md +++ b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupConversationThreadPostAttachmentUploadSession.md @@ -1,18 +1,38 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Create an upload session to add a large attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "flower" + Size = 3483322 + } +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgGroupConversationThreadPostAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an upload session to add a large in-line attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "scenary" + Size = 7208534 + IsInline = $true + ContentId = "my_inline_picture" + } +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgGroupConversationThreadPostAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 98cfad82d93e3b42f93d364151c31c69d370301d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:12:10 +0000 Subject: [PATCH 052/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0-beta/New-MgGroupConversationThreadPostInReplyToAttachmentUploadSession.md-beta --- ...eadPostInReplyToAttachmentUploadSession.md | 44 ++++++++++++++----- 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupConversationThreadPostInReplyToAttachmentUploadSession.md b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupConversationThreadPostInReplyToAttachmentUploadSession.md index 093355d11d5..96c7bb5ed5c 100644 --- a/src/Groups/Groups/examples/v1.0-beta/New-MgGroupConversationThreadPostInReplyToAttachmentUploadSession.md +++ b/src/Groups/Groups/examples/v1.0-beta/New-MgGroupConversationThreadPostInReplyToAttachmentUploadSession.md @@ -1,18 +1,38 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Create an upload session to add a large attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "flower" + Size = 3483322 + } +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgGroupConversationThreadPostInReplyToAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an upload session to add a large in-line attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "scenary" + Size = 7208534 + IsInline = $true + ContentId = "my_inline_picture" + } +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgGroupConversationThreadPostInReplyToAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From fdf532a8a351287009f38c951e3605c4f0eb5f7d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:12:41 +0000 Subject: [PATCH 053/388] Examples update on D:\a\_work\1\s\tools\..\src\DirectoryObjects\DirectoryObjects\examples\v1.0-beta/Get-MgDirectoryObjectMemberObject.md-beta --- .../Get-MgDirectoryObjectMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Get-MgDirectoryObjectMemberObject.md b/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Get-MgDirectoryObjectMemberObject.md index 093355d11d5..f663c5a8826 100644 --- a/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Get-MgDirectoryObjectMemberObject.md +++ b/src/DirectoryObjects/DirectoryObjects/examples/v1.0-beta/Get-MgDirectoryObjectMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryObjectMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From d330d12e49fac7f15f24aa67c5b01f4d35344905 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:13:57 +0000 Subject: [PATCH 054/388] Examples update on D:\a\_work\1\s\tools\..\src\DeviceManagement.Enrolment\DeviceManagement.Enrolment\examples\v1.0-beta/Stop-MgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.md-beta --- ...ManagementRoleAssignmentScheduleRequest.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Stop-MgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Stop-MgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.md index 093355d11d5..749bd5f6871 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Stop-MgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Stop-MgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Stop-MgRoleManagementDirectoryRoleAssignmentScheduleRequest -UnifiedRoleAssignmentScheduleRequestId $unifiedRoleAssignmentScheduleRequestId +``` +This example shows how to use the Stop-MgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From b1555119926215f82a12e426d8af185da8bb65a7 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:13:57 +0000 Subject: [PATCH 055/388] Examples update on D:\a\_work\1\s\tools\..\src\DeviceManagement.Enrolment\DeviceManagement.Enrolment\examples\v1.0-beta/Stop-MgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.md-beta --- ...anagementRoleEligibilityScheduleRequest.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Stop-MgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Stop-MgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.md index 093355d11d5..72e950ef413 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Stop-MgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0-beta/Stop-MgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Stop-MgRoleManagementDirectoryRoleEligibilityScheduleRequest -UnifiedRoleEligibilityScheduleRequestId $unifiedRoleEligibilityScheduleRequestId +``` +This example shows how to use the Stop-MgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From d678f691bb3a7fb159ced8a84ef3c8fb0769ee55 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:16:04 +0000 Subject: [PATCH 056/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.Governance\Identity.Governance\examples\v1.0-beta/Get-MgEntitlementManagementConnectedOrganizationExternalSponsorById.md-beta --- ...onnectedOrganizationExternalSponsorById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganizationExternalSponsorById.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganizationExternalSponsorById.md index 093355d11d5..c356c861e44 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganizationExternalSponsorById.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganizationExternalSponsorById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgEntitlementManagementConnectedOrganizationExternalSponsorById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From faceca0f4f688f2b37d8fc08352b00746314ea50 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:16:05 +0000 Subject: [PATCH 057/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.Governance\Identity.Governance\examples\v1.0-beta/Get-MgEntitlementManagementConnectedOrganizationInternalSponsorById.md-beta --- ...onnectedOrganizationInternalSponsorById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganizationInternalSponsorById.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganizationInternalSponsorById.md index 093355d11d5..7c98327e444 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganizationInternalSponsorById.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Get-MgEntitlementManagementConnectedOrganizationInternalSponsorById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgEntitlementManagementConnectedOrganizationInternalSponsorById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 4eec06a87a858be67abf0737316313b5a32c647e Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:16:16 +0000 Subject: [PATCH 058/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.Governance\Identity.Governance\examples\v1.0-beta/Invoke-MgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation.md-beta --- ...sReviewDefinitionInstanceRecommendation.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation.md index 093355d11d5..4786bb8b890 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Identity.Governance +Invoke-MgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId +``` +This example shows how to use the Invoke-MgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 44b605a20b667e036b32769a3eb8f70efb9dbc10 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:16:17 +0000 Subject: [PATCH 059/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.Governance\Identity.Governance\examples\v1.0-beta/Invoke-MgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision.md-beta --- ...sReviewDefinitionInstanceRecordDecision.md | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision.md b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision.md index 093355d11d5..a2909b00e5e 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0-beta/Invoke-MgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Identity.Governance -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Decision = "Approve" + Justification = "All principals with access need continued access to the resource (Marketing Group) as all the principals are on the marketing team" + ResourceId = "a5c51e59-3fcd-4a37-87a1-835c0c21488a" +} +Invoke-MgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -BodyParameter $params +``` +This example shows how to use the Invoke-MgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From d588bc6c88eae668330779033df5a99eda8350e1 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:16:27 +0000 Subject: [PATCH 060/388] Examples update on D:\a\_work\1\s\tools\..\src\CloudCommunications\CloudCommunications\examples\v1.0-beta/Invoke-MgCreateOrGetCommunicationOnlineMeeting.md-beta --- ...MgCreateOrGetCommunicationOnlineMeeting.md | 41 ++++++++++++------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgCreateOrGetCommunicationOnlineMeeting.md b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgCreateOrGetCommunicationOnlineMeeting.md index 093355d11d5..8b997a230fa 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgCreateOrGetCommunicationOnlineMeeting.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0-beta/Invoke-MgCreateOrGetCommunicationOnlineMeeting.md @@ -1,18 +1,29 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + StartDateTime = [System.DateTime]::Parse("2020-02-06T01:49:21.3524945+00:00") + EndDateTime = [System.DateTime]::Parse("2020-02-06T02:19:21.3524945+00:00") + Subject = "Create a meeting with customId provided" + ExternalId = "7eb8263f-d0e0-4149-bb1c-1f0476083c56" + Participants = @{ + Attendees = @( + @{ + Identity = @{ + User = @{ + Id = "1f35f2e6-9cab-44ad-8d5a-b74c14720000" + } + } + Upn = "test1@contoso.com" + } + ) + } +} +# A UPN can also be used as -UserId. +Invoke-MgCreateOrGetUserOnlineMeeting -UserId $userId -BodyParameter $params +``` +This example shows how to use the Invoke-MgCreateOrGetCommunicationOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 03bb8926b83733750317895627c02e010b9485fd Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:17:34 +0000 Subject: [PATCH 061/388] Examples update on D:\a\_work\1\s\tools\..\src\Teams\Teams\examples\v1.0-beta/Add-MgChatMember.md-beta --- .../examples/v1.0-beta/Add-MgChatMember.md | 87 ++++++++++++++++--- 1 file changed, 75 insertions(+), 12 deletions(-) diff --git a/src/Teams/Teams/examples/v1.0-beta/Add-MgChatMember.md b/src/Teams/Teams/examples/v1.0-beta/Add-MgChatMember.md index 093355d11d5..f01f11743c4 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Add-MgChatMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/Add-MgChatMember.md @@ -1,18 +1,81 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Add members in bulk to a team -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + } + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add members in bulk and encounter partial failure -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + } + ) +} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Add members in bulk to a team using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" + } + ) +} + +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 22247e67f563a347aa64c863116cb8c56ffae99f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:17:35 +0000 Subject: [PATCH 062/388] Examples update on D:\a\_work\1\s\tools\..\src\Teams\Teams\examples\v1.0-beta/Add-MgTeamChannelMember.md-beta --- .../v1.0-beta/Add-MgTeamChannelMember.md | 87 ++++++++++++++++--- 1 file changed, 75 insertions(+), 12 deletions(-) diff --git a/src/Teams/Teams/examples/v1.0-beta/Add-MgTeamChannelMember.md b/src/Teams/Teams/examples/v1.0-beta/Add-MgTeamChannelMember.md index 093355d11d5..be431fb184e 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Add-MgTeamChannelMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/Add-MgTeamChannelMember.md @@ -1,18 +1,81 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Add members in bulk to a team -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + } + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add members in bulk and encounter partial failure -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + } + ) +} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Add members in bulk to a team using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" + } + ) +} + +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 27b3a1ba691a109fd5fb47cbd1715106c4f29ffa Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:17:36 +0000 Subject: [PATCH 063/388] Examples update on D:\a\_work\1\s\tools\..\src\Teams\Teams\examples\v1.0-beta/Add-MgTeamPrimaryChannelMember.md-beta --- .../Add-MgTeamPrimaryChannelMember.md | 87 ++++++++++++++++--- 1 file changed, 75 insertions(+), 12 deletions(-) diff --git a/src/Teams/Teams/examples/v1.0-beta/Add-MgTeamPrimaryChannelMember.md b/src/Teams/Teams/examples/v1.0-beta/Add-MgTeamPrimaryChannelMember.md index 093355d11d5..5f8c199978a 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Add-MgTeamPrimaryChannelMember.md +++ b/src/Teams/Teams/examples/v1.0-beta/Add-MgTeamPrimaryChannelMember.md @@ -1,18 +1,81 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Add members in bulk to a team -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + } + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add members in bulk and encounter partial failure -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + } + ) +} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Add members in bulk to a team using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" + } + ) +} + +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 0a399509b6e7c5b5611a44e5c2968716868193d2 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:17:37 +0000 Subject: [PATCH 064/388] Examples update on D:\a\_work\1\s\tools\..\src\Teams\Teams\examples\v1.0-beta/Complete-MgTeamPrimaryChannelMigration.md-beta --- .../Complete-MgTeamPrimaryChannelMigration.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Teams/Teams/examples/v1.0-beta/Complete-MgTeamPrimaryChannelMigration.md b/src/Teams/Teams/examples/v1.0-beta/Complete-MgTeamPrimaryChannelMigration.md index 093355d11d5..7174462bea4 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Complete-MgTeamPrimaryChannelMigration.md +++ b/src/Teams/Teams/examples/v1.0-beta/Complete-MgTeamPrimaryChannelMigration.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Teams +Complete-MgTeamChannelMigration -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Complete-MgTeamPrimaryChannelMigration Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 17e4ba1dbc9da08e59f1f6a174e6e3fbfd29ac38 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:18:07 +0000 Subject: [PATCH 065/388] Examples update on D:\a\_work\1\s\tools\..\src\Teams\Teams\examples\v1.0-beta/New-MgTeamPrimaryChannelEmail.md-beta --- .../New-MgTeamPrimaryChannelEmail.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamPrimaryChannelEmail.md b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamPrimaryChannelEmail.md index 093355d11d5..a81956e93a4 100644 --- a/src/Teams/Teams/examples/v1.0-beta/New-MgTeamPrimaryChannelEmail.md +++ b/src/Teams/Teams/examples/v1.0-beta/New-MgTeamPrimaryChannelEmail.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Teams +New-MgTeamChannelEmail -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the New-MgTeamPrimaryChannelEmail Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From fd83a3d4e5d5bac4e868fe559f1bd8272b05c2df Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:18:20 +0000 Subject: [PATCH 066/388] Examples update on D:\a\_work\1\s\tools\..\src\Teams\Teams\examples\v1.0-beta/Remove-MgTeamPrimaryChannelEmail.md-beta --- .../Remove-MgTeamPrimaryChannelEmail.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamPrimaryChannelEmail.md b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamPrimaryChannelEmail.md index 093355d11d5..3fcf19fafe2 100644 --- a/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamPrimaryChannelEmail.md +++ b/src/Teams/Teams/examples/v1.0-beta/Remove-MgTeamPrimaryChannelEmail.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Teams +Remove-MgTeamChannelEmail -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Remove-MgTeamPrimaryChannelEmail Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 580817b1b2121cdab73626635f697c3f6c7e346c Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:22:41 +0000 Subject: [PATCH 067/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0-beta/Add-MgSiteContentTypeCopy.md-beta --- .../v1.0-beta/Add-MgSiteContentTypeCopy.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0-beta/Add-MgSiteContentTypeCopy.md b/src/Sites/Sites/examples/v1.0-beta/Add-MgSiteContentTypeCopy.md index 093355d11d5..294801639ce 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Add-MgSiteContentTypeCopy.md +++ b/src/Sites/Sites/examples/v1.0-beta/Add-MgSiteContentTypeCopy.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" +} +Add-MgSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgSiteContentTypeCopy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 9b83863fab1e18f2799c3799cb511a81c3f81f94 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:22:42 +0000 Subject: [PATCH 068/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0-beta/Add-MgSiteContentTypeCopyFromContentTypeHub.md-beta --- ...MgSiteContentTypeCopyFromContentTypeHub.md | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0-beta/Add-MgSiteContentTypeCopyFromContentTypeHub.md b/src/Sites/Sites/examples/v1.0-beta/Add-MgSiteContentTypeCopyFromContentTypeHub.md index 093355d11d5..d7a7c014bfe 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Add-MgSiteContentTypeCopyFromContentTypeHub.md +++ b/src/Sites/Sites/examples/v1.0-beta/Add-MgSiteContentTypeCopyFromContentTypeHub.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Synchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgSiteContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Asynchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgSiteContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 461bc7ba57327f17c3d03ddf15226f426ce10001 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:22:43 +0000 Subject: [PATCH 069/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0-beta/Copy-MgSiteListContentTypeToDefaultContentLocation.md-beta --- ...ListContentTypeToDefaultContentLocation.md | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteListContentTypeToDefaultContentLocation.md b/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteListContentTypeToDefaultContentLocation.md index 093355d11d5..11427cc5b11 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteListContentTypeToDefaultContentLocation.md +++ b/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteListContentTypeToDefaultContentLocation.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SourceFile = @{ + SharepointIds = @{ + ListId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" + ListItemId = "2" + } + } + DestinationFileName = "newname.txt" +} +Copy-MgSiteContentTypeToDefaultContentLocation -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +``` +This example shows how to use the Copy-MgSiteListContentTypeToDefaultContentLocation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From c93cd8561566690210d304532bc6acfe685e642d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:22:44 +0000 Subject: [PATCH 070/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0-beta/Copy-MgSiteOnenoteNotebook.md-beta --- .../v1.0-beta/Copy-MgSiteOnenoteNotebook.md | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteOnenoteNotebook.md b/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteOnenoteNotebook.md index 093355d11d5..7ef478c7320 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteOnenoteNotebook.md +++ b/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteOnenoteNotebook.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + GroupId = "groupId-value" + RenameAs = "renameAs-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenoteNotebook -UserId $userId -NotebookId $notebookId -BodyParameter $params +``` +This example shows how to use the Copy-MgSiteOnenoteNotebook Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From c0740b514ae8b887b6f0970c3ed82452f9123310 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:22:44 +0000 Subject: [PATCH 071/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0-beta/Copy-MgSiteOnenotePageToSection.md-beta --- .../Copy-MgSiteOnenotePageToSection.md | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteOnenotePageToSection.md b/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteOnenotePageToSection.md index 093355d11d5..4069ed9d420 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteOnenotePageToSection.md +++ b/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteOnenotePageToSection.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Id = "id-value" + GroupId = "groupId-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenotePageToSection -UserId $userId -OnenotePageId $onenotePageId -BodyParameter $params +``` +This example shows how to use the Copy-MgSiteOnenotePageToSection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From eab875273af2b977b3f790123c860b1608689c77 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:22:45 +0000 Subject: [PATCH 072/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0-beta/Copy-MgSiteOnenoteSectionToNotebook.md-beta --- .../Copy-MgSiteOnenoteSectionToNotebook.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteOnenoteSectionToNotebook.md b/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteOnenoteSectionToNotebook.md index 093355d11d5..ea5201ecdf4 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteOnenoteSectionToNotebook.md +++ b/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteOnenoteSectionToNotebook.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Id = "id-value" + GroupId = "groupId-value" + RenameAs = "renameAs-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenoteSectionToNotebook -UserId $userId -OnenoteSectionId $onenoteSectionId -BodyParameter $params +``` +This example shows how to use the Copy-MgSiteOnenoteSectionToNotebook Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 0a08ff0e764c92366ca6c9c2eb26449d8cec11d7 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:22:46 +0000 Subject: [PATCH 073/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0-beta/Copy-MgSiteOnenoteSectionToSectionGroup.md-beta --- ...Copy-MgSiteOnenoteSectionToSectionGroup.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteOnenoteSectionToSectionGroup.md b/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteOnenoteSectionToSectionGroup.md index 093355d11d5..ae69ac19bd0 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteOnenoteSectionToSectionGroup.md +++ b/src/Sites/Sites/examples/v1.0-beta/Copy-MgSiteOnenoteSectionToSectionGroup.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Id = "id-value" + GroupId = "groupId-value" + RenameAs = "renameAs-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenoteSectionToSectionGroup -UserId $userId -OnenoteSectionId $onenoteSectionId -BodyParameter $params +``` +This example shows how to use the Copy-MgSiteOnenoteSectionToSectionGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From f49d45e074ddb2eaccbca3dc502bc400bad50fc2 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:22:50 +0000 Subject: [PATCH 074/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0-beta/Get-MgSiteOnenoteNotebookFromWebUrl.md-beta --- .../Get-MgSiteOnenoteNotebookFromWebUrl.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteOnenoteNotebookFromWebUrl.md b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteOnenoteNotebookFromWebUrl.md index 093355d11d5..1a2e157a705 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteOnenoteNotebookFromWebUrl.md +++ b/src/Sites/Sites/examples/v1.0-beta/Get-MgSiteOnenoteNotebookFromWebUrl.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + WebUrl = "webUrl value" +} +# A UPN can also be used as -UserId. +Get-MgUserOnenoteNotebookFromWebUrl -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgSiteOnenoteNotebookFromWebUrl Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 93c5cd5277c68ca08233fd035ef37b26d222a339 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:22:53 +0000 Subject: [PATCH 075/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0-beta/Grant-MgSitePermission.md-beta --- .../v1.0-beta/Grant-MgSitePermission.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0-beta/Grant-MgSitePermission.md b/src/Sites/Sites/examples/v1.0-beta/Grant-MgSitePermission.md index 093355d11d5..ee2c0011b36 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Grant-MgSitePermission.md +++ b/src/Sites/Sites/examples/v1.0-beta/Grant-MgSitePermission.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Recipients = @( + @{ + Email = "john@contoso.com" + } + @{ + Email = "ryan@external.com" + } + ) + Roles = @( + "read" + ) +} +Grant-MgSharePermission -SharedDriveItemId $sharedDriveItemId -BodyParameter $params +``` +This example shows how to use the Grant-MgSitePermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 25f7a98beb40622379a06d80a3a8af4e61d5eaab Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:22:58 +0000 Subject: [PATCH 076/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0-beta/Publish-MgSiteListContentType.md-beta --- .../Publish-MgSiteListContentType.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0-beta/Publish-MgSiteListContentType.md b/src/Sites/Sites/examples/v1.0-beta/Publish-MgSiteListContentType.md index 093355d11d5..9a52a137e47 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Publish-MgSiteListContentType.md +++ b/src/Sites/Sites/examples/v1.0-beta/Publish-MgSiteListContentType.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Publish-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId +``` +This example shows how to use the Publish-MgSiteListContentType Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 7b3316cd8a7949a9a32c4dcb930bcd64c3343eca Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:23:02 +0000 Subject: [PATCH 077/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0-beta/Restore-MgSiteListItemVersion.md-beta --- .../Restore-MgSiteListItemVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0-beta/Restore-MgSiteListItemVersion.md b/src/Sites/Sites/examples/v1.0-beta/Restore-MgSiteListItemVersion.md index 093355d11d5..df649ece3f7 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Restore-MgSiteListItemVersion.md +++ b/src/Sites/Sites/examples/v1.0-beta/Restore-MgSiteListItemVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -ListItemVersionId $listItemVersionId +``` +This example shows how to use the Restore-MgSiteListItemVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From bef8234927f54bb1289af1f1166ca47c649f56b7 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:23:03 +0000 Subject: [PATCH 078/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0-beta/Unpublish-MgSiteListContentType.md-beta --- .../Unpublish-MgSiteListContentType.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0-beta/Unpublish-MgSiteListContentType.md b/src/Sites/Sites/examples/v1.0-beta/Unpublish-MgSiteListContentType.md index 093355d11d5..7fd53c8bcdf 100644 --- a/src/Sites/Sites/examples/v1.0-beta/Unpublish-MgSiteListContentType.md +++ b/src/Sites/Sites/examples/v1.0-beta/Unpublish-MgSiteListContentType.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Unpublish-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId +``` +This example shows how to use the Unpublish-MgSiteListContentType Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From b526a1219cad657a48676d0d83038ac111732b8a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:23:13 +0000 Subject: [PATCH 079/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0-beta/Confirm-MgApplicationMemberGroup.md-beta --- .../Confirm-MgApplicationMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0-beta/Confirm-MgApplicationMemberGroup.md b/src/Applications/Applications/examples/v1.0-beta/Confirm-MgApplicationMemberGroup.md index 093355d11d5..1627559222d 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Confirm-MgApplicationMemberGroup.md +++ b/src/Applications/Applications/examples/v1.0-beta/Confirm-MgApplicationMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgApplicationMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgApplicationMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 6f74bc69006b258808774adfae699fd2b4653c08 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:23:14 +0000 Subject: [PATCH 080/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0-beta/Confirm-MgServicePrincipalMemberGroup.md-beta --- .../Confirm-MgServicePrincipalMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0-beta/Confirm-MgServicePrincipalMemberGroup.md b/src/Applications/Applications/examples/v1.0-beta/Confirm-MgServicePrincipalMemberGroup.md index 093355d11d5..2cdac1ffa65 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Confirm-MgServicePrincipalMemberGroup.md +++ b/src/Applications/Applications/examples/v1.0-beta/Confirm-MgServicePrincipalMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgServicePrincipalMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgServicePrincipalMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 28a8973d23a06b5878c00429827f489d8efbd5ec Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:23:15 +0000 Subject: [PATCH 081/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0-beta/Get-MgApplicationById.md-beta --- .../v1.0-beta/Get-MgApplicationById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationById.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationById.md index 093355d11d5..6d01ed3cf43 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationById.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgApplicationById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From ac3f62b123ec525dac6fc88c4dd8cf152fbfeca6 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:23:16 +0000 Subject: [PATCH 082/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0-beta/Get-MgApplicationMemberGroup.md-beta --- .../v1.0-beta/Get-MgApplicationMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationMemberGroup.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationMemberGroup.md index 093355d11d5..552403968eb 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationMemberGroup.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgApplicationMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgApplicationMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From e3b5c11dac9908876623a5d5d91b632cf1ba344c Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:23:17 +0000 Subject: [PATCH 083/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0-beta/Get-MgApplicationMemberObject.md-beta --- .../Get-MgApplicationMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationMemberObject.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationMemberObject.md index 093355d11d5..fc9ad8eebec 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationMemberObject.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgApplicationMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgApplicationMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 964869a46773953b1428fb9e768941b07ca88e6d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:23:22 +0000 Subject: [PATCH 084/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0-beta/Get-MgServicePrincipalById.md-beta --- .../v1.0-beta/Get-MgServicePrincipalById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalById.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalById.md index 093355d11d5..fd9ab342921 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalById.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgServicePrincipalById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From e746eac2e015f7b2b26c1a388063a570f5f5ffcc Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:23:23 +0000 Subject: [PATCH 085/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0-beta/Get-MgServicePrincipalMemberGroup.md-beta --- .../Get-MgServicePrincipalMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalMemberGroup.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalMemberGroup.md index 093355d11d5..599a29ad413 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalMemberGroup.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgServicePrincipalMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgServicePrincipalMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 366795b1b61b81f0e9322e53a620504190ef50f7 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:23:24 +0000 Subject: [PATCH 086/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0-beta/Get-MgServicePrincipalMemberObject.md-beta --- .../Get-MgServicePrincipalMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalMemberObject.md b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalMemberObject.md index 093355d11d5..24ead0cd144 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalMemberObject.md +++ b/src/Applications/Applications/examples/v1.0-beta/Get-MgServicePrincipalMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgServicePrincipalMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 38d9da43246755cf1a9ea4313fd96423d812c234 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:23:41 +0000 Subject: [PATCH 087/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0-beta/Test-MgApplicationProperty.md-beta --- .../v1.0-beta/Test-MgApplicationProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0-beta/Test-MgApplicationProperty.md b/src/Applications/Applications/examples/v1.0-beta/Test-MgApplicationProperty.md index 093355d11d5..a1a8d89bc09 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Test-MgApplicationProperty.md +++ b/src/Applications/Applications/examples/v1.0-beta/Test-MgApplicationProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgApplicationProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 3868ef273912adfc522a4395f5699f6197bdd743 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:23:41 +0000 Subject: [PATCH 088/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0-beta/Test-MgServicePrincipalProperty.md-beta --- .../Test-MgServicePrincipalProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0-beta/Test-MgServicePrincipalProperty.md b/src/Applications/Applications/examples/v1.0-beta/Test-MgServicePrincipalProperty.md index 093355d11d5..5a93a8aa2c4 100644 --- a/src/Applications/Applications/examples/v1.0-beta/Test-MgServicePrincipalProperty.md +++ b/src/Applications/Applications/examples/v1.0-beta/Test-MgServicePrincipalProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgServicePrincipalProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From cd24a20a91709c85e87f21749cdacc575036dd01 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:05 +0000 Subject: [PATCH 089/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Confirm-MgContactMemberGroup.md-beta --- .../v1.0-beta/Confirm-MgContactMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgContactMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgContactMemberGroup.md index 093355d11d5..c2f1a54d157 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgContactMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgContactMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgContactMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgContactMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 2d3467f50e10ccd39eb662615730c5de604047c7 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:06 +0000 Subject: [PATCH 090/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Confirm-MgContractMemberGroup.md-beta --- .../Confirm-MgContractMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgContractMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgContractMemberGroup.md index 093355d11d5..9beef18574f 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgContractMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgContractMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgContractMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgContractMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From c1b637c8ae66625606c80a434c57dbddfb9d150a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:06 +0000 Subject: [PATCH 091/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Confirm-MgDeviceMemberGroup.md-beta --- .../v1.0-beta/Confirm-MgDeviceMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDeviceMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDeviceMemberGroup.md index 093355d11d5..0b26e89fb1a 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDeviceMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDeviceMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From b2179bf9b727b6728c1c0a74536d9da923968494 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:07 +0000 Subject: [PATCH 092/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Confirm-MgDirectoryDeletedItemMemberGroup.md-beta --- ...nfirm-MgDirectoryDeletedItemMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDirectoryDeletedItemMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDirectoryDeletedItemMemberGroup.md index 093355d11d5..8850d054cf0 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDirectoryDeletedItemMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDirectoryDeletedItemMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgDirectoryDeletedItemMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgDirectoryDeletedItemMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From d5b5a36ca527a793c1b0aa3991d559c4dee7138d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:08 +0000 Subject: [PATCH 093/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Confirm-MgDirectoryRoleMemberGroup.md-beta --- .../Confirm-MgDirectoryRoleMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDirectoryRoleMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDirectoryRoleMemberGroup.md index 093355d11d5..a3a21a1b96a 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDirectoryRoleMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDirectoryRoleMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgDirectoryRoleMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgDirectoryRoleMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 97410d7f3728e3e081acb81b52b8e103b350bb32 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:09 +0000 Subject: [PATCH 094/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Confirm-MgDirectoryRoleTemplateMemberGroup.md-beta --- ...firm-MgDirectoryRoleTemplateMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDirectoryRoleTemplateMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDirectoryRoleTemplateMemberGroup.md index 093355d11d5..797def08b4c 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDirectoryRoleTemplateMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgDirectoryRoleTemplateMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgDirectoryRoleTemplateMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgDirectoryRoleTemplateMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From e71a969705805df42aad4aa8a0612f04a7c6aa43 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:10 +0000 Subject: [PATCH 095/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Confirm-MgOrganizationMemberGroup.md-beta --- .../Confirm-MgOrganizationMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgOrganizationMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgOrganizationMemberGroup.md index 093355d11d5..9a35811edf0 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgOrganizationMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Confirm-MgOrganizationMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgOrganizationMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgOrganizationMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 321242149479244d269b9a06052e46ef9f7734e9 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:11 +0000 Subject: [PATCH 096/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgContactById.md-beta --- .../examples/v1.0-beta/Get-MgContactById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactById.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactById.md index 093355d11d5..1e82d69f22b 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactById.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgContactById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From cf1a1e35e9846a79e8463f99cd3dfd8106c3b692 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:12 +0000 Subject: [PATCH 097/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgContactMemberGroup.md-beta --- .../v1.0-beta/Get-MgContactMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactMemberGroup.md index 093355d11d5..98ab06f094c 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgContactMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgContactMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From bf3aeb95a7bba89318ec4967c7042b3eac080fb3 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:13 +0000 Subject: [PATCH 098/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgContactMemberObject.md-beta --- .../v1.0-beta/Get-MgContactMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactMemberObject.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactMemberObject.md index 093355d11d5..7f2c5fcc28f 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactMemberObject.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContactMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgContactMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 2d4cb26ada9f1f37997017b8a9bb31184eaad47e Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:14 +0000 Subject: [PATCH 099/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgContractById.md-beta --- .../examples/v1.0-beta/Get-MgContractById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContractById.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContractById.md index 093355d11d5..501933fcf2b 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContractById.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContractById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgContractById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 4405ef6cf83b79164de2a05252b69821db6ecb08 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:14 +0000 Subject: [PATCH 100/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgContractMemberGroup.md-beta --- .../v1.0-beta/Get-MgContractMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContractMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContractMemberGroup.md index 093355d11d5..0ff7f0945ff 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContractMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContractMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgContractMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgContractMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 5632619174de976a041b1f7c0fe842634abe4925 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:14 +0000 Subject: [PATCH 101/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgContractMemberObject.md-beta --- .../v1.0-beta/Get-MgContractMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContractMemberObject.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContractMemberObject.md index 093355d11d5..abac6db6f2b 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContractMemberObject.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgContractMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgContractMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From df03ebb62dec352f9f00e6bb1b6d091b2390e4db Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:15 +0000 Subject: [PATCH 102/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgDeviceById.md-beta --- .../examples/v1.0-beta/Get-MgDeviceById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceById.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceById.md index 093355d11d5..397285288d3 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceById.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgDeviceById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 9071adcc2e509ca94e1ea43f93b41d1aebf6f131 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:16 +0000 Subject: [PATCH 103/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgDeviceMemberGroup.md-beta --- .../v1.0-beta/Get-MgDeviceMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceMemberGroup.md index 093355d11d5..6aec58a36af 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From d51cb00072c045f2ef95d372b937945a76858290 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:17 +0000 Subject: [PATCH 104/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgDeviceMemberObject.md-beta --- .../v1.0-beta/Get-MgDeviceMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceMemberObject.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceMemberObject.md index 093355d11d5..6d715b2ffa2 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceMemberObject.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDeviceMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgDeviceMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 4d902fc31b73037ea6f6a6e361b08e00a24ae2af Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:19 +0000 Subject: [PATCH 105/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgDirectoryDeletedItemMemberGroup.md-beta --- .../Get-MgDirectoryDeletedItemMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryDeletedItemMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryDeletedItemMemberGroup.md index 093355d11d5..57a88279c1c 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryDeletedItemMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryDeletedItemMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryDeletedItemMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryDeletedItemMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 5a632eda00603260c70effc67227f209cb163332 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:20 +0000 Subject: [PATCH 106/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgDirectoryDeletedItemMemberObject.md-beta --- .../Get-MgDirectoryDeletedItemMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryDeletedItemMemberObject.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryDeletedItemMemberObject.md index 093355d11d5..75c85b7a184 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryDeletedItemMemberObject.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryDeletedItemMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryDeletedItemMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From c2fbf67d2bb91f07d2a87ef6f1c1b9cec261fe77 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:22 +0000 Subject: [PATCH 107/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgDirectoryRoleById.md-beta --- .../v1.0-beta/Get-MgDirectoryRoleById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleById.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleById.md index 093355d11d5..75ad194fbe7 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleById.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryRoleById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 969adf851c1518fc8e2a1158e3e5ba7d459ca322 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:22 +0000 Subject: [PATCH 108/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgDirectoryRoleMemberGroup.md-beta --- .../Get-MgDirectoryRoleMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleMemberGroup.md index 093355d11d5..e7f06c3ba0c 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryRoleMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryRoleMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From f0ae47051e03e38d85d1385564d0d5f0092559a0 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:23 +0000 Subject: [PATCH 109/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgDirectoryRoleMemberObject.md-beta --- .../Get-MgDirectoryRoleMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleMemberObject.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleMemberObject.md index 093355d11d5..4714a552dab 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleMemberObject.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryRoleMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 5bc92a55e5f44953f45f0c514746eddece0caf99 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:23 +0000 Subject: [PATCH 110/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgDirectoryRoleTemplateById.md-beta --- .../Get-MgDirectoryRoleTemplateById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleTemplateById.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleTemplateById.md index 093355d11d5..2d55f5b3529 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleTemplateById.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleTemplateById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryRoleTemplateById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 01f9c2631c978ca2bf52cc616f62e944fbb36ead Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:24 +0000 Subject: [PATCH 111/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgDirectoryRoleTemplateMemberGroup.md-beta --- .../Get-MgDirectoryRoleTemplateMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleTemplateMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleTemplateMemberGroup.md index 093355d11d5..80558feafec 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleTemplateMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleTemplateMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryRoleTemplateMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryRoleTemplateMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 705ffb0e7cdb8ce789076fc52b95cabf4dcaa316 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:24 +0000 Subject: [PATCH 112/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgDirectoryRoleTemplateMemberObject.md-beta --- ...Get-MgDirectoryRoleTemplateMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleTemplateMemberObject.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleTemplateMemberObject.md index 093355d11d5..70b4645d729 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleTemplateMemberObject.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgDirectoryRoleTemplateMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryRoleTemplateMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From f83263dbc1034177802115a5d334a3bc7b4101f1 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:28 +0000 Subject: [PATCH 113/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgOrganizationById.md-beta --- .../v1.0-beta/Get-MgOrganizationById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationById.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationById.md index 093355d11d5..e106f33861e 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationById.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgOrganizationById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 7dc8eeb89490a2b2b84fa8ac2f35b52416bc0c69 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:28 +0000 Subject: [PATCH 114/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgOrganizationMemberGroup.md-beta --- .../Get-MgOrganizationMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationMemberGroup.md index 093355d11d5..d218d66d378 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgOrganizationMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgOrganizationMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From a5027ab27e3eaba2289f03f0322cbe9484d0e80e Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:29 +0000 Subject: [PATCH 115/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Get-MgOrganizationMemberObject.md-beta --- .../Get-MgOrganizationMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationMemberObject.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationMemberObject.md index 093355d11d5..074dd4a196c 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationMemberObject.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Get-MgOrganizationMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgOrganizationMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From b3c9e45c3d37ec81c7a7d94a52cbe891eb7a4fe0 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:43 +0000 Subject: [PATCH 116/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Test-MgContactProperty.md-beta --- .../v1.0-beta/Test-MgContactProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgContactProperty.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgContactProperty.md index 093355d11d5..6ed12437d5e 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgContactProperty.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgContactProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgContactProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 4669ce13cef9816fdf389412a6bf36530a58ad2d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:44 +0000 Subject: [PATCH 117/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Test-MgContractProperty.md-beta --- .../v1.0-beta/Test-MgContractProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgContractProperty.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgContractProperty.md index 093355d11d5..f3a5be3627c 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgContractProperty.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgContractProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgContractProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From d8064e4972882dc27bc1cd9d15d5585c3ea23c13 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:44 +0000 Subject: [PATCH 118/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Test-MgDeviceProperty.md-beta --- .../v1.0-beta/Test-MgDeviceProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgDeviceProperty.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgDeviceProperty.md index 093355d11d5..19c3b050503 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgDeviceProperty.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgDeviceProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgDeviceProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 57699ac8701903ad278e70a4f354112b9664e608 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:45 +0000 Subject: [PATCH 119/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Test-MgDirectoryDeletedItemProperty.md-beta --- .../Test-MgDirectoryDeletedItemProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgDirectoryDeletedItemProperty.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgDirectoryDeletedItemProperty.md index 093355d11d5..10301c6c2e6 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgDirectoryDeletedItemProperty.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgDirectoryDeletedItemProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgDirectoryDeletedItemProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 847fe54b15e3fa8e30946d3f3b13f85922f5e9dc Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:45 +0000 Subject: [PATCH 120/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Test-MgDirectoryRoleProperty.md-beta --- .../v1.0-beta/Test-MgDirectoryRoleProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgDirectoryRoleProperty.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgDirectoryRoleProperty.md index 093355d11d5..f3b93bb711c 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgDirectoryRoleProperty.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgDirectoryRoleProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgDirectoryRoleProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 3ad3a8b7469975fe089e24ee9f83a4937897fc36 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:46 +0000 Subject: [PATCH 121/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Test-MgDirectoryRoleTemplateProperty.md-beta --- .../Test-MgDirectoryRoleTemplateProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgDirectoryRoleTemplateProperty.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgDirectoryRoleTemplateProperty.md index 093355d11d5..13064928e97 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgDirectoryRoleTemplateProperty.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgDirectoryRoleTemplateProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgDirectoryRoleTemplateProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 841505b5a0cacca27ef683785abbf85d39ba6a18 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:24:46 +0000 Subject: [PATCH 122/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0-beta/Test-MgOrganizationProperty.md-beta --- .../v1.0-beta/Test-MgOrganizationProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgOrganizationProperty.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgOrganizationProperty.md index 093355d11d5..a22b3de6dd5 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgOrganizationProperty.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/Test-MgOrganizationProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgOrganizationProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From f50c0d13efe19d3e1e1b122bb85869ada707349c Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:09 +0000 Subject: [PATCH 123/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Add-MgUserChatMember.md-beta --- .../v1.0-beta/Add-MgUserChatMember.md | 87 ++++++++++++++++--- 1 file changed, 75 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Add-MgUserChatMember.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Add-MgUserChatMember.md index 093355d11d5..0356bd9d9d2 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Add-MgUserChatMember.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Add-MgUserChatMember.md @@ -1,18 +1,81 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Add members in bulk to a team -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + } + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgUserChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add members in bulk and encounter partial failure -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + } + ) +} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgUserChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Add members in bulk to a team using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" + } + ) +} + +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgUserChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 1b9d0fa1d4ad86be742d71bc643a8062c2b69464 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:10 +0000 Subject: [PATCH 124/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Add-MgUserDriveListContentTypeCopy.md-beta --- .../Add-MgUserDriveListContentTypeCopy.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Add-MgUserDriveListContentTypeCopy.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Add-MgUserDriveListContentTypeCopy.md index 093355d11d5..f8c4f9e0b92 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Add-MgUserDriveListContentTypeCopy.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Add-MgUserDriveListContentTypeCopy.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" +} +Add-MgSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgUserDriveListContentTypeCopy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From f303921c8f904b3d7ceacbeea2c5c5e3e4ca833e Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:11 +0000 Subject: [PATCH 125/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Add-MgUserDriveListContentTypeCopyFromContentTypeHub.md-beta --- ...veListContentTypeCopyFromContentTypeHub.md | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Add-MgUserDriveListContentTypeCopyFromContentTypeHub.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Add-MgUserDriveListContentTypeCopyFromContentTypeHub.md index 093355d11d5..e7a68a5df2d 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Add-MgUserDriveListContentTypeCopyFromContentTypeHub.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Add-MgUserDriveListContentTypeCopyFromContentTypeHub.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Synchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgUserDriveListContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Asynchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgUserDriveListContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 985daab4de3d01512ed264bd439c3c547770baae Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:14 +0000 Subject: [PATCH 126/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Confirm-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md-beta --- ...oftAuthenticatorMethodDeviceMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Confirm-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Confirm-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md index 093355d11d5..3e902e8d1d2 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Confirm-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Confirm-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From c6f231c6bfed20a4c632b060ce971e852c386dc9 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:14 +0000 Subject: [PATCH 127/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Confirm-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md-beta --- ...HelloForBusinessMethodDeviceMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Confirm-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Confirm-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md index 093355d11d5..adecb5940f6 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Confirm-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Confirm-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From ac0236e9f0eb097190c2caf531c4e669ea9d9c56 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:17 +0000 Subject: [PATCH 128/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Copy-MgUserDriveListContentTypeToDefaultContentLocation.md-beta --- ...ListContentTypeToDefaultContentLocation.md | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserDriveListContentTypeToDefaultContentLocation.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserDriveListContentTypeToDefaultContentLocation.md index 093355d11d5..445347704fc 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserDriveListContentTypeToDefaultContentLocation.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserDriveListContentTypeToDefaultContentLocation.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SourceFile = @{ + SharepointIds = @{ + ListId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" + ListItemId = "2" + } + } + DestinationFileName = "newname.txt" +} +Copy-MgSiteContentTypeToDefaultContentLocation -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +``` +This example shows how to use the Copy-MgUserDriveListContentTypeToDefaultContentLocation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From c64c5d5db6c5429071640b4f0f695ecae2729231 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:18 +0000 Subject: [PATCH 129/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Copy-MgUserMailFolderChildFolder.md-beta --- .../Copy-MgUserMailFolderChildFolder.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMailFolderChildFolder.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMailFolderChildFolder.md index 093355d11d5..051b88ab4f5 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMailFolderChildFolder.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMailFolderChildFolder.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + DestinationId = "destinationId-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +``` +This example shows how to use the Copy-MgUserMailFolderChildFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From cbf57ffe4e71d21d2a3e6491502beb6201da9c39 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:19 +0000 Subject: [PATCH 130/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Copy-MgUserMailFolderChildFolderMessage.md-beta --- ...Copy-MgUserMailFolderChildFolderMessage.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMailFolderChildFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMailFolderChildFolderMessage.md index 093355d11d5..84ae1584d18 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMailFolderChildFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMailFolderChildFolderMessage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + DestinationId = "destinationId-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Copy-MgUserMailFolderChildFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From d26d6c6e50924a6ca2a55df3c9a7f83d8a1dcd78 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:19 +0000 Subject: [PATCH 131/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Copy-MgUserMailFolderMessage.md-beta --- .../v1.0-beta/Copy-MgUserMailFolderMessage.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMailFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMailFolderMessage.md index 093355d11d5..dc7699eff52 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMailFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Copy-MgUserMailFolderMessage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + DestinationId = "destinationId-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Copy-MgUserMailFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 2780da2e7c5760809845c2022736ed28b9329d5b Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:24 +0000 Subject: [PATCH 132/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md-beta --- ...oftAuthenticatorMethodDeviceMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md index 093355d11d5..76f62acd4a7 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From e8d0dd0ed6370261411ece4492d5e5cb11ad630f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:25 +0000 Subject: [PATCH 133/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberObject.md-beta --- ...ftAuthenticatorMethodDeviceMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberObject.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberObject.md index 093355d11d5..aeadf0b5981 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberObject.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 51909e0956236085fa2ac9ef0fe45218eaadc3f5 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:25 +0000 Subject: [PATCH 134/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md-beta --- ...HelloForBusinessMethodDeviceMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md index 093355d11d5..0a4b218b967 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From a538573b90fe9530d52b1431782ec6e485107b12 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:26 +0000 Subject: [PATCH 135/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberObject.md-beta --- ...elloForBusinessMethodDeviceMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberObject.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberObject.md index 093355d11d5..bbc628d4fcf 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberObject.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 3c45811479f2863b564d457a5c91a0cc4c16b381 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:27 +0000 Subject: [PATCH 136/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Get-MgUserById.md-beta --- .../examples/v1.0-beta/Get-MgUserById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserById.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserById.md index 093355d11d5..76a8aa65ee7 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserById.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgUserById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From b7b4bd3ddee7eb653a6dd4cabfb1044dec2d12e6 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:27 +0000 Subject: [PATCH 137/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Get-MgUserCalendarSchedule.md-beta --- .../v1.0-beta/Get-MgUserCalendarSchedule.md | 38 +++++++++++-------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserCalendarSchedule.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserCalendarSchedule.md index 093355d11d5..046e57d6575 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserCalendarSchedule.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Get-MgUserCalendarSchedule.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Schedules = @( + "adelev@contoso.onmicrosoft.com" + "meganb@contoso.onmicrosoft.com" + ) + StartTime = @{ + DateTime = "2019-03-15T09:00:00" + TimeZone = "Pacific Standard Time" + } + EndTime = @{ + DateTime = "2019-03-15T18:00:00" + TimeZone = "Pacific Standard Time" + } + AvailabilityViewInterval = 60 +} +# A UPN can also be used as -UserId. +Get-MgUserDefaultCalendarSchedule -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgUserCalendarSchedule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From b3fe608072b25b93d6c6183702e9564aa778ed5e Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:31 +0000 Subject: [PATCH 138/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Grant-MgUserDriveItemPermission.md-beta --- .../Grant-MgUserDriveItemPermission.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Grant-MgUserDriveItemPermission.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Grant-MgUserDriveItemPermission.md index 093355d11d5..4d1fdc1f646 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Grant-MgUserDriveItemPermission.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Grant-MgUserDriveItemPermission.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Recipients = @( + @{ + Email = "john@contoso.com" + } + @{ + Email = "ryan@external.com" + } + ) + Roles = @( + "read" + ) +} +Grant-MgSharePermission -SharedDriveItemId $sharedDriveItemId -BodyParameter $params +``` +This example shows how to use the Grant-MgUserDriveItemPermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From edcad764fc1fdb66930d82a494a44d51464dc04d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:31 +0000 Subject: [PATCH 139/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Grant-MgUserDriveRootPermission.md-beta --- .../Grant-MgUserDriveRootPermission.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Grant-MgUserDriveRootPermission.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Grant-MgUserDriveRootPermission.md index 093355d11d5..3fb1b62a5c6 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Grant-MgUserDriveRootPermission.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Grant-MgUserDriveRootPermission.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Recipients = @( + @{ + Email = "john@contoso.com" + } + @{ + Email = "ryan@external.com" + } + ) + Roles = @( + "read" + ) +} +Grant-MgSharePermission -SharedDriveItemId $sharedDriveItemId -BodyParameter $params +``` +This example shows how to use the Grant-MgUserDriveRootPermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 0c463a5da00071e9162f4d305c97d0568a90652b Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:32 +0000 Subject: [PATCH 140/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Invoke-MgAcceptUserEventInstance.md-beta --- .../Invoke-MgAcceptUserEventInstance.md | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserEventInstance.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserEventInstance.md index 093355d11d5..cb86a452b48 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserEventInstance.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserEventInstance.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" + SendResponse = $true +} +# A UPN can also be used as -UserId. +Invoke-MgAcceptUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgAcceptUserEventInstance Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From e4d53ed274d6dd1b0fa08b5046370aaad04213eb Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:33 +0000 Subject: [PATCH 141/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Invoke-MgAcceptUserEventInstanceTentatively.md-beta --- ...ke-MgAcceptUserEventInstanceTentatively.md | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserEventInstanceTentatively.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserEventInstanceTentatively.md index 093355d11d5..25f934ca8de 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserEventInstanceTentatively.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgAcceptUserEventInstanceTentatively.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "I may not be able to make this week. How about next week?" + SendResponse = $true + ProposedNewTime = @{ + Start = @{ + DateTime = "2019-12-02T18:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-12-02T19:00:00" + TimeZone = "Pacific Standard Time" + } + } +} +# A UPN can also be used as -UserId. +Invoke-MgAcceptUserEventTentatively -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgAcceptUserEventInstanceTentatively Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 8964e590379eb5b04d769339f7895d69c39f865d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:35 +0000 Subject: [PATCH 142/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Invoke-MgCheckinUserDriveItem.md-beta --- .../Invoke-MgCheckinUserDriveItem.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCheckinUserDriveItem.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCheckinUserDriveItem.md index 093355d11d5..8f638a5f8cd 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCheckinUserDriveItem.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCheckinUserDriveItem.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "Updating the latest guidelines" +} +Invoke-MgCheckinDriveItem -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params +``` +This example shows how to use the Invoke-MgCheckinUserDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From ea7a42677dfdcb9ae32bf0a77109164adb1f865d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:35 +0000 Subject: [PATCH 143/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Invoke-MgCheckinUserDriveRoot.md-beta --- .../Invoke-MgCheckinUserDriveRoot.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCheckinUserDriveRoot.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCheckinUserDriveRoot.md index 093355d11d5..27308cc618f 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCheckinUserDriveRoot.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCheckinUserDriveRoot.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "Updating the latest guidelines" +} +Invoke-MgCheckinDriveItem -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params +``` +This example shows how to use the Invoke-MgCheckinUserDriveRoot Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 28544c0a0d8b8d25c350c5f1f735a4a7245e0849 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:36 +0000 Subject: [PATCH 144/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Invoke-MgCheckoutUserDriveItem.md-beta --- .../Invoke-MgCheckoutUserDriveItem.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCheckoutUserDriveItem.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCheckoutUserDriveItem.md index 093355d11d5..60730186efe 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCheckoutUserDriveItem.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCheckoutUserDriveItem.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Files +Invoke-MgCheckoutDriveItem -DriveId $driveId -DriveItemId $driveItemId +``` +This example shows how to use the Invoke-MgCheckoutUserDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 355ea5307615e9de8cfd22786e97484b661ac07a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:36 +0000 Subject: [PATCH 145/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Invoke-MgCheckoutUserDriveRoot.md-beta --- .../Invoke-MgCheckoutUserDriveRoot.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCheckoutUserDriveRoot.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCheckoutUserDriveRoot.md index 093355d11d5..a98823b5db5 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCheckoutUserDriveRoot.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgCheckoutUserDriveRoot.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Files +Invoke-MgCheckoutDriveItem -DriveId $driveId -DriveItemId $driveItemId +``` +This example shows how to use the Invoke-MgCheckoutUserDriveRoot Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 7986fccd1fc4e7716c5be39c0c8ccdbd8959b67f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:38 +0000 Subject: [PATCH 146/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Invoke-MgDeclineUserEventInstance.md-beta --- .../Invoke-MgDeclineUserEventInstance.md | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgDeclineUserEventInstance.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgDeclineUserEventInstance.md index 093355d11d5..a234c78ff37 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgDeclineUserEventInstance.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgDeclineUserEventInstance.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "I won't be able to make this week. How about next week?" + SendResponse = $true + ProposedNewTime = @{ + Start = @{ + DateTime = "2019-12-02T18:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-12-02T19:00:00" + TimeZone = "Pacific Standard Time" + } + } +} +# A UPN can also be used as -UserId. +Invoke-MgDeclineUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgDeclineUserEventInstance Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 337936fa9738006d357109c86e85ab0b3128d30c Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:38 +0000 Subject: [PATCH 147/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Invoke-MgDismissUserEventInstanceReminder.md-beta --- ...voke-MgDismissUserEventInstanceReminder.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgDismissUserEventInstanceReminder.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgDismissUserEventInstanceReminder.md index 093355d11d5..df58336be21 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgDismissUserEventInstanceReminder.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgDismissUserEventInstanceReminder.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Invoke-MgDismissUserEventReminder -UserId $userId -EventId $eventId +``` +This example shows how to use the Invoke-MgDismissUserEventInstanceReminder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 5b0035541a7df34cd5c4718a25463982d33ec64f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:41 +0000 Subject: [PATCH 148/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Invoke-MgForwardUserEventInstance.md-beta --- .../Invoke-MgForwardUserEventInstance.md | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserEventInstance.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserEventInstance.md index 093355d11d5..3dec9ed2cd5 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserEventInstance.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserEventInstance.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "danas@contoso.onmicrosoft.com" + Name = "Dana Swope" + } + } + ) + Comment = "Dana, hope you can make this meeting." +} +# A UPN can also be used as -UserId. +Invoke-MgForwardUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgForwardUserEventInstance Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 19eb8fa57ce710d0668f11f2b8873a2a8dc96f6b Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:42 +0000 Subject: [PATCH 149/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Invoke-MgForwardUserMailFolderChildFolderMessage.md-beta --- ...ForwardUserMailFolderChildFolderMessage.md | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserMailFolderChildFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserMailFolderChildFolderMessage.md index 093355d11d5..35563597482 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserMailFolderChildFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserMailFolderChildFolderMessage.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" + ToRecipients = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) +} +# A UPN can also be used as -UserId. +Invoke-MgForwardUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Invoke-MgForwardUserMailFolderChildFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 1bf602671eaacbec83f8d36ecc41146d505716e9 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:42 +0000 Subject: [PATCH 150/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Invoke-MgForwardUserMailFolderMessage.md-beta --- .../Invoke-MgForwardUserMailFolderMessage.md | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserMailFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserMailFolderMessage.md index 093355d11d5..1ddbae7dcfc 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserMailFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgForwardUserMailFolderMessage.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" + ToRecipients = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) +} +# A UPN can also be used as -UserId. +Invoke-MgForwardUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Invoke-MgForwardUserMailFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From d612e15654c95dfb2c3d47ffacd8738a5c1a791e Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:46 +0000 Subject: [PATCH 151/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Invoke-MgReplyAllUserMailFolderChildFolderMessage.md-beta --- ...eplyAllUserMailFolderChildFolderMessage.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyAllUserMailFolderChildFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyAllUserMailFolderChildFolderMessage.md index 093355d11d5..85095ef3084 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyAllUserMailFolderChildFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyAllUserMailFolderChildFolderMessage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" +} +# A UPN can also be used as -UserId. +Invoke-MgReplyAllUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyAllUserMailFolderChildFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 51063d3ca25be17fc907dfdc383aa362f379c779 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:46 +0000 Subject: [PATCH 152/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Invoke-MgReplyAllUserMailFolderMessage.md-beta --- .../Invoke-MgReplyAllUserMailFolderMessage.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyAllUserMailFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyAllUserMailFolderMessage.md index 093355d11d5..ab86853170f 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyAllUserMailFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyAllUserMailFolderMessage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" +} +# A UPN can also be used as -UserId. +Invoke-MgReplyAllUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyAllUserMailFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 8a60620bccfe6662e207faa5185be02357cfd8fd Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:47 +0000 Subject: [PATCH 153/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Invoke-MgReplyUserMailFolderChildFolderMessage.md-beta --- ...MgReplyUserMailFolderChildFolderMessage.md | 42 ++++++++++++------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyUserMailFolderChildFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyUserMailFolderChildFolderMessage.md index 093355d11d5..071140060cd 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyUserMailFolderChildFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyUserMailFolderChildFolderMessage.md @@ -1,18 +1,30 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Reply in JSON format to an existing message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Message = @{ + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "samanthab@contoso.onmicrosoft.com" + Name = "Samantha Booth" + } + } + @{ + EmailAddress = @{ + Address = "randiw@contoso.onmicrosoft.com" + Name = "Randi Welch" + } + } + ) + } + Comment = "Samantha, Randi, would you name the group please?" +} +# A UPN can also be used as -UserId. +Invoke-MgReplyUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyUserMailFolderChildFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 6902314908b6f9d99a090cd605db5c03383132ec Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:47 +0000 Subject: [PATCH 154/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Invoke-MgReplyUserMailFolderMessage.md-beta --- .../Invoke-MgReplyUserMailFolderMessage.md | 42 ++++++++++++------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyUserMailFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyUserMailFolderMessage.md index 093355d11d5..52098f52e1c 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyUserMailFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgReplyUserMailFolderMessage.md @@ -1,18 +1,30 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Reply in JSON format to an existing message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Message = @{ + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "samanthab@contoso.onmicrosoft.com" + Name = "Samantha Booth" + } + } + @{ + EmailAddress = @{ + Address = "randiw@contoso.onmicrosoft.com" + Name = "Randi Welch" + } + } + ) + } + Comment = "Samantha, Randi, would you name the group please?" +} +# A UPN can also be used as -UserId. +Invoke-MgReplyUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyUserMailFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From e80a92e563f2977c04e525b55299ad77d2d411b2 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:49 +0000 Subject: [PATCH 155/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Invoke-MgSnoozeUserEventInstanceReminder.md-beta --- ...nvoke-MgSnoozeUserEventInstanceReminder.md | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgSnoozeUserEventInstanceReminder.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgSnoozeUserEventInstanceReminder.md index 093355d11d5..81763cdfc02 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgSnoozeUserEventInstanceReminder.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Invoke-MgSnoozeUserEventInstanceReminder.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + NewReminderTime = @{ + DateTime = "dateTime-value" + TimeZone = "timeZone-value" + } +} +# A UPN can also be used as -UserId. +Invoke-MgSnoozeUserEventReminder -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgSnoozeUserEventInstanceReminder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From e6b54f4d1b1bd6c0d03747512d17cc6327871e3a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:53 +0000 Subject: [PATCH 156/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Move-MgUserMailFolderChildFolder.md-beta --- .../Move-MgUserMailFolderChildFolder.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMailFolderChildFolder.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMailFolderChildFolder.md index 093355d11d5..370c9176d9e 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMailFolderChildFolder.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMailFolderChildFolder.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + DestinationId = "destinationId-value" +} +# A UPN can also be used as -UserId. +Move-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +``` +This example shows how to use the Move-MgUserMailFolderChildFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 0dbaa52266b345bef91eaa58940d066db654faa3 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:54 +0000 Subject: [PATCH 157/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Move-MgUserMailFolderChildFolderMessage.md-beta --- ...Move-MgUserMailFolderChildFolderMessage.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMailFolderChildFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMailFolderChildFolderMessage.md index 093355d11d5..8fe114b45bb 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMailFolderChildFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMailFolderChildFolderMessage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + DestinationId = "deleteditems" +} +# A UPN can also be used as -UserId. +Move-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Move-MgUserMailFolderChildFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From a1a05aca99d397b6c9ef7ee5087ef262610a28aa Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:54 +0000 Subject: [PATCH 158/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Move-MgUserMailFolderMessage.md-beta --- .../v1.0-beta/Move-MgUserMailFolderMessage.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMailFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMailFolderMessage.md index 093355d11d5..95da4d63458 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMailFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Move-MgUserMailFolderMessage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + DestinationId = "deleteditems" +} +# A UPN can also be used as -UserId. +Move-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Move-MgUserMailFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From be8cde35e78a3aaf724adc56075ef916a6c12895 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:57 +0000 Subject: [PATCH 159/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/New-MgUserEventAttachmentUploadSession.md-beta --- .../New-MgUserEventAttachmentUploadSession.md | 44 ++++++++++++++----- 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserEventAttachmentUploadSession.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserEventAttachmentUploadSession.md index 093355d11d5..fa387e60be3 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserEventAttachmentUploadSession.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserEventAttachmentUploadSession.md @@ -1,18 +1,38 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Create an upload session to add a large attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "flower" + Size = 3483322 + } +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserEventAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an upload session to add a large in-line attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "scenary" + Size = 7208534 + IsInline = $true + ContentId = "my_inline_picture" + } +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserEventAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From f5cf472fd6e38414e50689321aaf8e7578f1e889 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:58 +0000 Subject: [PATCH 160/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/New-MgUserEventInstanceAttachmentUploadSession.md-beta --- ...serEventInstanceAttachmentUploadSession.md | 44 ++++++++++++++----- 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserEventInstanceAttachmentUploadSession.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserEventInstanceAttachmentUploadSession.md index 093355d11d5..8924d1609a3 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserEventInstanceAttachmentUploadSession.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserEventInstanceAttachmentUploadSession.md @@ -1,18 +1,38 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Create an upload session to add a large attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "flower" + Size = 3483322 + } +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserEventInstanceAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an upload session to add a large in-line attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "scenary" + Size = 7208534 + IsInline = $true + ContentId = "my_inline_picture" + } +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserEventInstanceAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 5197f4519982559b7db63ae1c60220d0aaa5d2c7 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:58 +0000 Subject: [PATCH 161/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/New-MgUserMailFolderChildFolderMessageAttachmentUploadSession.md-beta --- ...ildFolderMessageAttachmentUploadSession.md | 44 ++++++++++++++----- 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderChildFolderMessageAttachmentUploadSession.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderChildFolderMessageAttachmentUploadSession.md index 093355d11d5..5389e66879f 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderChildFolderMessageAttachmentUploadSession.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderChildFolderMessageAttachmentUploadSession.md @@ -1,18 +1,38 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Create an upload session to add a large attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "flower" + Size = 3483322 + } +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserMailFolderChildFolderMessageAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an upload session to add a large in-line attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "scenary" + Size = 7208534 + IsInline = $true + ContentId = "my_inline_picture" + } +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserMailFolderChildFolderMessageAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 476103d600ca5af3fb37500b7de79267e840b827 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:25:59 +0000 Subject: [PATCH 162/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/New-MgUserMailFolderChildFolderMessageForward.md-beta --- ...UserMailFolderChildFolderMessageForward.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderChildFolderMessageForward.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderChildFolderMessageForward.md index 093355d11d5..f18d8d15fab 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderChildFolderMessageForward.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderChildFolderMessageForward.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +New-MgUserMessageForward -UserId $userId -MessageId $messageId +``` +This example shows how to use the New-MgUserMailFolderChildFolderMessageForward Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From e15144eda6f55fb997c6df019e6d79d1283eab72 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:00 +0000 Subject: [PATCH 163/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/New-MgUserMailFolderChildFolderMessageReply.md-beta --- ...MgUserMailFolderChildFolderMessageReply.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderChildFolderMessageReply.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderChildFolderMessageReply.md index 093355d11d5..cb4b65893fc 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderChildFolderMessageReply.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderChildFolderMessageReply.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +New-MgUserMessageReply -UserId $userId -MessageId $messageId +``` +This example shows how to use the New-MgUserMailFolderChildFolderMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From e492f2a5213339b79c7dfaa7d90b42eedaf5543a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:00 +0000 Subject: [PATCH 164/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/New-MgUserMailFolderChildFolderMessageReplyAll.md-beta --- ...serMailFolderChildFolderMessageReplyAll.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderChildFolderMessageReplyAll.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderChildFolderMessageReplyAll.md index 093355d11d5..758cb737c61 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderChildFolderMessageReplyAll.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderChildFolderMessageReplyAll.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +New-MgUserMessageReplyAll -UserId $userId -MessageId $messageId +``` +This example shows how to use the New-MgUserMailFolderChildFolderMessageReplyAll Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 51598e6ff4b390277688577008af1780d5ddc7d7 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:01 +0000 Subject: [PATCH 165/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/New-MgUserMailFolderMessageAttachmentUploadSession.md-beta --- ...ailFolderMessageAttachmentUploadSession.md | 44 ++++++++++++++----- 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderMessageAttachmentUploadSession.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderMessageAttachmentUploadSession.md index 093355d11d5..96fea451bfb 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderMessageAttachmentUploadSession.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderMessageAttachmentUploadSession.md @@ -1,18 +1,38 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Create an upload session to add a large attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "flower" + Size = 3483322 + } +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserMailFolderMessageAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an upload session to add a large in-line attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "scenary" + Size = 7208534 + IsInline = $true + ContentId = "my_inline_picture" + } +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserMailFolderMessageAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 504354ed406ded4e333a06d367711187e395f557 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:02 +0000 Subject: [PATCH 166/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/New-MgUserMailFolderMessageForward.md-beta --- .../New-MgUserMailFolderMessageForward.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderMessageForward.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderMessageForward.md index 093355d11d5..5b54feb3733 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderMessageForward.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderMessageForward.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +New-MgUserMessageForward -UserId $userId -MessageId $messageId +``` +This example shows how to use the New-MgUserMailFolderMessageForward Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 932b5abe1eaf3e210517ded432d20b9d2cf55e33 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:02 +0000 Subject: [PATCH 167/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/New-MgUserMailFolderMessageReply.md-beta --- .../New-MgUserMailFolderMessageReply.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderMessageReply.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderMessageReply.md index 093355d11d5..b5e01819a5c 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderMessageReply.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderMessageReply.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +New-MgUserMessageReply -UserId $userId -MessageId $messageId +``` +This example shows how to use the New-MgUserMailFolderMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 71237f6c940254679e1e670535df57f06411cce6 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:03 +0000 Subject: [PATCH 168/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/New-MgUserMailFolderMessageReplyAll.md-beta --- .../New-MgUserMailFolderMessageReplyAll.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderMessageReplyAll.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderMessageReplyAll.md index 093355d11d5..da05634057f 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderMessageReplyAll.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/New-MgUserMailFolderMessageReplyAll.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +New-MgUserMessageReplyAll -UserId $userId -MessageId $messageId +``` +This example shows how to use the New-MgUserMailFolderMessageReplyAll Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From b214f9f7b37b5c2f44993e6af1463b0503d96035 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:05 +0000 Subject: [PATCH 169/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Publish-MgUserDriveListContentType.md-beta --- .../Publish-MgUserDriveListContentType.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Publish-MgUserDriveListContentType.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Publish-MgUserDriveListContentType.md index 093355d11d5..8fd52d70b60 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Publish-MgUserDriveListContentType.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Publish-MgUserDriveListContentType.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Publish-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId +``` +This example shows how to use the Publish-MgUserDriveListContentType Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From a7dab2281a5f84ca676e7e401dfa502763bc39cf Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:08 +0000 Subject: [PATCH 170/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Restore-MgUserDriveItemListItemDocumentSetVersion.md-beta --- ...UserDriveItemListItemDocumentSetVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveItemListItemDocumentSetVersion.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveItemListItemDocumentSetVersion.md index 093355d11d5..80ddf586691 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveItemListItemDocumentSetVersion.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveItemListItemDocumentSetVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId +``` +This example shows how to use the Restore-MgUserDriveItemListItemDocumentSetVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 12b64e81f6dd1d6a0b1156d54d5b4c164379b651 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:08 +0000 Subject: [PATCH 171/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Restore-MgUserDriveItemListItemVersion.md-beta --- .../Restore-MgUserDriveItemListItemVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveItemListItemVersion.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveItemListItemVersion.md index 093355d11d5..be8a6f9250e 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveItemListItemVersion.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveItemListItemVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -ListItemVersionId $listItemVersionId +``` +This example shows how to use the Restore-MgUserDriveItemListItemVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From dac4a23c34357997a49c3ac3c522e6698db4367c Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:09 +0000 Subject: [PATCH 172/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Restore-MgUserDriveItemVersion.md-beta --- .../Restore-MgUserDriveItemVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveItemVersion.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveItemVersion.md index 093355d11d5..eac675e665e 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveItemVersion.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveItemVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Files +Restore-MgDriveItemVersion -DriveId $driveId -DriveItemId $driveItemId -DriveItemVersionId $driveItemVersionId +``` +This example shows how to use the Restore-MgUserDriveItemVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From df3d0c1a5e789ad3108f47696c76e80fbcb4ff8b Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:10 +0000 Subject: [PATCH 173/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Restore-MgUserDriveListItemDocumentSetVersion.md-beta --- ...e-MgUserDriveListItemDocumentSetVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveListItemDocumentSetVersion.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveListItemDocumentSetVersion.md index 093355d11d5..f9642a3a347 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveListItemDocumentSetVersion.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveListItemDocumentSetVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId +``` +This example shows how to use the Restore-MgUserDriveListItemDocumentSetVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 1ad19f0f8dea8f134c0dbd1fc45a73e274159e8c Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:10 +0000 Subject: [PATCH 174/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Restore-MgUserDriveListItemVersion.md-beta --- .../Restore-MgUserDriveListItemVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveListItemVersion.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveListItemVersion.md index 093355d11d5..0eef97795b3 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveListItemVersion.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveListItemVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -ListItemVersionId $listItemVersionId +``` +This example shows how to use the Restore-MgUserDriveListItemVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From f281b5404c36dbc3965861470724bb09a065bd5f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:11 +0000 Subject: [PATCH 175/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Restore-MgUserDriveRootListItemDocumentSetVersion.md-beta --- ...UserDriveRootListItemDocumentSetVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveRootListItemDocumentSetVersion.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveRootListItemDocumentSetVersion.md index 093355d11d5..9d6fbba489a 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveRootListItemDocumentSetVersion.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveRootListItemDocumentSetVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId +``` +This example shows how to use the Restore-MgUserDriveRootListItemDocumentSetVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 8e1ff04863b1582021d7baae2ac3138af32edd79 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:12 +0000 Subject: [PATCH 176/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Restore-MgUserDriveRootListItemVersion.md-beta --- .../Restore-MgUserDriveRootListItemVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveRootListItemVersion.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveRootListItemVersion.md index 093355d11d5..95457d40c66 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveRootListItemVersion.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveRootListItemVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -ListItemVersionId $listItemVersionId +``` +This example shows how to use the Restore-MgUserDriveRootListItemVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From c9167d6e8d64541c1083de1b57229b1fe0df4739 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:12 +0000 Subject: [PATCH 177/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Restore-MgUserDriveRootVersion.md-beta --- .../Restore-MgUserDriveRootVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveRootVersion.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveRootVersion.md index 093355d11d5..0c25ae4e992 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveRootVersion.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Restore-MgUserDriveRootVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Files +Restore-MgDriveItemVersion -DriveId $driveId -DriveItemId $driveItemId -DriveItemVersionId $driveItemVersionId +``` +This example shows how to use the Restore-MgUserDriveRootVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From ace2e9bfcbe52c1c8b372c85d1d0acd1ca637793 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:13 +0000 Subject: [PATCH 178/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Send-MgUserChatActivityNotification.md-beta --- .../Send-MgUserChatActivityNotification.md | 127 ++++++++++++++++-- 1 file changed, 115 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserChatActivityNotification.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserChatActivityNotification.md index 093355d11d5..01706ed6638 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserChatActivityNotification.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserChatActivityNotification.md @@ -1,18 +1,121 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Notify a user about a task created in a chat -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/v1.0/chats/{chatId}" + } + ActivityType = "taskCreated" + PreviewText = @{ + Content = "New Task Created" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + TemplateParameters = @( + @{ + Name = "taskId" + Value = "Task 12322" + } + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Send-MgChatActivityNotification -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the Send-MgUserChatActivityNotification Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Notify a user about an approval needed in a chat message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/v1.0/chats/{chatId}/messages/{messageId}" + } + ActivityType = "approvalRequired" + PreviewText = @{ + Content = "Deployment requires your approval" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + TemplateParameters = @( + @{ + Name = "approvalTaskId" + Value = "2020AAGGTAPP" + } + ) +} +Send-MgChatActivityNotification -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the Send-MgUserChatActivityNotification Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Notify a user about an approval needed in a chat message using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/v1.0/chats/{chatId}/messages/{messageId}" + } + ActivityType = "approvalRequired" + PreviewText = @{ + Content = "Deployment requires your approval" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "jacob@contoso.com" + } + TemplateParameters = @( + @{ + Name = "approvalTaskId" + Value = "2020AAGGTAPP" + } + ) +} + +Send-MgChatActivityNotification -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the Send-MgUserChatActivityNotification Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Notify a user about an event in relation to a chat + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + Topic = @{ + Source = "text" + Value = "Deployment Approvals Channel" + WebUrl = "https://teams.microsoft.com/l/message/19:448cfd2ac2a7490a9084a9ed14cttr78c@thread.skype/1605223780000?tenantId=c8b1bf45-3834-4ecf-971a-b4c755ee677d&groupId=d4c2a937-f097-435a-bc91-5c1683ca7245&parentMessageId=1605223771864&teamName=Approvals&channelName=Azure%20DevOps&createdTime=1605223780000" + } + ActivityType = "deploymentApprovalRequired" + PreviewText = @{ + Content = "New deployment requires your approval" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + TemplateParameters = @( + @{ + Name = "deploymentId" + Value = "6788662" + } + ) +} + +Send-MgChatActivityNotification -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the Send-MgUserChatActivityNotification Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 0ec335a0de41078f960ad73d16d44f8eae528988 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:14 +0000 Subject: [PATCH 179/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Send-MgUserMailFolderChildFolderMessage.md-beta --- ...Send-MgUserMailFolderChildFolderMessage.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserMailFolderChildFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserMailFolderChildFolderMessage.md index 093355d11d5..c403d03f08a 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserMailFolderChildFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserMailFolderChildFolderMessage.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Send an existing draft message -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Send-MgUserMessage -UserId $userId -MessageId $messageId +``` +This example shows how to use the Send-MgUserMailFolderChildFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 5a443cd177d30acc591695705ff39252eda7f055 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:15 +0000 Subject: [PATCH 180/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Send-MgUserMailFolderMessage.md-beta --- .../v1.0-beta/Send-MgUserMailFolderMessage.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserMailFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserMailFolderMessage.md index 093355d11d5..39ab51b6b42 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserMailFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Send-MgUserMailFolderMessage.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Send an existing draft message -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Send-MgUserMessage -UserId $userId -MessageId $messageId +``` +This example shows how to use the Send-MgUserMailFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 7595fad071ce70d63e69f55e0c913c114bc19889 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:20 +0000 Subject: [PATCH 181/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Stop-MgUserEventInstance.md-beta --- .../v1.0-beta/Stop-MgUserEventInstance.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Stop-MgUserEventInstance.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Stop-MgUserEventInstance.md index 093355d11d5..79ec1599496 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Stop-MgUserEventInstance.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Stop-MgUserEventInstance.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "Cancelling for this week due to all hands" +} +# A UPN can also be used as -UserId. +Stop-MgUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Stop-MgUserEventInstance Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 9411d7cad1bdfc63fb648e7d393516fd318a6774 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:22 +0000 Subject: [PATCH 182/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Test-MgUserProperty.md-beta --- .../examples/v1.0-beta/Test-MgUserProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Test-MgUserProperty.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Test-MgUserProperty.md index 093355d11d5..9736bc8d879 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Test-MgUserProperty.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Test-MgUserProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgUserProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 3928d4dc942319949a375bd3cf80bd71c0428622 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:23 +0000 Subject: [PATCH 183/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Unpublish-MgUserDriveListContentType.md-beta --- .../Unpublish-MgUserDriveListContentType.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Unpublish-MgUserDriveListContentType.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Unpublish-MgUserDriveListContentType.md index 093355d11d5..ff66e2ef2bc 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Unpublish-MgUserDriveListContentType.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Unpublish-MgUserDriveListContentType.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Unpublish-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId +``` +This example shows how to use the Unpublish-MgUserDriveListContentType Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From b35a85d9c3d68e6ab6108b4bbc5174673f0c3ebf Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:26:24 +0000 Subject: [PATCH 184/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0-beta/Update-MgUserChatInstalledApp.md-beta --- .../Update-MgUserChatInstalledApp.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Update-MgUserChatInstalledApp.md b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Update-MgUserChatInstalledApp.md index 093355d11d5..122cedeb49a 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0-beta/Update-MgUserChatInstalledApp.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0-beta/Update-MgUserChatInstalledApp.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Teams +Update-MgChatInstalledApp -ChatId $chatId -TeamsAppInstallationId $teamsAppInstallationId +``` +This example shows how to use the Update-MgUserChatInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From a683a4a4b13e9a33fb1d0064b039a220610fe408 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:29:17 +0000 Subject: [PATCH 185/388] Examples update on D:\a\_work\1\s\tools\..\src\Education\Education\examples\v1.0-beta/Invoke-MgReturnEducationMeAssignmentSubmission.md-beta --- ...MgReturnEducationMeAssignmentSubmission.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Education/Education/examples/v1.0-beta/Invoke-MgReturnEducationMeAssignmentSubmission.md b/src/Education/Education/examples/v1.0-beta/Invoke-MgReturnEducationMeAssignmentSubmission.md index 093355d11d5..1a389760868 100644 --- a/src/Education/Education/examples/v1.0-beta/Invoke-MgReturnEducationMeAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0-beta/Invoke-MgReturnEducationMeAssignmentSubmission.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Education +Invoke-MgReturnEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the Invoke-MgReturnEducationMeAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From a6bc22b68867a773910ca02a42b8d2de81a2a798 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:29:18 +0000 Subject: [PATCH 186/388] Examples update on D:\a\_work\1\s\tools\..\src\Education\Education\examples\v1.0-beta/Invoke-MgReturnEducationUserAssignmentSubmission.md-beta --- ...ReturnEducationUserAssignmentSubmission.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Education/Education/examples/v1.0-beta/Invoke-MgReturnEducationUserAssignmentSubmission.md b/src/Education/Education/examples/v1.0-beta/Invoke-MgReturnEducationUserAssignmentSubmission.md index 093355d11d5..744eef9a72a 100644 --- a/src/Education/Education/examples/v1.0-beta/Invoke-MgReturnEducationUserAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0-beta/Invoke-MgReturnEducationUserAssignmentSubmission.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Education +Invoke-MgReturnEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the Invoke-MgReturnEducationUserAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 3a1d2866652585fa1e349907255e50a77856facb Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:29:18 +0000 Subject: [PATCH 187/388] Examples update on D:\a\_work\1\s\tools\..\src\Education\Education\examples\v1.0-beta/Invoke-MgUnsubmitEducationMeAssignmentSubmission.md-beta --- ...UnsubmitEducationMeAssignmentSubmission.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Education/Education/examples/v1.0-beta/Invoke-MgUnsubmitEducationMeAssignmentSubmission.md b/src/Education/Education/examples/v1.0-beta/Invoke-MgUnsubmitEducationMeAssignmentSubmission.md index 093355d11d5..44f5f342e35 100644 --- a/src/Education/Education/examples/v1.0-beta/Invoke-MgUnsubmitEducationMeAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0-beta/Invoke-MgUnsubmitEducationMeAssignmentSubmission.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Education +Invoke-MgUnsubmitEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the Invoke-MgUnsubmitEducationMeAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 2ac3ae7b0fe506985b26bbc501e7e9cb513d6ebe Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:29:19 +0000 Subject: [PATCH 188/388] Examples update on D:\a\_work\1\s\tools\..\src\Education\Education\examples\v1.0-beta/Invoke-MgUnsubmitEducationUserAssignmentSubmission.md-beta --- ...submitEducationUserAssignmentSubmission.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Education/Education/examples/v1.0-beta/Invoke-MgUnsubmitEducationUserAssignmentSubmission.md b/src/Education/Education/examples/v1.0-beta/Invoke-MgUnsubmitEducationUserAssignmentSubmission.md index 093355d11d5..a655241fe5d 100644 --- a/src/Education/Education/examples/v1.0-beta/Invoke-MgUnsubmitEducationUserAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0-beta/Invoke-MgUnsubmitEducationUserAssignmentSubmission.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Education +Invoke-MgUnsubmitEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the Invoke-MgUnsubmitEducationUserAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 0d3c1ab22fb9a6c262cb71de8297be70e76dcb56 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:29:23 +0000 Subject: [PATCH 189/388] Examples update on D:\a\_work\1\s\tools\..\src\Education\Education\examples\v1.0-beta/Publish-MgEducationMeAssignment.md-beta --- .../Publish-MgEducationMeAssignment.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Education/Education/examples/v1.0-beta/Publish-MgEducationMeAssignment.md b/src/Education/Education/examples/v1.0-beta/Publish-MgEducationMeAssignment.md index 093355d11d5..cc81d88e4c6 100644 --- a/src/Education/Education/examples/v1.0-beta/Publish-MgEducationMeAssignment.md +++ b/src/Education/Education/examples/v1.0-beta/Publish-MgEducationMeAssignment.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Education +Publish-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +``` +This example shows how to use the Publish-MgEducationMeAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 9f79c88f89e7cb508066520a8c102ccb1c96df7e Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:29:24 +0000 Subject: [PATCH 190/388] Examples update on D:\a\_work\1\s\tools\..\src\Education\Education\examples\v1.0-beta/Publish-MgEducationUserAssignment.md-beta --- .../Publish-MgEducationUserAssignment.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Education/Education/examples/v1.0-beta/Publish-MgEducationUserAssignment.md b/src/Education/Education/examples/v1.0-beta/Publish-MgEducationUserAssignment.md index 093355d11d5..ac1664e61a4 100644 --- a/src/Education/Education/examples/v1.0-beta/Publish-MgEducationUserAssignment.md +++ b/src/Education/Education/examples/v1.0-beta/Publish-MgEducationUserAssignment.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Education +Publish-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +``` +This example shows how to use the Publish-MgEducationUserAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From d1b6a3515e0c5a040ab89e8f12427e5ec3428e0e Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:29:29 +0000 Subject: [PATCH 191/388] Examples update on D:\a\_work\1\s\tools\..\src\Education\Education\examples\v1.0-beta/Submit-MgEducationMeAssignmentSubmission.md-beta --- ...ubmit-MgEducationMeAssignmentSubmission.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Education/Education/examples/v1.0-beta/Submit-MgEducationMeAssignmentSubmission.md b/src/Education/Education/examples/v1.0-beta/Submit-MgEducationMeAssignmentSubmission.md index 093355d11d5..4a1e08d8fe6 100644 --- a/src/Education/Education/examples/v1.0-beta/Submit-MgEducationMeAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0-beta/Submit-MgEducationMeAssignmentSubmission.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Education +Submit-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the Submit-MgEducationMeAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 6fc6de3a9974ebf96f8add4eb4e25c22a566d13a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:29:29 +0000 Subject: [PATCH 192/388] Examples update on D:\a\_work\1\s\tools\..\src\Education\Education\examples\v1.0-beta/Submit-MgEducationUserAssignmentSubmission.md-beta --- ...mit-MgEducationUserAssignmentSubmission.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Education/Education/examples/v1.0-beta/Submit-MgEducationUserAssignmentSubmission.md b/src/Education/Education/examples/v1.0-beta/Submit-MgEducationUserAssignmentSubmission.md index 093355d11d5..418ef34f455 100644 --- a/src/Education/Education/examples/v1.0-beta/Submit-MgEducationUserAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0-beta/Submit-MgEducationUserAssignmentSubmission.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Education +Submit-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the Submit-MgEducationUserAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From fa7f8be1f65b407ff0c1cee272893e7f247b708d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:30:36 +0000 Subject: [PATCH 193/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.SignIns\Identity.SignIns\examples\v1.0-beta/Get-MgPolicyFeatureRolloutPolicyApplyToById.md-beta --- ...MgPolicyFeatureRolloutPolicyApplyToById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyFeatureRolloutPolicyApplyToById.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyFeatureRolloutPolicyApplyToById.md index 093355d11d5..09b2e72d3bb 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyFeatureRolloutPolicyApplyToById.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyFeatureRolloutPolicyApplyToById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgPolicyFeatureRolloutPolicyApplyToById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From cd9df971a66a0dc9ecf3702fe342ac7c0a5658ea Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:31:09 +0000 Subject: [PATCH 194/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.SignIns\Identity.SignIns\examples\v1.0-beta/Set-MgIdentityB2XUserFlowUserAttributeAssignmentOrder.md-beta --- ...B2XUserFlowUserAttributeAssignmentOrder.md | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Set-MgIdentityB2XUserFlowUserAttributeAssignmentOrder.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Set-MgIdentityB2XUserFlowUserAttributeAssignmentOrder.md index 093355d11d5..cdf8fae776a 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Set-MgIdentityB2XUserFlowUserAttributeAssignmentOrder.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Set-MgIdentityB2XUserFlowUserAttributeAssignmentOrder.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Identity.SignIns -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + NewAssignmentOrder = @{ + Order = @( + "City" + "extension_GUID_ShoeSize" + ) + } +} +Set-MgIdentityB2XUserFlowUserAttributeAssignmentOrder -B2xIdentityUserFlowId $b2xIdentityUserFlowId -BodyParameter $params +``` +This example shows how to use the Set-MgIdentityB2XUserFlowUserAttributeAssignmentOrder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 847520fcd85a0e9df6b37c0f231993cd90bcbea2 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:31:10 +0000 Subject: [PATCH 195/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.SignIns\Identity.SignIns\examples\v1.0-beta/Test-MgPolicyFeatureRolloutPolicyApplyToProperty.md-beta --- ...licyFeatureRolloutPolicyApplyToProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Test-MgPolicyFeatureRolloutPolicyApplyToProperty.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Test-MgPolicyFeatureRolloutPolicyApplyToProperty.md index 093355d11d5..dd1ecf2a5c8 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Test-MgPolicyFeatureRolloutPolicyApplyToProperty.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Test-MgPolicyFeatureRolloutPolicyApplyToProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgPolicyFeatureRolloutPolicyApplyToProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 57dc1fb3c2a8b3e81aabe136a82fe21ba4cf2608 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:33:11 +0000 Subject: [PATCH 196/388] Examples update on D:\a\_work\1\s\tools\..\src\Files\Files\examples\v1.0/Restore-MgDriveListItemVersion.md-v1.0 --- .../v1.0/Restore-MgDriveListItemVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Files/Files/examples/v1.0/Restore-MgDriveListItemVersion.md b/src/Files/Files/examples/v1.0/Restore-MgDriveListItemVersion.md index 093355d11d5..ea2b1d02022 100644 --- a/src/Files/Files/examples/v1.0/Restore-MgDriveListItemVersion.md +++ b/src/Files/Files/examples/v1.0/Restore-MgDriveListItemVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -ListItemVersionId $listItemVersionId +``` +This example shows how to use the Restore-MgDriveListItemVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 43f3717503953751df5cb9d7847df0c92edef273 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:33:11 +0000 Subject: [PATCH 197/388] Examples update on D:\a\_work\1\s\tools\..\src\Files\Files\examples\v1.0/Restore-MgShareListItemVersion.md-v1.0 --- .../v1.0/Restore-MgShareListItemVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Files/Files/examples/v1.0/Restore-MgShareListItemVersion.md b/src/Files/Files/examples/v1.0/Restore-MgShareListItemVersion.md index 093355d11d5..d3e1e042285 100644 --- a/src/Files/Files/examples/v1.0/Restore-MgShareListItemVersion.md +++ b/src/Files/Files/examples/v1.0/Restore-MgShareListItemVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -ListItemVersionId $listItemVersionId +``` +This example shows how to use the Restore-MgShareListItemVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From db301cf69ed23c58dcbf293b2ed014a5a6d371dc Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:33:54 +0000 Subject: [PATCH 198/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Add-MgGroupDriveListContentTypeCopy.md-v1.0 --- .../Add-MgGroupDriveListContentTypeCopy.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Add-MgGroupDriveListContentTypeCopy.md b/src/Groups/Groups/examples/v1.0/Add-MgGroupDriveListContentTypeCopy.md index 093355d11d5..20ef36cf54b 100644 --- a/src/Groups/Groups/examples/v1.0/Add-MgGroupDriveListContentTypeCopy.md +++ b/src/Groups/Groups/examples/v1.0/Add-MgGroupDriveListContentTypeCopy.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" +} +Add-MgSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgGroupDriveListContentTypeCopy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 5c3c36938731327c80b13562f839762934cb8bda Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:33:55 +0000 Subject: [PATCH 199/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Add-MgGroupDriveListContentTypeCopyFromContentTypeHub.md-v1.0 --- ...veListContentTypeCopyFromContentTypeHub.md | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Add-MgGroupDriveListContentTypeCopyFromContentTypeHub.md b/src/Groups/Groups/examples/v1.0/Add-MgGroupDriveListContentTypeCopyFromContentTypeHub.md index 093355d11d5..d8e9f3405d8 100644 --- a/src/Groups/Groups/examples/v1.0/Add-MgGroupDriveListContentTypeCopyFromContentTypeHub.md +++ b/src/Groups/Groups/examples/v1.0/Add-MgGroupDriveListContentTypeCopyFromContentTypeHub.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Synchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgGroupDriveListContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Asynchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgGroupDriveListContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 9f4e0ce29cddfb2a9106690dbaf063ca311d4f50 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:33:56 +0000 Subject: [PATCH 200/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Add-MgGroupSiteContentTypeCopy.md-v1.0 --- .../v1.0/Add-MgGroupSiteContentTypeCopy.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Add-MgGroupSiteContentTypeCopy.md b/src/Groups/Groups/examples/v1.0/Add-MgGroupSiteContentTypeCopy.md index 093355d11d5..786bb789ba6 100644 --- a/src/Groups/Groups/examples/v1.0/Add-MgGroupSiteContentTypeCopy.md +++ b/src/Groups/Groups/examples/v1.0/Add-MgGroupSiteContentTypeCopy.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" +} +Add-MgSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgGroupSiteContentTypeCopy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 6d926669d60772478a568d5fbff5a32dd9dc9d8d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:33:57 +0000 Subject: [PATCH 201/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Add-MgGroupSiteContentTypeCopyFromContentTypeHub.md-v1.0 --- ...upSiteContentTypeCopyFromContentTypeHub.md | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Add-MgGroupSiteContentTypeCopyFromContentTypeHub.md b/src/Groups/Groups/examples/v1.0/Add-MgGroupSiteContentTypeCopyFromContentTypeHub.md index 093355d11d5..df305c5cb98 100644 --- a/src/Groups/Groups/examples/v1.0/Add-MgGroupSiteContentTypeCopyFromContentTypeHub.md +++ b/src/Groups/Groups/examples/v1.0/Add-MgGroupSiteContentTypeCopyFromContentTypeHub.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Synchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgGroupSiteContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Asynchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgGroupSiteContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 3a8d0b05565637701f6a53c80bec7b3d16dc6bd7 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:33:57 +0000 Subject: [PATCH 202/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Add-MgGroupSiteListContentTypeCopy.md-v1.0 --- .../Add-MgGroupSiteListContentTypeCopy.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Add-MgGroupSiteListContentTypeCopy.md b/src/Groups/Groups/examples/v1.0/Add-MgGroupSiteListContentTypeCopy.md index 093355d11d5..fb73eacda86 100644 --- a/src/Groups/Groups/examples/v1.0/Add-MgGroupSiteListContentTypeCopy.md +++ b/src/Groups/Groups/examples/v1.0/Add-MgGroupSiteListContentTypeCopy.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" +} +Add-MgSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgGroupSiteListContentTypeCopy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 4da512354122c09b05accca731310f991b7840d0 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:33:58 +0000 Subject: [PATCH 203/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Add-MgGroupSiteListContentTypeCopyFromContentTypeHub.md-v1.0 --- ...teListContentTypeCopyFromContentTypeHub.md | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Add-MgGroupSiteListContentTypeCopyFromContentTypeHub.md b/src/Groups/Groups/examples/v1.0/Add-MgGroupSiteListContentTypeCopyFromContentTypeHub.md index 093355d11d5..1723e67ff68 100644 --- a/src/Groups/Groups/examples/v1.0/Add-MgGroupSiteListContentTypeCopyFromContentTypeHub.md +++ b/src/Groups/Groups/examples/v1.0/Add-MgGroupSiteListContentTypeCopyFromContentTypeHub.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Synchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgGroupSiteListContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Asynchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgGroupSiteListContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From f94be4f78cf3353a7b2db13a93e8d1cb1bf066e7 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:33:58 +0000 Subject: [PATCH 204/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Confirm-MgGroupMemberGroup.md-v1.0 --- .../v1.0/Confirm-MgGroupMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Confirm-MgGroupMemberGroup.md b/src/Groups/Groups/examples/v1.0/Confirm-MgGroupMemberGroup.md index 093355d11d5..abb97f1cdf6 100644 --- a/src/Groups/Groups/examples/v1.0/Confirm-MgGroupMemberGroup.md +++ b/src/Groups/Groups/examples/v1.0/Confirm-MgGroupMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgGroupMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgGroupMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 96a37580a0a88339e69a3457372a9f29db0f76bf Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:33:59 +0000 Subject: [PATCH 205/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Confirm-MgGroupPermissionGrantMemberGroup.md-v1.0 --- ...nfirm-MgGroupPermissionGrantMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Confirm-MgGroupPermissionGrantMemberGroup.md b/src/Groups/Groups/examples/v1.0/Confirm-MgGroupPermissionGrantMemberGroup.md index 093355d11d5..ad70b2f1159 100644 --- a/src/Groups/Groups/examples/v1.0/Confirm-MgGroupPermissionGrantMemberGroup.md +++ b/src/Groups/Groups/examples/v1.0/Confirm-MgGroupPermissionGrantMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgGroupPermissionGrantMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgGroupPermissionGrantMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 74d744db0b4f47b91040920c2aaba54f21f79a5f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:00 +0000 Subject: [PATCH 206/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Copy-MgGroupDriveListContentTypeToDefaultContentLocation.md-v1.0 --- ...ListContentTypeToDefaultContentLocation.md | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Copy-MgGroupDriveListContentTypeToDefaultContentLocation.md b/src/Groups/Groups/examples/v1.0/Copy-MgGroupDriveListContentTypeToDefaultContentLocation.md index 093355d11d5..8d619750093 100644 --- a/src/Groups/Groups/examples/v1.0/Copy-MgGroupDriveListContentTypeToDefaultContentLocation.md +++ b/src/Groups/Groups/examples/v1.0/Copy-MgGroupDriveListContentTypeToDefaultContentLocation.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SourceFile = @{ + SharepointIds = @{ + ListId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" + ListItemId = "2" + } + } + DestinationFileName = "newname.txt" +} +Copy-MgSiteContentTypeToDefaultContentLocation -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +``` +This example shows how to use the Copy-MgGroupDriveListContentTypeToDefaultContentLocation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 3847d1d526e8e7506ceb2e2ea73be905980ec9fb Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:01 +0000 Subject: [PATCH 207/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Copy-MgGroupOnenoteNotebook.md-v1.0 --- .../v1.0/Copy-MgGroupOnenoteNotebook.md | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Copy-MgGroupOnenoteNotebook.md b/src/Groups/Groups/examples/v1.0/Copy-MgGroupOnenoteNotebook.md index 093355d11d5..823360dbfc2 100644 --- a/src/Groups/Groups/examples/v1.0/Copy-MgGroupOnenoteNotebook.md +++ b/src/Groups/Groups/examples/v1.0/Copy-MgGroupOnenoteNotebook.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + GroupId = "groupId-value" + RenameAs = "renameAs-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenoteNotebook -UserId $userId -NotebookId $notebookId -BodyParameter $params +``` +This example shows how to use the Copy-MgGroupOnenoteNotebook Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From d462f72e9045282f98db1f7e10fddbf6e22d108e Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:01 +0000 Subject: [PATCH 208/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Copy-MgGroupOnenotePageToSection.md-v1.0 --- .../v1.0/Copy-MgGroupOnenotePageToSection.md | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Copy-MgGroupOnenotePageToSection.md b/src/Groups/Groups/examples/v1.0/Copy-MgGroupOnenotePageToSection.md index 093355d11d5..5b71558b3a2 100644 --- a/src/Groups/Groups/examples/v1.0/Copy-MgGroupOnenotePageToSection.md +++ b/src/Groups/Groups/examples/v1.0/Copy-MgGroupOnenotePageToSection.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Id = "id-value" + GroupId = "groupId-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenotePageToSection -UserId $userId -OnenotePageId $onenotePageId -BodyParameter $params +``` +This example shows how to use the Copy-MgGroupOnenotePageToSection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 40a865fb4182d151b2f44e52d732f92f71ca76a5 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:02 +0000 Subject: [PATCH 209/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Copy-MgGroupOnenoteSectionToNotebook.md-v1.0 --- .../Copy-MgGroupOnenoteSectionToNotebook.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Copy-MgGroupOnenoteSectionToNotebook.md b/src/Groups/Groups/examples/v1.0/Copy-MgGroupOnenoteSectionToNotebook.md index 093355d11d5..3768165ad57 100644 --- a/src/Groups/Groups/examples/v1.0/Copy-MgGroupOnenoteSectionToNotebook.md +++ b/src/Groups/Groups/examples/v1.0/Copy-MgGroupOnenoteSectionToNotebook.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Id = "id-value" + GroupId = "groupId-value" + RenameAs = "renameAs-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenoteSectionToNotebook -UserId $userId -OnenoteSectionId $onenoteSectionId -BodyParameter $params +``` +This example shows how to use the Copy-MgGroupOnenoteSectionToNotebook Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 28fb0b51db0094ecab0f7363812cdc69e7f1c61f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:03 +0000 Subject: [PATCH 210/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Copy-MgGroupOnenoteSectionToSectionGroup.md-v1.0 --- ...opy-MgGroupOnenoteSectionToSectionGroup.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Copy-MgGroupOnenoteSectionToSectionGroup.md b/src/Groups/Groups/examples/v1.0/Copy-MgGroupOnenoteSectionToSectionGroup.md index 093355d11d5..28e4680d161 100644 --- a/src/Groups/Groups/examples/v1.0/Copy-MgGroupOnenoteSectionToSectionGroup.md +++ b/src/Groups/Groups/examples/v1.0/Copy-MgGroupOnenoteSectionToSectionGroup.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Id = "id-value" + GroupId = "groupId-value" + RenameAs = "renameAs-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenoteSectionToSectionGroup -UserId $userId -OnenoteSectionId $onenoteSectionId -BodyParameter $params +``` +This example shows how to use the Copy-MgGroupOnenoteSectionToSectionGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 56824d8e0e7ae2965a6a2ad7955cc54dbd4aeb89 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:03 +0000 Subject: [PATCH 211/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Copy-MgGroupSiteContentTypeToDefaultContentLocation.md-v1.0 --- ...SiteContentTypeToDefaultContentLocation.md | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Copy-MgGroupSiteContentTypeToDefaultContentLocation.md b/src/Groups/Groups/examples/v1.0/Copy-MgGroupSiteContentTypeToDefaultContentLocation.md index 093355d11d5..c909beda839 100644 --- a/src/Groups/Groups/examples/v1.0/Copy-MgGroupSiteContentTypeToDefaultContentLocation.md +++ b/src/Groups/Groups/examples/v1.0/Copy-MgGroupSiteContentTypeToDefaultContentLocation.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SourceFile = @{ + SharepointIds = @{ + ListId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" + ListItemId = "2" + } + } + DestinationFileName = "newname.txt" +} +Copy-MgSiteContentTypeToDefaultContentLocation -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +``` +This example shows how to use the Copy-MgGroupSiteContentTypeToDefaultContentLocation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 2ba4b513c6acc93043287815fde4aa001ce2c4a3 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:04 +0000 Subject: [PATCH 212/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Copy-MgGroupSiteListContentTypeToDefaultContentLocation.md-v1.0 --- ...ListContentTypeToDefaultContentLocation.md | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Copy-MgGroupSiteListContentTypeToDefaultContentLocation.md b/src/Groups/Groups/examples/v1.0/Copy-MgGroupSiteListContentTypeToDefaultContentLocation.md index 093355d11d5..06e5517fe09 100644 --- a/src/Groups/Groups/examples/v1.0/Copy-MgGroupSiteListContentTypeToDefaultContentLocation.md +++ b/src/Groups/Groups/examples/v1.0/Copy-MgGroupSiteListContentTypeToDefaultContentLocation.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SourceFile = @{ + SharepointIds = @{ + ListId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" + ListItemId = "2" + } + } + DestinationFileName = "newname.txt" +} +Copy-MgSiteContentTypeToDefaultContentLocation -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +``` +This example shows how to use the Copy-MgGroupSiteListContentTypeToDefaultContentLocation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 9935231b6df8b59b2911f5ea2fb5be334358f03b Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:04 +0000 Subject: [PATCH 213/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Get-MgGroupById.md-v1.0 --- .../Groups/examples/v1.0/Get-MgGroupById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupById.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupById.md index 093355d11d5..93632a147f1 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupById.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgGroupById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 8be7aecbb3f328f2202fce4b8a082866067f45bc Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:05 +0000 Subject: [PATCH 214/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Get-MgGroupCalendarSchedule.md-v1.0 --- .../v1.0/Get-MgGroupCalendarSchedule.md | 38 +++++++++++-------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupCalendarSchedule.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupCalendarSchedule.md index 093355d11d5..a116df3befa 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupCalendarSchedule.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupCalendarSchedule.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Schedules = @( + "adelev@contoso.onmicrosoft.com" + "meganb@contoso.onmicrosoft.com" + ) + StartTime = @{ + DateTime = "2019-03-15T09:00:00" + TimeZone = "Pacific Standard Time" + } + EndTime = @{ + DateTime = "2019-03-15T18:00:00" + TimeZone = "Pacific Standard Time" + } + AvailabilityViewInterval = 60 +} +# A UPN can also be used as -UserId. +Get-MgUserDefaultCalendarSchedule -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupCalendarSchedule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 37f9e92653e53d4650d30f497a2dd5aa33cba42d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:08 +0000 Subject: [PATCH 215/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Get-MgGroupMemberGroup.md-v1.0 --- .../examples/v1.0/Get-MgGroupMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupMemberGroup.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupMemberGroup.md index 093355d11d5..5b701bf01d4 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupMemberGroup.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 5491b64e84d5d6640ab687b1676355e67911bfa5 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:09 +0000 Subject: [PATCH 216/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Get-MgGroupMemberObject.md-v1.0 --- .../examples/v1.0/Get-MgGroupMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupMemberObject.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupMemberObject.md index 093355d11d5..3f17a303441 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupMemberObject.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From dfe29b305e1dfbc8ed29d39d42fa5c56ad5a9b43 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:10 +0000 Subject: [PATCH 217/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Get-MgGroupOnenoteNotebookFromWebUrl.md-v1.0 --- .../Get-MgGroupOnenoteNotebookFromWebUrl.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupOnenoteNotebookFromWebUrl.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupOnenoteNotebookFromWebUrl.md index 093355d11d5..986aea89529 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupOnenoteNotebookFromWebUrl.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupOnenoteNotebookFromWebUrl.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + WebUrl = "webUrl value" +} +# A UPN can also be used as -UserId. +Get-MgUserOnenoteNotebookFromWebUrl -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupOnenoteNotebookFromWebUrl Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From b1c4cc48db9579595286b147101d91451670538d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:11 +0000 Subject: [PATCH 218/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Get-MgGroupPermissionGrantMemberGroup.md-v1.0 --- .../Get-MgGroupPermissionGrantMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupPermissionGrantMemberGroup.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupPermissionGrantMemberGroup.md index 093355d11d5..36c41ab2509 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupPermissionGrantMemberGroup.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupPermissionGrantMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupPermissionGrantMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupPermissionGrantMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 631539aa96ce442b920fc783aae2463ac7d71881 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:11 +0000 Subject: [PATCH 219/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Get-MgGroupPermissionGrantMemberObject.md-v1.0 --- .../Get-MgGroupPermissionGrantMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupPermissionGrantMemberObject.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupPermissionGrantMemberObject.md index 093355d11d5..fbda4de79dd 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupPermissionGrantMemberObject.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupPermissionGrantMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgGroupPermissionGrantMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From e7bdc813bc87bebd51c67267134919450266d8a8 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:14 +0000 Subject: [PATCH 220/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Grant-MgGroupDriveItemPermission.md-v1.0 --- .../v1.0/Grant-MgGroupDriveItemPermission.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Grant-MgGroupDriveItemPermission.md b/src/Groups/Groups/examples/v1.0/Grant-MgGroupDriveItemPermission.md index 093355d11d5..4bc44b3421f 100644 --- a/src/Groups/Groups/examples/v1.0/Grant-MgGroupDriveItemPermission.md +++ b/src/Groups/Groups/examples/v1.0/Grant-MgGroupDriveItemPermission.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Recipients = @( + @{ + Email = "john@contoso.com" + } + @{ + Email = "ryan@external.com" + } + ) + Roles = @( + "read" + ) +} +Grant-MgSharePermission -SharedDriveItemId $sharedDriveItemId -BodyParameter $params +``` +This example shows how to use the Grant-MgGroupDriveItemPermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 325a439fb7728e46b3fa02775382a1cd1da465c3 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:14 +0000 Subject: [PATCH 221/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Grant-MgGroupDriveRootPermission.md-v1.0 --- .../v1.0/Grant-MgGroupDriveRootPermission.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Grant-MgGroupDriveRootPermission.md b/src/Groups/Groups/examples/v1.0/Grant-MgGroupDriveRootPermission.md index 093355d11d5..37dcac81bff 100644 --- a/src/Groups/Groups/examples/v1.0/Grant-MgGroupDriveRootPermission.md +++ b/src/Groups/Groups/examples/v1.0/Grant-MgGroupDriveRootPermission.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Recipients = @( + @{ + Email = "john@contoso.com" + } + @{ + Email = "ryan@external.com" + } + ) + Roles = @( + "read" + ) +} +Grant-MgSharePermission -SharedDriveItemId $sharedDriveItemId -BodyParameter $params +``` +This example shows how to use the Grant-MgGroupDriveRootPermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From c091325dc2ceebd871a32dcb2700181d2b8e87e7 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:15 +0000 Subject: [PATCH 222/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Grant-MgGroupSitePermission.md-v1.0 --- .../v1.0/Grant-MgGroupSitePermission.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Grant-MgGroupSitePermission.md b/src/Groups/Groups/examples/v1.0/Grant-MgGroupSitePermission.md index 093355d11d5..7b5b1efe4c4 100644 --- a/src/Groups/Groups/examples/v1.0/Grant-MgGroupSitePermission.md +++ b/src/Groups/Groups/examples/v1.0/Grant-MgGroupSitePermission.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Recipients = @( + @{ + Email = "john@contoso.com" + } + @{ + Email = "ryan@external.com" + } + ) + Roles = @( + "read" + ) +} +Grant-MgSharePermission -SharedDriveItemId $sharedDriveItemId -BodyParameter $params +``` +This example shows how to use the Grant-MgGroupSitePermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 7394bf4da59994e0ef12532e8bd0ddacc9d2d56f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:15 +0000 Subject: [PATCH 223/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgAcceptGroupCalendarEvent.md-v1.0 --- .../v1.0/Invoke-MgAcceptGroupCalendarEvent.md | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgAcceptGroupCalendarEvent.md b/src/Groups/Groups/examples/v1.0/Invoke-MgAcceptGroupCalendarEvent.md index 093355d11d5..b0503c64933 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgAcceptGroupCalendarEvent.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgAcceptGroupCalendarEvent.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" + SendResponse = $true +} +# A UPN can also be used as -UserId. +Invoke-MgAcceptUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgAcceptGroupCalendarEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From c5f29c8e2ceb7b3cba4021719c4f3ff2f61ca48a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:16 +0000 Subject: [PATCH 224/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgAcceptGroupCalendarEventTentatively.md-v1.0 --- ...e-MgAcceptGroupCalendarEventTentatively.md | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgAcceptGroupCalendarEventTentatively.md b/src/Groups/Groups/examples/v1.0/Invoke-MgAcceptGroupCalendarEventTentatively.md index 093355d11d5..262158d64b1 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgAcceptGroupCalendarEventTentatively.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgAcceptGroupCalendarEventTentatively.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "I may not be able to make this week. How about next week?" + SendResponse = $true + ProposedNewTime = @{ + Start = @{ + DateTime = "2019-12-02T18:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-12-02T19:00:00" + TimeZone = "Pacific Standard Time" + } + } +} +# A UPN can also be used as -UserId. +Invoke-MgAcceptUserEventTentatively -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgAcceptGroupCalendarEventTentatively Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From b12b95415c0ca29f86e53ad2febca5e179d60eb0 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:16 +0000 Subject: [PATCH 225/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgAcceptGroupEvent.md-v1.0 --- .../v1.0/Invoke-MgAcceptGroupEvent.md | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgAcceptGroupEvent.md b/src/Groups/Groups/examples/v1.0/Invoke-MgAcceptGroupEvent.md index 093355d11d5..7da0b0a71ff 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgAcceptGroupEvent.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgAcceptGroupEvent.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" + SendResponse = $true +} +# A UPN can also be used as -UserId. +Invoke-MgAcceptUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgAcceptGroupEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 47ecac14d511248eeb431a0d7b8ec5e8c95ee1a7 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:17 +0000 Subject: [PATCH 226/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgAcceptGroupEventTentatively.md-v1.0 --- .../Invoke-MgAcceptGroupEventTentatively.md | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgAcceptGroupEventTentatively.md b/src/Groups/Groups/examples/v1.0/Invoke-MgAcceptGroupEventTentatively.md index 093355d11d5..f4fb3296bd8 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgAcceptGroupEventTentatively.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgAcceptGroupEventTentatively.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "I may not be able to make this week. How about next week?" + SendResponse = $true + ProposedNewTime = @{ + Start = @{ + DateTime = "2019-12-02T18:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-12-02T19:00:00" + TimeZone = "Pacific Standard Time" + } + } +} +# A UPN can also be used as -UserId. +Invoke-MgAcceptUserEventTentatively -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgAcceptGroupEventTentatively Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From c5ef6483750452f8fa5bf235b4bec2c67b2ce6aa Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:17 +0000 Subject: [PATCH 227/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgCheckinGroupDriveItem.md-v1.0 --- .../v1.0/Invoke-MgCheckinGroupDriveItem.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgCheckinGroupDriveItem.md b/src/Groups/Groups/examples/v1.0/Invoke-MgCheckinGroupDriveItem.md index 093355d11d5..210876c140b 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgCheckinGroupDriveItem.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgCheckinGroupDriveItem.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "Updating the latest guidelines" +} +Invoke-MgCheckinDriveItem -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params +``` +This example shows how to use the Invoke-MgCheckinGroupDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From d9d55c5b5b1704dd14a501ff4b8f490b4c348407 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:17 +0000 Subject: [PATCH 228/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgCheckinGroupDriveRoot.md-v1.0 --- .../v1.0/Invoke-MgCheckinGroupDriveRoot.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgCheckinGroupDriveRoot.md b/src/Groups/Groups/examples/v1.0/Invoke-MgCheckinGroupDriveRoot.md index 093355d11d5..bea20b741e9 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgCheckinGroupDriveRoot.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgCheckinGroupDriveRoot.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "Updating the latest guidelines" +} +Invoke-MgCheckinDriveItem -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params +``` +This example shows how to use the Invoke-MgCheckinGroupDriveRoot Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From c4fc08b635a770bcc41cda85ade5ec6bc56b8d38 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:18 +0000 Subject: [PATCH 229/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgCheckoutGroupDriveItem.md-v1.0 --- .../v1.0/Invoke-MgCheckoutGroupDriveItem.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgCheckoutGroupDriveItem.md b/src/Groups/Groups/examples/v1.0/Invoke-MgCheckoutGroupDriveItem.md index 093355d11d5..7967ddad643 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgCheckoutGroupDriveItem.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgCheckoutGroupDriveItem.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Files +Invoke-MgCheckoutDriveItem -DriveId $driveId -DriveItemId $driveItemId +``` +This example shows how to use the Invoke-MgCheckoutGroupDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From ad8a9fa67dda6949c033e8a2fb5c7f6bd9934031 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:18 +0000 Subject: [PATCH 230/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgCheckoutGroupDriveRoot.md-v1.0 --- .../v1.0/Invoke-MgCheckoutGroupDriveRoot.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgCheckoutGroupDriveRoot.md b/src/Groups/Groups/examples/v1.0/Invoke-MgCheckoutGroupDriveRoot.md index 093355d11d5..43b97013b82 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgCheckoutGroupDriveRoot.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgCheckoutGroupDriveRoot.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Files +Invoke-MgCheckoutDriveItem -DriveId $driveId -DriveItemId $driveItemId +``` +This example shows how to use the Invoke-MgCheckoutGroupDriveRoot Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 86ef2272c6e4d1817393049eaa90131cbc5e9c35 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:19 +0000 Subject: [PATCH 231/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgDeclineGroupCalendarEvent.md-v1.0 --- .../Invoke-MgDeclineGroupCalendarEvent.md | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgDeclineGroupCalendarEvent.md b/src/Groups/Groups/examples/v1.0/Invoke-MgDeclineGroupCalendarEvent.md index 093355d11d5..1e7c66d8439 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgDeclineGroupCalendarEvent.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgDeclineGroupCalendarEvent.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "I won't be able to make this week. How about next week?" + SendResponse = $true + ProposedNewTime = @{ + Start = @{ + DateTime = "2019-12-02T18:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-12-02T19:00:00" + TimeZone = "Pacific Standard Time" + } + } +} +# A UPN can also be used as -UserId. +Invoke-MgDeclineUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgDeclineGroupCalendarEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 6c715e9692a888992eea75564bf35bacb1802485 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:19 +0000 Subject: [PATCH 232/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgDeclineGroupEvent.md-v1.0 --- .../v1.0/Invoke-MgDeclineGroupEvent.md | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgDeclineGroupEvent.md b/src/Groups/Groups/examples/v1.0/Invoke-MgDeclineGroupEvent.md index 093355d11d5..3104012aa9e 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgDeclineGroupEvent.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgDeclineGroupEvent.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "I won't be able to make this week. How about next week?" + SendResponse = $true + ProposedNewTime = @{ + Start = @{ + DateTime = "2019-12-02T18:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-12-02T19:00:00" + TimeZone = "Pacific Standard Time" + } + } +} +# A UPN can also be used as -UserId. +Invoke-MgDeclineUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgDeclineGroupEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 4505a18b404420415dbe73a693f9c778d6bb2264 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:20 +0000 Subject: [PATCH 233/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgDismissGroupCalendarEventReminder.md-v1.0 --- ...oke-MgDismissGroupCalendarEventReminder.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgDismissGroupCalendarEventReminder.md b/src/Groups/Groups/examples/v1.0/Invoke-MgDismissGroupCalendarEventReminder.md index 093355d11d5..ca9cc6eff1b 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgDismissGroupCalendarEventReminder.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgDismissGroupCalendarEventReminder.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Invoke-MgDismissUserEventReminder -UserId $userId -EventId $eventId +``` +This example shows how to use the Invoke-MgDismissGroupCalendarEventReminder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 4813c208bc32cb5d9f6c5d0fcd683154c81a055c Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:20 +0000 Subject: [PATCH 234/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgDismissGroupEventReminder.md-v1.0 --- .../Invoke-MgDismissGroupEventReminder.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgDismissGroupEventReminder.md b/src/Groups/Groups/examples/v1.0/Invoke-MgDismissGroupEventReminder.md index 093355d11d5..6baea04a224 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgDismissGroupEventReminder.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgDismissGroupEventReminder.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Invoke-MgDismissUserEventReminder -UserId $userId -EventId $eventId +``` +This example shows how to use the Invoke-MgDismissGroupEventReminder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 6b2bb3e9253d1db99e16aae0839489965cb84082 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:22 +0000 Subject: [PATCH 235/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgForwardGroupCalendarEvent.md-v1.0 --- .../Invoke-MgForwardGroupCalendarEvent.md | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupCalendarEvent.md b/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupCalendarEvent.md index 093355d11d5..5fe8fc1f2d6 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupCalendarEvent.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupCalendarEvent.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "danas@contoso.onmicrosoft.com" + Name = "Dana Swope" + } + } + ) + Comment = "Dana, hope you can make this meeting." +} +# A UPN can also be used as -UserId. +Invoke-MgForwardUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgForwardGroupCalendarEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 88072cea4dc2cd661ad6a24c7aa7edb666800db9 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:23 +0000 Subject: [PATCH 236/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgForwardGroupConversationThreadPost.md-v1.0 --- ...ke-MgForwardGroupConversationThreadPost.md | 33 ++++++++++--------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupConversationThreadPost.md b/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupConversationThreadPost.md index 093355d11d5..2e27648056d 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupConversationThreadPost.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupConversationThreadPost.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Groups -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" + ToRecipients = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) +} +Invoke-MgForwardGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -BodyParameter $params +``` +This example shows how to use the Invoke-MgForwardGroupConversationThreadPost Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From a22186935a1f3520f2d6dc6e17e51b0ed1865511 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:23 +0000 Subject: [PATCH 237/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgForwardGroupConversationThreadPostInReplyTo.md-v1.0 --- ...ardGroupConversationThreadPostInReplyTo.md | 33 ++++++++++--------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupConversationThreadPostInReplyTo.md b/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupConversationThreadPostInReplyTo.md index 093355d11d5..d8d0528f100 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupConversationThreadPostInReplyTo.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupConversationThreadPostInReplyTo.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Groups -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" + ToRecipients = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) +} +Invoke-MgForwardGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -BodyParameter $params +``` +This example shows how to use the Invoke-MgForwardGroupConversationThreadPostInReplyTo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From a6bf6dc381db0753bf8d641580ce8e1ef3bf99d9 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:24 +0000 Subject: [PATCH 238/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgForwardGroupEvent.md-v1.0 --- .../v1.0/Invoke-MgForwardGroupEvent.md | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupEvent.md b/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupEvent.md index 093355d11d5..558cf55176a 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupEvent.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupEvent.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "danas@contoso.onmicrosoft.com" + Name = "Dana Swope" + } + } + ) + Comment = "Dana, hope you can make this meeting." +} +# A UPN can also be used as -UserId. +Invoke-MgForwardUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgForwardGroupEvent Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From a9ca4249f0915cce5a9066a2240159cad25ae278 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:26 +0000 Subject: [PATCH 239/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgForwardGroupThreadPostInReplyTo.md-v1.0 --- ...nvoke-MgForwardGroupThreadPostInReplyTo.md | 33 ++++++++++--------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupThreadPostInReplyTo.md b/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupThreadPostInReplyTo.md index 093355d11d5..949da4f90df 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupThreadPostInReplyTo.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupThreadPostInReplyTo.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Groups -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" + ToRecipients = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) +} +Invoke-MgForwardGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -BodyParameter $params +``` +This example shows how to use the Invoke-MgForwardGroupThreadPostInReplyTo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 93c365926badf7ff11579ca7d2129a91fc771de1 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:30 +0000 Subject: [PATCH 240/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgReplyGroupConversationThread.md-v1.0 --- .../Invoke-MgReplyGroupConversationThread.md | 87 ++++++++++++++++--- 1 file changed, 75 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupConversationThread.md b/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupConversationThread.md index 093355d11d5..cf82bf5ba7c 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupConversationThread.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupConversationThread.md @@ -1,18 +1,81 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Include a file attachment -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Groups -{{ Add description here }} +$params = @{ + Post = @{ + Body = @{ + ContentType = "text" + Content = "Which quarter does that file cover? See my attachment." + } + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + Name = "Another file as attachment" + ContentBytes = "VGhpcyBpcyBhIGZpbGUgdG8gYmUgYXR0YWNoZWQu" + } + ) + } +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Invoke-MgReplyGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyGroupConversationThread Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Include an item attachment -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Groups -{{ Add description here }} +$params = @{ + Post = @{ + Body = @{ + ContentType = "text" + Content = "I attached an event." + } + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.itemAttachment" + Name = "Holiday event" + Item = @{ + "@odata.type" = "microsoft.graph.event" + Subject = "Discuss gifts for children" + } + } + ) + } +} +Invoke-MgReplyGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyGroupConversationThread Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Include a reference attachment + +```powershell Import-Module Microsoft.Graph.Groups + +$params = @{ + Post = @{ + Body = @{ + ContentType = "text" + Content = "I attached a reference to a file on OneDrive." + } + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.referenceAttachment" + Name = "Personal pictures" + SourceUrl = "https://contoso.com/personal/mario_contoso_net/Documents/Pics" + ProviderType = "oneDriveConsumer" + Permission = "Edit" + IsFolder = "True" + } + ) + } +} + +Invoke-MgReplyGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyGroupConversationThread Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 412da2890afde729d19754827d0a75644be4dcd6 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:30 +0000 Subject: [PATCH 241/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgReplyGroupConversationThreadPost.md-v1.0 --- ...voke-MgReplyGroupConversationThreadPost.md | 74 +++++++++++++++---- 1 file changed, 59 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupConversationThreadPost.md b/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupConversationThreadPost.md index 093355d11d5..9d43fe66a89 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupConversationThreadPost.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupConversationThreadPost.md @@ -1,18 +1,62 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Groups -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Post = @{ + Body = @{ + ContentType = "" + Content = "content-value" + } + ReceivedDateTime = [System.DateTime]::Parse("datetime-value") + HasAttachments = $true + From = @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + Sender = @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ConversationThreadId = "conversationThreadId-value" + NewParticipants = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) + ConversationId = "conversationId-value" + CreatedDateTime = [System.DateTime]::Parse("datetime-value") + LastModifiedDateTime = [System.DateTime]::Parse("datetime-value") + ChangeKey = "changeKey-value" + Categories = @( + "categories-value" + ) + Id = "id-value" + InReplyTo = @{ + } + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + LastModifiedDateTime = [System.DateTime]::Parse("datetime-value") + Name = "name-value" + ContentType = "contentType-value" + Size = 99 + IsInline = $true + Id = "id-value" + } + ) + } +} +Invoke-MgReplyGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyGroupConversationThreadPost Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From aa0544b533662b397886997d492703c8cfd3e7eb Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:31 +0000 Subject: [PATCH 242/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgReplyGroupConversationThreadPostInReplyTo.md-v1.0 --- ...plyGroupConversationThreadPostInReplyTo.md | 74 +++++++++++++++---- 1 file changed, 59 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupConversationThreadPostInReplyTo.md b/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupConversationThreadPostInReplyTo.md index 093355d11d5..4b229e75ed6 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupConversationThreadPostInReplyTo.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupConversationThreadPostInReplyTo.md @@ -1,18 +1,62 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Groups -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Post = @{ + Body = @{ + ContentType = "" + Content = "content-value" + } + ReceivedDateTime = [System.DateTime]::Parse("datetime-value") + HasAttachments = $true + From = @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + Sender = @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ConversationThreadId = "conversationThreadId-value" + NewParticipants = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) + ConversationId = "conversationId-value" + CreatedDateTime = [System.DateTime]::Parse("datetime-value") + LastModifiedDateTime = [System.DateTime]::Parse("datetime-value") + ChangeKey = "changeKey-value" + Categories = @( + "categories-value" + ) + Id = "id-value" + InReplyTo = @{ + } + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + LastModifiedDateTime = [System.DateTime]::Parse("datetime-value") + Name = "name-value" + ContentType = "contentType-value" + Size = 99 + IsInline = $true + Id = "id-value" + } + ) + } +} +Invoke-MgReplyGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyGroupConversationThreadPostInReplyTo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From e3d0d02680774c01a2c5f06f38cc69978da0fe8e Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:32 +0000 Subject: [PATCH 243/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgReplyGroupThreadPostInReplyTo.md-v1.0 --- .../Invoke-MgReplyGroupThreadPostInReplyTo.md | 74 +++++++++++++++---- 1 file changed, 59 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupThreadPostInReplyTo.md b/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupThreadPostInReplyTo.md index 093355d11d5..24bd9f8fdef 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupThreadPostInReplyTo.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupThreadPostInReplyTo.md @@ -1,18 +1,62 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Groups -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Post = @{ + Body = @{ + ContentType = "" + Content = "content-value" + } + ReceivedDateTime = [System.DateTime]::Parse("datetime-value") + HasAttachments = $true + From = @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + Sender = @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ConversationThreadId = "conversationThreadId-value" + NewParticipants = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) + ConversationId = "conversationId-value" + CreatedDateTime = [System.DateTime]::Parse("datetime-value") + LastModifiedDateTime = [System.DateTime]::Parse("datetime-value") + ChangeKey = "changeKey-value" + Categories = @( + "categories-value" + ) + Id = "id-value" + InReplyTo = @{ + } + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + LastModifiedDateTime = [System.DateTime]::Parse("datetime-value") + Name = "name-value" + ContentType = "contentType-value" + Size = 99 + IsInline = $true + Id = "id-value" + } + ) + } +} +Invoke-MgReplyGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyGroupThreadPostInReplyTo Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 786b7f8059502afa158bde16a352ef63855779dd Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:33 +0000 Subject: [PATCH 244/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgSnoozeGroupCalendarEventReminder.md-v1.0 --- ...voke-MgSnoozeGroupCalendarEventReminder.md | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgSnoozeGroupCalendarEventReminder.md b/src/Groups/Groups/examples/v1.0/Invoke-MgSnoozeGroupCalendarEventReminder.md index 093355d11d5..c9aa5016e01 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgSnoozeGroupCalendarEventReminder.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgSnoozeGroupCalendarEventReminder.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + NewReminderTime = @{ + DateTime = "dateTime-value" + TimeZone = "timeZone-value" + } +} +# A UPN can also be used as -UserId. +Invoke-MgSnoozeUserEventReminder -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgSnoozeGroupCalendarEventReminder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From f374ceb0ce5bf0356ddb2031a96b4506ca8a9dfb Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:33 +0000 Subject: [PATCH 245/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/Invoke-MgSnoozeGroupEventReminder.md-v1.0 --- .../v1.0/Invoke-MgSnoozeGroupEventReminder.md | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgSnoozeGroupEventReminder.md b/src/Groups/Groups/examples/v1.0/Invoke-MgSnoozeGroupEventReminder.md index 093355d11d5..412c0070b67 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgSnoozeGroupEventReminder.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgSnoozeGroupEventReminder.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + NewReminderTime = @{ + DateTime = "dateTime-value" + TimeZone = "timeZone-value" + } +} +# A UPN can also be used as -UserId. +Invoke-MgSnoozeUserEventReminder -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgSnoozeGroupEventReminder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 3e5147ff3096caac4fd6adf60c3e2538a54bf6af Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:35 +0000 Subject: [PATCH 246/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/New-MgGroupConversationThreadPostAttachmentUploadSession.md-v1.0 --- ...sationThreadPostAttachmentUploadSession.md | 44 ++++++++++++++----- 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/New-MgGroupConversationThreadPostAttachmentUploadSession.md b/src/Groups/Groups/examples/v1.0/New-MgGroupConversationThreadPostAttachmentUploadSession.md index 093355d11d5..6647ae0737c 100644 --- a/src/Groups/Groups/examples/v1.0/New-MgGroupConversationThreadPostAttachmentUploadSession.md +++ b/src/Groups/Groups/examples/v1.0/New-MgGroupConversationThreadPostAttachmentUploadSession.md @@ -1,18 +1,38 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Create an upload session to add a large attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "flower" + Size = 3483322 + } +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgGroupConversationThreadPostAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an upload session to add a large in-line attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "scenary" + Size = 7208534 + IsInline = $true + ContentId = "my_inline_picture" + } +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgGroupConversationThreadPostAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 6259ada174c1cb57348161f6586695714f4cd134 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:34:36 +0000 Subject: [PATCH 247/388] Examples update on D:\a\_work\1\s\tools\..\src\Groups\Groups\examples\v1.0/New-MgGroupConversationThreadPostInReplyToAttachmentUploadSession.md-v1.0 --- ...eadPostInReplyToAttachmentUploadSession.md | 44 ++++++++++++++----- 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/src/Groups/Groups/examples/v1.0/New-MgGroupConversationThreadPostInReplyToAttachmentUploadSession.md b/src/Groups/Groups/examples/v1.0/New-MgGroupConversationThreadPostInReplyToAttachmentUploadSession.md index 093355d11d5..96c7bb5ed5c 100644 --- a/src/Groups/Groups/examples/v1.0/New-MgGroupConversationThreadPostInReplyToAttachmentUploadSession.md +++ b/src/Groups/Groups/examples/v1.0/New-MgGroupConversationThreadPostInReplyToAttachmentUploadSession.md @@ -1,18 +1,38 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Create an upload session to add a large attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "flower" + Size = 3483322 + } +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgGroupConversationThreadPostInReplyToAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an upload session to add a large in-line attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "scenary" + Size = 7208534 + IsInline = $true + ContentId = "my_inline_picture" + } +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgGroupConversationThreadPostInReplyToAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 9977b91ccd6863cc71564ef7d0136e2d44bd8e4a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:35:51 +0000 Subject: [PATCH 248/388] Examples update on D:\a\_work\1\s\tools\..\src\DeviceManagement.Enrolment\DeviceManagement.Enrolment\examples\v1.0/Stop-MgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.md-v1.0 --- ...ManagementRoleAssignmentScheduleRequest.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Stop-MgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Stop-MgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.md index 093355d11d5..749bd5f6871 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Stop-MgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Stop-MgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Stop-MgRoleManagementDirectoryRoleAssignmentScheduleRequest -UnifiedRoleAssignmentScheduleRequestId $unifiedRoleAssignmentScheduleRequestId +``` +This example shows how to use the Stop-MgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 85ea07ca0aaef146410ae5308721744ab17f99ba Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:35:52 +0000 Subject: [PATCH 249/388] Examples update on D:\a\_work\1\s\tools\..\src\DeviceManagement.Enrolment\DeviceManagement.Enrolment\examples\v1.0/Stop-MgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.md-v1.0 --- ...anagementRoleEligibilityScheduleRequest.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Stop-MgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Stop-MgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.md index 093355d11d5..72e950ef413 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Stop-MgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Stop-MgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Stop-MgRoleManagementDirectoryRoleEligibilityScheduleRequest -UnifiedRoleEligibilityScheduleRequestId $unifiedRoleEligibilityScheduleRequestId +``` +This example shows how to use the Stop-MgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 3e3ec9232f9d5ddb5cfa01d04598594c07966d26 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:36:50 +0000 Subject: [PATCH 250/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.Governance\Identity.Governance\examples\v1.0/Get-MgEntitlementManagementConnectedOrganizationExternalSponsorById.md-v1.0 --- ...onnectedOrganizationExternalSponsorById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementConnectedOrganizationExternalSponsorById.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementConnectedOrganizationExternalSponsorById.md index 093355d11d5..c356c861e44 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementConnectedOrganizationExternalSponsorById.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementConnectedOrganizationExternalSponsorById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgEntitlementManagementConnectedOrganizationExternalSponsorById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 9e5c0d7acf8c5b3c269e229f8f4e9f25042b9868 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:36:50 +0000 Subject: [PATCH 251/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.Governance\Identity.Governance\examples\v1.0/Get-MgEntitlementManagementConnectedOrganizationInternalSponsorById.md-v1.0 --- ...onnectedOrganizationInternalSponsorById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementConnectedOrganizationInternalSponsorById.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementConnectedOrganizationInternalSponsorById.md index 093355d11d5..7c98327e444 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementConnectedOrganizationInternalSponsorById.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementConnectedOrganizationInternalSponsorById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgEntitlementManagementConnectedOrganizationInternalSponsorById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 67ca2826b4fc1bc50abe92963a98563e972b7c11 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:37:05 +0000 Subject: [PATCH 252/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.Governance\Identity.Governance\examples\v1.0/Test-MgEntitlementManagementConnectedOrganizationExternalSponsorProperty.md-v1.0 --- ...ctedOrganizationExternalSponsorProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Test-MgEntitlementManagementConnectedOrganizationExternalSponsorProperty.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Test-MgEntitlementManagementConnectedOrganizationExternalSponsorProperty.md index 093355d11d5..43d66917ed2 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Test-MgEntitlementManagementConnectedOrganizationExternalSponsorProperty.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Test-MgEntitlementManagementConnectedOrganizationExternalSponsorProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgEntitlementManagementConnectedOrganizationExternalSponsorProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 80ec56216ff5e5e3d9998252b4e4ce14c8047df4 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:37:05 +0000 Subject: [PATCH 253/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.Governance\Identity.Governance\examples\v1.0/Test-MgEntitlementManagementConnectedOrganizationInternalSponsorProperty.md-v1.0 --- ...ctedOrganizationInternalSponsorProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Test-MgEntitlementManagementConnectedOrganizationInternalSponsorProperty.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Test-MgEntitlementManagementConnectedOrganizationInternalSponsorProperty.md index 093355d11d5..5f09feb7e09 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Test-MgEntitlementManagementConnectedOrganizationInternalSponsorProperty.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Test-MgEntitlementManagementConnectedOrganizationInternalSponsorProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgEntitlementManagementConnectedOrganizationInternalSponsorProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 05e6b4f8d5aced32e866d6a82c56ae79463c7ae1 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:37:13 +0000 Subject: [PATCH 254/388] Examples update on D:\a\_work\1\s\tools\..\src\CloudCommunications\CloudCommunications\examples\v1.0/Invoke-MgCreateOrGetCommunicationOnlineMeeting.md-v1.0 --- ...MgCreateOrGetCommunicationOnlineMeeting.md | 41 ++++++++++++------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgCreateOrGetCommunicationOnlineMeeting.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgCreateOrGetCommunicationOnlineMeeting.md index 093355d11d5..8b997a230fa 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgCreateOrGetCommunicationOnlineMeeting.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgCreateOrGetCommunicationOnlineMeeting.md @@ -1,18 +1,29 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + StartDateTime = [System.DateTime]::Parse("2020-02-06T01:49:21.3524945+00:00") + EndDateTime = [System.DateTime]::Parse("2020-02-06T02:19:21.3524945+00:00") + Subject = "Create a meeting with customId provided" + ExternalId = "7eb8263f-d0e0-4149-bb1c-1f0476083c56" + Participants = @{ + Attendees = @( + @{ + Identity = @{ + User = @{ + Id = "1f35f2e6-9cab-44ad-8d5a-b74c14720000" + } + } + Upn = "test1@contoso.com" + } + ) + } +} +# A UPN can also be used as -UserId. +Invoke-MgCreateOrGetUserOnlineMeeting -UserId $userId -BodyParameter $params +``` +This example shows how to use the Invoke-MgCreateOrGetCommunicationOnlineMeeting Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 9e9bd9db3c35b271b6d6b0f89162e7401439bd85 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:38:06 +0000 Subject: [PATCH 255/388] Examples update on D:\a\_work\1\s\tools\..\src\Teams\Teams\examples\v1.0/Add-MgChatMember.md-v1.0 --- .../Teams/examples/v1.0/Add-MgChatMember.md | 87 ++++++++++++++++--- 1 file changed, 75 insertions(+), 12 deletions(-) diff --git a/src/Teams/Teams/examples/v1.0/Add-MgChatMember.md b/src/Teams/Teams/examples/v1.0/Add-MgChatMember.md index 093355d11d5..f01f11743c4 100644 --- a/src/Teams/Teams/examples/v1.0/Add-MgChatMember.md +++ b/src/Teams/Teams/examples/v1.0/Add-MgChatMember.md @@ -1,18 +1,81 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Add members in bulk to a team -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + } + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add members in bulk and encounter partial failure -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + } + ) +} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Add members in bulk to a team using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" + } + ) +} + +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 255ec17d3bddc0084a88f56ebfe4e95089453d72 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:38:06 +0000 Subject: [PATCH 256/388] Examples update on D:\a\_work\1\s\tools\..\src\Teams\Teams\examples\v1.0/Add-MgTeamChannelMember.md-v1.0 --- .../examples/v1.0/Add-MgTeamChannelMember.md | 87 ++++++++++++++++--- 1 file changed, 75 insertions(+), 12 deletions(-) diff --git a/src/Teams/Teams/examples/v1.0/Add-MgTeamChannelMember.md b/src/Teams/Teams/examples/v1.0/Add-MgTeamChannelMember.md index 093355d11d5..be431fb184e 100644 --- a/src/Teams/Teams/examples/v1.0/Add-MgTeamChannelMember.md +++ b/src/Teams/Teams/examples/v1.0/Add-MgTeamChannelMember.md @@ -1,18 +1,81 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Add members in bulk to a team -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + } + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add members in bulk and encounter partial failure -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + } + ) +} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Add members in bulk to a team using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" + } + ) +} + +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgTeamChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 7d9551946305dde771e5c5ffa69827bd3e02bdd8 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:38:07 +0000 Subject: [PATCH 257/388] Examples update on D:\a\_work\1\s\tools\..\src\Teams\Teams\examples\v1.0/Add-MgTeamPrimaryChannelMember.md-v1.0 --- .../v1.0/Add-MgTeamPrimaryChannelMember.md | 87 ++++++++++++++++--- 1 file changed, 75 insertions(+), 12 deletions(-) diff --git a/src/Teams/Teams/examples/v1.0/Add-MgTeamPrimaryChannelMember.md b/src/Teams/Teams/examples/v1.0/Add-MgTeamPrimaryChannelMember.md index 093355d11d5..5f8c199978a 100644 --- a/src/Teams/Teams/examples/v1.0/Add-MgTeamPrimaryChannelMember.md +++ b/src/Teams/Teams/examples/v1.0/Add-MgTeamPrimaryChannelMember.md @@ -1,18 +1,81 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Add members in bulk to a team -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + } + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add members in bulk and encounter partial failure -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + } + ) +} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Add members in bulk to a team using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" + } + ) +} + +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgTeamPrimaryChannelMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From fcaeb86550b2a1fef9a2145cbc4080a18d056c41 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:38:08 +0000 Subject: [PATCH 258/388] Examples update on D:\a\_work\1\s\tools\..\src\Teams\Teams\examples\v1.0/Complete-MgTeamPrimaryChannelMigration.md-v1.0 --- .../Complete-MgTeamPrimaryChannelMigration.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Teams/Teams/examples/v1.0/Complete-MgTeamPrimaryChannelMigration.md b/src/Teams/Teams/examples/v1.0/Complete-MgTeamPrimaryChannelMigration.md index 093355d11d5..7174462bea4 100644 --- a/src/Teams/Teams/examples/v1.0/Complete-MgTeamPrimaryChannelMigration.md +++ b/src/Teams/Teams/examples/v1.0/Complete-MgTeamPrimaryChannelMigration.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Teams +Complete-MgTeamChannelMigration -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Complete-MgTeamPrimaryChannelMigration Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From cdcd90232eabec999a9a4ca1072a7fb66e7a55d5 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:38:30 +0000 Subject: [PATCH 259/388] Examples update on D:\a\_work\1\s\tools\..\src\Teams\Teams\examples\v1.0/New-MgTeamPrimaryChannelEmail.md-v1.0 --- .../v1.0/New-MgTeamPrimaryChannelEmail.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Teams/Teams/examples/v1.0/New-MgTeamPrimaryChannelEmail.md b/src/Teams/Teams/examples/v1.0/New-MgTeamPrimaryChannelEmail.md index 093355d11d5..a81956e93a4 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgTeamPrimaryChannelEmail.md +++ b/src/Teams/Teams/examples/v1.0/New-MgTeamPrimaryChannelEmail.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Teams +New-MgTeamChannelEmail -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the New-MgTeamPrimaryChannelEmail Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 66c1b6b270466de6e74603fc76bc9774b3ca8969 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:38:39 +0000 Subject: [PATCH 260/388] Examples update on D:\a\_work\1\s\tools\..\src\Teams\Teams\examples\v1.0/Remove-MgTeamPrimaryChannelEmail.md-v1.0 --- .../v1.0/Remove-MgTeamPrimaryChannelEmail.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgTeamPrimaryChannelEmail.md b/src/Teams/Teams/examples/v1.0/Remove-MgTeamPrimaryChannelEmail.md index 093355d11d5..3fcf19fafe2 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgTeamPrimaryChannelEmail.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgTeamPrimaryChannelEmail.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Teams +Remove-MgTeamChannelEmail -TeamId $teamId -ChannelId $channelId +``` +This example shows how to use the Remove-MgTeamPrimaryChannelEmail Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From bb38078afb09f0d3da0e7ed017a0d8fb13e19373 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:42:41 +0000 Subject: [PATCH 261/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0/Add-MgSiteContentTypeCopy.md-v1.0 --- .../v1.0/Add-MgSiteContentTypeCopy.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0/Add-MgSiteContentTypeCopy.md b/src/Sites/Sites/examples/v1.0/Add-MgSiteContentTypeCopy.md index 093355d11d5..294801639ce 100644 --- a/src/Sites/Sites/examples/v1.0/Add-MgSiteContentTypeCopy.md +++ b/src/Sites/Sites/examples/v1.0/Add-MgSiteContentTypeCopy.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" +} +Add-MgSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgSiteContentTypeCopy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From dda8dc8fbf0d03267f5689b0fade25690a014ce2 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:42:41 +0000 Subject: [PATCH 262/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0/Add-MgSiteContentTypeCopyFromContentTypeHub.md-v1.0 --- ...MgSiteContentTypeCopyFromContentTypeHub.md | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0/Add-MgSiteContentTypeCopyFromContentTypeHub.md b/src/Sites/Sites/examples/v1.0/Add-MgSiteContentTypeCopyFromContentTypeHub.md index 093355d11d5..d7a7c014bfe 100644 --- a/src/Sites/Sites/examples/v1.0/Add-MgSiteContentTypeCopyFromContentTypeHub.md +++ b/src/Sites/Sites/examples/v1.0/Add-MgSiteContentTypeCopyFromContentTypeHub.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Synchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgSiteContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Asynchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgSiteContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 62ae72f199dfa404c6926d05da9d19115a957898 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:42:43 +0000 Subject: [PATCH 263/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0/Copy-MgSiteListContentTypeToDefaultContentLocation.md-v1.0 --- ...ListContentTypeToDefaultContentLocation.md | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0/Copy-MgSiteListContentTypeToDefaultContentLocation.md b/src/Sites/Sites/examples/v1.0/Copy-MgSiteListContentTypeToDefaultContentLocation.md index 093355d11d5..11427cc5b11 100644 --- a/src/Sites/Sites/examples/v1.0/Copy-MgSiteListContentTypeToDefaultContentLocation.md +++ b/src/Sites/Sites/examples/v1.0/Copy-MgSiteListContentTypeToDefaultContentLocation.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SourceFile = @{ + SharepointIds = @{ + ListId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" + ListItemId = "2" + } + } + DestinationFileName = "newname.txt" +} +Copy-MgSiteContentTypeToDefaultContentLocation -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +``` +This example shows how to use the Copy-MgSiteListContentTypeToDefaultContentLocation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 77b1ce509bdeaca3362169015ddc7ef4330a56e4 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:42:43 +0000 Subject: [PATCH 264/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0/Copy-MgSiteOnenoteNotebook.md-v1.0 --- .../v1.0/Copy-MgSiteOnenoteNotebook.md | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0/Copy-MgSiteOnenoteNotebook.md b/src/Sites/Sites/examples/v1.0/Copy-MgSiteOnenoteNotebook.md index 093355d11d5..7ef478c7320 100644 --- a/src/Sites/Sites/examples/v1.0/Copy-MgSiteOnenoteNotebook.md +++ b/src/Sites/Sites/examples/v1.0/Copy-MgSiteOnenoteNotebook.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + GroupId = "groupId-value" + RenameAs = "renameAs-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenoteNotebook -UserId $userId -NotebookId $notebookId -BodyParameter $params +``` +This example shows how to use the Copy-MgSiteOnenoteNotebook Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 4f4d4158affde0f9d85442f5704959e52504b326 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:42:44 +0000 Subject: [PATCH 265/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0/Copy-MgSiteOnenotePageToSection.md-v1.0 --- .../v1.0/Copy-MgSiteOnenotePageToSection.md | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0/Copy-MgSiteOnenotePageToSection.md b/src/Sites/Sites/examples/v1.0/Copy-MgSiteOnenotePageToSection.md index 093355d11d5..4069ed9d420 100644 --- a/src/Sites/Sites/examples/v1.0/Copy-MgSiteOnenotePageToSection.md +++ b/src/Sites/Sites/examples/v1.0/Copy-MgSiteOnenotePageToSection.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Id = "id-value" + GroupId = "groupId-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenotePageToSection -UserId $userId -OnenotePageId $onenotePageId -BodyParameter $params +``` +This example shows how to use the Copy-MgSiteOnenotePageToSection Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From bc0294c746cf1f083482fff3390ae5003a5dd3d4 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:42:44 +0000 Subject: [PATCH 266/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0/Copy-MgSiteOnenoteSectionToNotebook.md-v1.0 --- .../Copy-MgSiteOnenoteSectionToNotebook.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0/Copy-MgSiteOnenoteSectionToNotebook.md b/src/Sites/Sites/examples/v1.0/Copy-MgSiteOnenoteSectionToNotebook.md index 093355d11d5..ea5201ecdf4 100644 --- a/src/Sites/Sites/examples/v1.0/Copy-MgSiteOnenoteSectionToNotebook.md +++ b/src/Sites/Sites/examples/v1.0/Copy-MgSiteOnenoteSectionToNotebook.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Id = "id-value" + GroupId = "groupId-value" + RenameAs = "renameAs-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenoteSectionToNotebook -UserId $userId -OnenoteSectionId $onenoteSectionId -BodyParameter $params +``` +This example shows how to use the Copy-MgSiteOnenoteSectionToNotebook Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 0944b20aae60a9d1e9fabbb603dffc51c2862862 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:42:45 +0000 Subject: [PATCH 267/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0/Copy-MgSiteOnenoteSectionToSectionGroup.md-v1.0 --- ...Copy-MgSiteOnenoteSectionToSectionGroup.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0/Copy-MgSiteOnenoteSectionToSectionGroup.md b/src/Sites/Sites/examples/v1.0/Copy-MgSiteOnenoteSectionToSectionGroup.md index 093355d11d5..ae69ac19bd0 100644 --- a/src/Sites/Sites/examples/v1.0/Copy-MgSiteOnenoteSectionToSectionGroup.md +++ b/src/Sites/Sites/examples/v1.0/Copy-MgSiteOnenoteSectionToSectionGroup.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Id = "id-value" + GroupId = "groupId-value" + RenameAs = "renameAs-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenoteSectionToSectionGroup -UserId $userId -OnenoteSectionId $onenoteSectionId -BodyParameter $params +``` +This example shows how to use the Copy-MgSiteOnenoteSectionToSectionGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From a4765743f5325f492b496eb7a9cbc90178fe7f12 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:42:49 +0000 Subject: [PATCH 268/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0/Get-MgSiteOnenoteNotebookFromWebUrl.md-v1.0 --- .../Get-MgSiteOnenoteNotebookFromWebUrl.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteOnenoteNotebookFromWebUrl.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteOnenoteNotebookFromWebUrl.md index 093355d11d5..1a2e157a705 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteOnenoteNotebookFromWebUrl.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteOnenoteNotebookFromWebUrl.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + WebUrl = "webUrl value" +} +# A UPN can also be used as -UserId. +Get-MgUserOnenoteNotebookFromWebUrl -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgSiteOnenoteNotebookFromWebUrl Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 05afc98a1c7d54865884866a4c270620b33b8435 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:42:55 +0000 Subject: [PATCH 269/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0/Grant-MgSitePermission.md-v1.0 --- .../examples/v1.0/Grant-MgSitePermission.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0/Grant-MgSitePermission.md b/src/Sites/Sites/examples/v1.0/Grant-MgSitePermission.md index 093355d11d5..ee2c0011b36 100644 --- a/src/Sites/Sites/examples/v1.0/Grant-MgSitePermission.md +++ b/src/Sites/Sites/examples/v1.0/Grant-MgSitePermission.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Recipients = @( + @{ + Email = "john@contoso.com" + } + @{ + Email = "ryan@external.com" + } + ) + Roles = @( + "read" + ) +} +Grant-MgSharePermission -SharedDriveItemId $sharedDriveItemId -BodyParameter $params +``` +This example shows how to use the Grant-MgSitePermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From eb56d2d05c283e92b27af3844d93f0165be289fa Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:42:59 +0000 Subject: [PATCH 270/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0/Publish-MgSiteListContentType.md-v1.0 --- .../v1.0/Publish-MgSiteListContentType.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0/Publish-MgSiteListContentType.md b/src/Sites/Sites/examples/v1.0/Publish-MgSiteListContentType.md index 093355d11d5..9a52a137e47 100644 --- a/src/Sites/Sites/examples/v1.0/Publish-MgSiteListContentType.md +++ b/src/Sites/Sites/examples/v1.0/Publish-MgSiteListContentType.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Publish-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId +``` +This example shows how to use the Publish-MgSiteListContentType Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 52e14a9ac08eb7571b58cc5a1c0303cf7192a8bd Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:05 +0000 Subject: [PATCH 271/388] Examples update on D:\a\_work\1\s\tools\..\src\Sites\Sites\examples\v1.0/Unpublish-MgSiteListContentType.md-v1.0 --- .../v1.0/Unpublish-MgSiteListContentType.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Sites/Sites/examples/v1.0/Unpublish-MgSiteListContentType.md b/src/Sites/Sites/examples/v1.0/Unpublish-MgSiteListContentType.md index 093355d11d5..7fd53c8bcdf 100644 --- a/src/Sites/Sites/examples/v1.0/Unpublish-MgSiteListContentType.md +++ b/src/Sites/Sites/examples/v1.0/Unpublish-MgSiteListContentType.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Unpublish-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId +``` +This example shows how to use the Unpublish-MgSiteListContentType Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From afb74ca348faf2d82f15f0581424c76fa959703b Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:16 +0000 Subject: [PATCH 272/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0/Confirm-MgApplicationMemberGroup.md-v1.0 --- .../v1.0/Confirm-MgApplicationMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0/Confirm-MgApplicationMemberGroup.md b/src/Applications/Applications/examples/v1.0/Confirm-MgApplicationMemberGroup.md index 093355d11d5..1627559222d 100644 --- a/src/Applications/Applications/examples/v1.0/Confirm-MgApplicationMemberGroup.md +++ b/src/Applications/Applications/examples/v1.0/Confirm-MgApplicationMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgApplicationMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgApplicationMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 916a1372d6c01bf743c038006a7932daf4155f64 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:17 +0000 Subject: [PATCH 273/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0/Confirm-MgServicePrincipalMemberGroup.md-v1.0 --- .../Confirm-MgServicePrincipalMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0/Confirm-MgServicePrincipalMemberGroup.md b/src/Applications/Applications/examples/v1.0/Confirm-MgServicePrincipalMemberGroup.md index 093355d11d5..2cdac1ffa65 100644 --- a/src/Applications/Applications/examples/v1.0/Confirm-MgServicePrincipalMemberGroup.md +++ b/src/Applications/Applications/examples/v1.0/Confirm-MgServicePrincipalMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgServicePrincipalMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgServicePrincipalMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 005a7e62d51213022c95b89ea651db1198aada9d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:17 +0000 Subject: [PATCH 274/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0/Get-MgApplicationById.md-v1.0 --- .../examples/v1.0/Get-MgApplicationById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0/Get-MgApplicationById.md b/src/Applications/Applications/examples/v1.0/Get-MgApplicationById.md index 093355d11d5..6d01ed3cf43 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgApplicationById.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgApplicationById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgApplicationById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 1b302b5bda3421dd203458cadd7591eece98efc5 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:19 +0000 Subject: [PATCH 275/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0/Get-MgApplicationMemberGroup.md-v1.0 --- .../v1.0/Get-MgApplicationMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0/Get-MgApplicationMemberGroup.md b/src/Applications/Applications/examples/v1.0/Get-MgApplicationMemberGroup.md index 093355d11d5..552403968eb 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgApplicationMemberGroup.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgApplicationMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgApplicationMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgApplicationMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From f2c8b7181815df5d5fb276d113255f450c33fa7b Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:19 +0000 Subject: [PATCH 276/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0/Get-MgApplicationMemberObject.md-v1.0 --- .../v1.0/Get-MgApplicationMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0/Get-MgApplicationMemberObject.md b/src/Applications/Applications/examples/v1.0/Get-MgApplicationMemberObject.md index 093355d11d5..fc9ad8eebec 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgApplicationMemberObject.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgApplicationMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgApplicationMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From a74987ccd61910279f674486df25ec650d17a8b0 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:21 +0000 Subject: [PATCH 277/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0/Get-MgServicePrincipalById.md-v1.0 --- .../v1.0/Get-MgServicePrincipalById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalById.md b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalById.md index 093355d11d5..fd9ab342921 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalById.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgServicePrincipalById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 51d7cff22ef6fd5250c39a6c6dd94af215341d71 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:23 +0000 Subject: [PATCH 278/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0/Get-MgServicePrincipalMemberGroup.md-v1.0 --- .../v1.0/Get-MgServicePrincipalMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalMemberGroup.md b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalMemberGroup.md index 093355d11d5..599a29ad413 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalMemberGroup.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgServicePrincipalMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgServicePrincipalMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From f9347cbeb781c6ee64f33455304bfc6f46997f5f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:23 +0000 Subject: [PATCH 279/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0/Get-MgServicePrincipalMemberObject.md-v1.0 --- .../Get-MgServicePrincipalMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalMemberObject.md b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalMemberObject.md index 093355d11d5..24ead0cd144 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalMemberObject.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgServicePrincipalMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 5909bc6fd5f77e15328e82b4656db694186e11e7 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:31 +0000 Subject: [PATCH 280/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0/Test-MgApplicationProperty.md-v1.0 --- .../v1.0/Test-MgApplicationProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0/Test-MgApplicationProperty.md b/src/Applications/Applications/examples/v1.0/Test-MgApplicationProperty.md index 093355d11d5..a1a8d89bc09 100644 --- a/src/Applications/Applications/examples/v1.0/Test-MgApplicationProperty.md +++ b/src/Applications/Applications/examples/v1.0/Test-MgApplicationProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgApplicationProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From a27f48a4d4752e6b1d2fab93f98d4745718c8511 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:32 +0000 Subject: [PATCH 281/388] Examples update on D:\a\_work\1\s\tools\..\src\Applications\Applications\examples\v1.0/Test-MgServicePrincipalProperty.md-v1.0 --- .../v1.0/Test-MgServicePrincipalProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Applications/Applications/examples/v1.0/Test-MgServicePrincipalProperty.md b/src/Applications/Applications/examples/v1.0/Test-MgServicePrincipalProperty.md index 093355d11d5..5a93a8aa2c4 100644 --- a/src/Applications/Applications/examples/v1.0/Test-MgServicePrincipalProperty.md +++ b/src/Applications/Applications/examples/v1.0/Test-MgServicePrincipalProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgServicePrincipalProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From be576f505e0e96c959db7c71f3539d2ad79d602e Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:51 +0000 Subject: [PATCH 282/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Confirm-MgContactMemberGroup.md-v1.0 --- .../v1.0/Confirm-MgContactMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgContactMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgContactMemberGroup.md index 093355d11d5..c2f1a54d157 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgContactMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgContactMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgContactMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgContactMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From ac074b6d2d1dd1d610194c979937504973c631ec Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:52 +0000 Subject: [PATCH 283/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Confirm-MgContractMemberGroup.md-v1.0 --- .../v1.0/Confirm-MgContractMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgContractMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgContractMemberGroup.md index 093355d11d5..9beef18574f 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgContractMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgContractMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgContractMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgContractMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 3682db45e6003934d68943585110c5035121e565 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:53 +0000 Subject: [PATCH 284/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Confirm-MgDeviceMemberGroup.md-v1.0 --- .../v1.0/Confirm-MgDeviceMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDeviceMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDeviceMemberGroup.md index 093355d11d5..0b26e89fb1a 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDeviceMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDeviceMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 054723c30d56ced615b5e6f51df522106f16cf76 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:53 +0000 Subject: [PATCH 285/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Confirm-MgDirectoryDeletedItemMemberGroup.md-v1.0 --- ...nfirm-MgDirectoryDeletedItemMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDirectoryDeletedItemMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDirectoryDeletedItemMemberGroup.md index 093355d11d5..8850d054cf0 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDirectoryDeletedItemMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDirectoryDeletedItemMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgDirectoryDeletedItemMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgDirectoryDeletedItemMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 05e7c3ade153d5d820fd672b226f7ce79f51865e Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:54 +0000 Subject: [PATCH 286/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Confirm-MgDirectoryRoleMemberGroup.md-v1.0 --- .../Confirm-MgDirectoryRoleMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDirectoryRoleMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDirectoryRoleMemberGroup.md index 093355d11d5..a3a21a1b96a 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDirectoryRoleMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDirectoryRoleMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgDirectoryRoleMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgDirectoryRoleMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From bfcc8e37f3fd8db4d98cfedacf3d3c21c68025fa Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:55 +0000 Subject: [PATCH 287/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Confirm-MgDirectoryRoleTemplateMemberGroup.md-v1.0 --- ...firm-MgDirectoryRoleTemplateMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDirectoryRoleTemplateMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDirectoryRoleTemplateMemberGroup.md index 093355d11d5..797def08b4c 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDirectoryRoleTemplateMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDirectoryRoleTemplateMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgDirectoryRoleTemplateMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgDirectoryRoleTemplateMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 1ccb341c5ccae93298c14438ed48e33e938dceec Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:55 +0000 Subject: [PATCH 288/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Confirm-MgOrganizationMemberGroup.md-v1.0 --- .../v1.0/Confirm-MgOrganizationMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgOrganizationMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgOrganizationMemberGroup.md index 093355d11d5..9a35811edf0 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgOrganizationMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgOrganizationMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgOrganizationMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgOrganizationMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 853e5aa993aa2385ad41b3c5d3e6282b0afe933b Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:57 +0000 Subject: [PATCH 289/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgContactById.md-v1.0 --- .../examples/v1.0/Get-MgContactById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactById.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactById.md index 093355d11d5..1e82d69f22b 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactById.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgContactById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 7e4950dbf5e6c04bf5decaedec1d7c3137ab1888 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:57 +0000 Subject: [PATCH 290/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgContactMemberGroup.md-v1.0 --- .../examples/v1.0/Get-MgContactMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactMemberGroup.md index 093355d11d5..98ab06f094c 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgContactMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgContactMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 3afa332685e4cce35826dcc32e22d81e70306957 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:58 +0000 Subject: [PATCH 291/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgContactMemberObject.md-v1.0 --- .../v1.0/Get-MgContactMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactMemberObject.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactMemberObject.md index 093355d11d5..7f2c5fcc28f 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactMemberObject.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgContactMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 1a4f57ad25d6a0246f8862d8e0b6b2a07e63d72b Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:43:59 +0000 Subject: [PATCH 292/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgContractById.md-v1.0 --- .../examples/v1.0/Get-MgContractById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContractById.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContractById.md index 093355d11d5..501933fcf2b 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContractById.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContractById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgContractById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 1b75d97614d2dec934763d589ade11527336292b Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:00 +0000 Subject: [PATCH 293/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgContractMemberGroup.md-v1.0 --- .../v1.0/Get-MgContractMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContractMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContractMemberGroup.md index 093355d11d5..0ff7f0945ff 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContractMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContractMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgContractMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgContractMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 163703d57ba4afaf3533c2c3b95c8d8bf1677193 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:00 +0000 Subject: [PATCH 294/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgContractMemberObject.md-v1.0 --- .../v1.0/Get-MgContractMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContractMemberObject.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContractMemberObject.md index 093355d11d5..abac6db6f2b 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContractMemberObject.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContractMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgContractMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From fe4f1b131c8f51fa2a01c78a19d9663ca42a858a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:01 +0000 Subject: [PATCH 295/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgDeviceById.md-v1.0 --- .../examples/v1.0/Get-MgDeviceById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceById.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceById.md index 093355d11d5..397285288d3 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceById.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgDeviceById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 87be39008a73b19fccb390e7a580d0ffb01abd12 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:01 +0000 Subject: [PATCH 296/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgDeviceMemberGroup.md-v1.0 --- .../examples/v1.0/Get-MgDeviceMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceMemberGroup.md index 093355d11d5..6aec58a36af 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 9dfeb90f58eb4b659b6058760d3a5ab004576cd1 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:02 +0000 Subject: [PATCH 297/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgDeviceMemberObject.md-v1.0 --- .../examples/v1.0/Get-MgDeviceMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceMemberObject.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceMemberObject.md index 093355d11d5..6d715b2ffa2 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceMemberObject.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgDeviceMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From ecce85d0c10a8f3d178ce000402868f833a344d2 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:04 +0000 Subject: [PATCH 298/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgDirectoryDeletedItemMemberGroup.md-v1.0 --- .../Get-MgDirectoryDeletedItemMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryDeletedItemMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryDeletedItemMemberGroup.md index 093355d11d5..57a88279c1c 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryDeletedItemMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryDeletedItemMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryDeletedItemMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryDeletedItemMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 2805337d9368a1eb6d5c83e52410169e8c2840b6 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:04 +0000 Subject: [PATCH 299/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgDirectoryDeletedItemMemberObject.md-v1.0 --- .../Get-MgDirectoryDeletedItemMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryDeletedItemMemberObject.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryDeletedItemMemberObject.md index 093355d11d5..75c85b7a184 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryDeletedItemMemberObject.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryDeletedItemMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryDeletedItemMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From a6b8e30ee2e322ae1aee05dcbf735c530938c9e9 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:05 +0000 Subject: [PATCH 300/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgDirectoryRoleById.md-v1.0 --- .../examples/v1.0/Get-MgDirectoryRoleById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleById.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleById.md index 093355d11d5..75ad194fbe7 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleById.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryRoleById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From ec5510c9043cdf37e1671d44501c025e231a2a80 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:06 +0000 Subject: [PATCH 301/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgDirectoryRoleMemberGroup.md-v1.0 --- .../v1.0/Get-MgDirectoryRoleMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleMemberGroup.md index 093355d11d5..e7f06c3ba0c 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryRoleMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryRoleMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 32fde01fb791f20e3eec81e959a3b60eecb380d9 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:06 +0000 Subject: [PATCH 302/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgDirectoryRoleMemberObject.md-v1.0 --- .../v1.0/Get-MgDirectoryRoleMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleMemberObject.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleMemberObject.md index 093355d11d5..4714a552dab 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleMemberObject.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryRoleMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 791bd6586359547bf66a3377150e59888b18367b Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:07 +0000 Subject: [PATCH 303/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgDirectoryRoleTemplateById.md-v1.0 --- .../v1.0/Get-MgDirectoryRoleTemplateById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleTemplateById.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleTemplateById.md index 093355d11d5..2d55f5b3529 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleTemplateById.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleTemplateById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryRoleTemplateById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 52281c5903b93403c611868b2d185fa43ae54242 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:08 +0000 Subject: [PATCH 304/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgDirectoryRoleTemplateMemberGroup.md-v1.0 --- .../Get-MgDirectoryRoleTemplateMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleTemplateMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleTemplateMemberGroup.md index 093355d11d5..80558feafec 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleTemplateMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleTemplateMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryRoleTemplateMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryRoleTemplateMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 8c4fba5521394e4f56145874ec57518af9e44d0d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:08 +0000 Subject: [PATCH 305/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgDirectoryRoleTemplateMemberObject.md-v1.0 --- ...Get-MgDirectoryRoleTemplateMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleTemplateMemberObject.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleTemplateMemberObject.md index 093355d11d5..70b4645d729 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleTemplateMemberObject.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleTemplateMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgDirectoryRoleTemplateMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From ea003c184e3dddc4a5e9a6009f1fd56fcc992e47 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:10 +0000 Subject: [PATCH 306/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgOrganizationById.md-v1.0 --- .../examples/v1.0/Get-MgOrganizationById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationById.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationById.md index 093355d11d5..e106f33861e 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationById.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgOrganizationById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 6febe5f4f703b40ac2d5db0986da31177bac646f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:11 +0000 Subject: [PATCH 307/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgOrganizationMemberGroup.md-v1.0 --- .../v1.0/Get-MgOrganizationMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationMemberGroup.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationMemberGroup.md index 093355d11d5..d218d66d378 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationMemberGroup.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgOrganizationMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgOrganizationMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 78d00400dbcaa6fa5529bee70a7dd5481f623573 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:11 +0000 Subject: [PATCH 308/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Get-MgOrganizationMemberObject.md-v1.0 --- .../v1.0/Get-MgOrganizationMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationMemberObject.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationMemberObject.md index 093355d11d5..074dd4a196c 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationMemberObject.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgOrganizationMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From da7227d1a1b561fc830a6f0fe5dc01f639d088cc Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:19 +0000 Subject: [PATCH 309/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Test-MgContactProperty.md-v1.0 --- .../examples/v1.0/Test-MgContactProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgContactProperty.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgContactProperty.md index 093355d11d5..6ed12437d5e 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgContactProperty.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgContactProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgContactProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 463621e31202afccb1509f57d8621ddf7f8a30fa Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:20 +0000 Subject: [PATCH 310/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Test-MgContractProperty.md-v1.0 --- .../examples/v1.0/Test-MgContractProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgContractProperty.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgContractProperty.md index 093355d11d5..f3a5be3627c 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgContractProperty.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgContractProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgContractProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 7923ec22d0ed4447ca3f0741bc091c2e75bb0031 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:20 +0000 Subject: [PATCH 311/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Test-MgDeviceProperty.md-v1.0 --- .../examples/v1.0/Test-MgDeviceProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgDeviceProperty.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgDeviceProperty.md index 093355d11d5..19c3b050503 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgDeviceProperty.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgDeviceProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgDeviceProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 83407bc2005e1c0dfe02f24ff3771e4e742df91b Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:21 +0000 Subject: [PATCH 312/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Test-MgDirectoryDeletedItemProperty.md-v1.0 --- .../Test-MgDirectoryDeletedItemProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgDirectoryDeletedItemProperty.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgDirectoryDeletedItemProperty.md index 093355d11d5..10301c6c2e6 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgDirectoryDeletedItemProperty.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgDirectoryDeletedItemProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgDirectoryDeletedItemProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 49e42bb7fca8e520b5745ba9f83b69d35be3b65e Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:21 +0000 Subject: [PATCH 313/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Test-MgDirectoryRoleProperty.md-v1.0 --- .../v1.0/Test-MgDirectoryRoleProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgDirectoryRoleProperty.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgDirectoryRoleProperty.md index 093355d11d5..f3b93bb711c 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgDirectoryRoleProperty.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgDirectoryRoleProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgDirectoryRoleProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 21865164e83bd84bf763f5c2b324770e5ffa6ab8 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:22 +0000 Subject: [PATCH 314/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Test-MgDirectoryRoleTemplateProperty.md-v1.0 --- .../Test-MgDirectoryRoleTemplateProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgDirectoryRoleTemplateProperty.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgDirectoryRoleTemplateProperty.md index 093355d11d5..13064928e97 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgDirectoryRoleTemplateProperty.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgDirectoryRoleTemplateProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgDirectoryRoleTemplateProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 94a69b1645ea636e701fdc80f4f17336e24246e3 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:22 +0000 Subject: [PATCH 315/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.DirectoryManagement\Identity.DirectoryManagement\examples\v1.0/Test-MgOrganizationProperty.md-v1.0 --- .../v1.0/Test-MgOrganizationProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgOrganizationProperty.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgOrganizationProperty.md index 093355d11d5..a22b3de6dd5 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgOrganizationProperty.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Test-MgOrganizationProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgOrganizationProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From cf7cfb86a2b8c2f40c6025d00f37d51d479fd20e Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:44 +0000 Subject: [PATCH 316/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Add-MgUserChatMember.md-v1.0 --- .../examples/v1.0/Add-MgUserChatMember.md | 87 ++++++++++++++++--- 1 file changed, 75 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Add-MgUserChatMember.md b/src/Users.Actions/Users.Actions/examples/v1.0/Add-MgUserChatMember.md index 093355d11d5..0356bd9d9d2 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Add-MgUserChatMember.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Add-MgUserChatMember.md @@ -1,18 +1,81 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Add members in bulk to a team -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + } + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgUserChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Add members in bulk and encounter partial failure -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('18a80140-b0fb-4489-b360-2f6efaf225a0')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('86503198-b81b-43fe-81ee-ad45b8848ac9')" + } + ) +} +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgUserChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Add members in bulk to a team using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + Values = @( + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + } + @{ + "@odata.type" = "microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('alex@contoso.com')" + } + ) +} + +Add-MgTeamMember -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Add-MgUserChatMember Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 1e11e8274a820522309de44038f00869671048c1 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:45 +0000 Subject: [PATCH 317/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Add-MgUserDriveListContentTypeCopy.md-v1.0 --- .../Add-MgUserDriveListContentTypeCopy.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Add-MgUserDriveListContentTypeCopy.md b/src/Users.Actions/Users.Actions/examples/v1.0/Add-MgUserDriveListContentTypeCopy.md index 093355d11d5..f8c4f9e0b92 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Add-MgUserDriveListContentTypeCopy.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Add-MgUserDriveListContentTypeCopy.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" +} +Add-MgSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgUserDriveListContentTypeCopy Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From ca68d69a2701eda5ce0b11cea4a1350061990334 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:46 +0000 Subject: [PATCH 318/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Add-MgUserDriveListContentTypeCopyFromContentTypeHub.md-v1.0 --- ...veListContentTypeCopyFromContentTypeHub.md | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Add-MgUserDriveListContentTypeCopyFromContentTypeHub.md b/src/Users.Actions/Users.Actions/examples/v1.0/Add-MgUserDriveListContentTypeCopyFromContentTypeHub.md index 093355d11d5..e7a68a5df2d 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Add-MgUserDriveListContentTypeCopyFromContentTypeHub.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Add-MgUserDriveListContentTypeCopyFromContentTypeHub.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Synchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgUserDriveListContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Asynchronous pull -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} +$params = @{ + ContentTypeId = "0x0101" +} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgUserDriveListContentTypeCopyFromContentTypeHub Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From c41b8daa39af3f8452e7bb7cf33fc80877a23dc0 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:47 +0000 Subject: [PATCH 319/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Confirm-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md-v1.0 --- ...oftAuthenticatorMethodDeviceMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Confirm-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md b/src/Users.Actions/Users.Actions/examples/v1.0/Confirm-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md index 093355d11d5..3e902e8d1d2 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Confirm-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Confirm-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 130075d5a0eaab594601467ad6be2b596d4e9296 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:48 +0000 Subject: [PATCH 320/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Confirm-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md-v1.0 --- ...HelloForBusinessMethodDeviceMemberGroup.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Confirm-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md b/src/Users.Actions/Users.Actions/examples/v1.0/Confirm-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md index 093355d11d5..adecb5940f6 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Confirm-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Confirm-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + GroupIds = @( + "f448435d-3ca7-4073-8152-a1fd73c0fd09" + "bd7c6263-4dd5-4ae8-8c96-556e1c0bece6" + "93670da6-d731-4366-94b5-abed40b6016b" + "f5484ab1-4d4d-41ec-a9b8-754b3957bfc7" + "c9103f26-f3cf-4004-a611-2a14e81b8f79" + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Confirm-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Confirm-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 84fc28696b51dc3bafe8fc645ff0cee5fd7db65c Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:50 +0000 Subject: [PATCH 321/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Copy-MgUserDriveListContentTypeToDefaultContentLocation.md-v1.0 --- ...ListContentTypeToDefaultContentLocation.md | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserDriveListContentTypeToDefaultContentLocation.md b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserDriveListContentTypeToDefaultContentLocation.md index 093355d11d5..445347704fc 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserDriveListContentTypeToDefaultContentLocation.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserDriveListContentTypeToDefaultContentLocation.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Sites -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SourceFile = @{ + SharepointIds = @{ + ListId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" + ListItemId = "2" + } + } + DestinationFileName = "newname.txt" +} +Copy-MgSiteContentTypeToDefaultContentLocation -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params +``` +This example shows how to use the Copy-MgUserDriveListContentTypeToDefaultContentLocation Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 9f3c40dc8f42896f02ff2e0b0d7c182ddbc07b77 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:51 +0000 Subject: [PATCH 322/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Copy-MgUserMailFolderChildFolder.md-v1.0 --- .../v1.0/Copy-MgUserMailFolderChildFolder.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMailFolderChildFolder.md b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMailFolderChildFolder.md index 093355d11d5..051b88ab4f5 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMailFolderChildFolder.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMailFolderChildFolder.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + DestinationId = "destinationId-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +``` +This example shows how to use the Copy-MgUserMailFolderChildFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 9af025c4dd048fa7e368d9118447d6e7fb3a701b Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:52 +0000 Subject: [PATCH 323/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Copy-MgUserMailFolderChildFolderMessage.md-v1.0 --- ...Copy-MgUserMailFolderChildFolderMessage.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMailFolderChildFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMailFolderChildFolderMessage.md index 093355d11d5..84ae1584d18 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMailFolderChildFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMailFolderChildFolderMessage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + DestinationId = "destinationId-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Copy-MgUserMailFolderChildFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From fd9897d6a2581f2e8df6ff7f23da1f73aa70b7aa Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:52 +0000 Subject: [PATCH 324/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Copy-MgUserMailFolderMessage.md-v1.0 --- .../v1.0/Copy-MgUserMailFolderMessage.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMailFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMailFolderMessage.md index 093355d11d5..dc7699eff52 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMailFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMailFolderMessage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + DestinationId = "destinationId-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Copy-MgUserMailFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 9b5800cbeb0d15f7721494411e1a5d90025e64a3 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:57 +0000 Subject: [PATCH 325/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md-v1.0 --- ...oftAuthenticatorMethodDeviceMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md index 093355d11d5..76f62acd4a7 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 963a31e7da53fe78f2da81596f16db0c7702a68b Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:58 +0000 Subject: [PATCH 326/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberObject.md-v1.0 --- ...ftAuthenticatorMethodDeviceMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberObject.md b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberObject.md index 093355d11d5..aeadf0b5981 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberObject.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgUserAuthenticationMicrosoftAuthenticatorMethodDeviceMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From e8aeae837529b9f25c5a289145f828df34ba0308 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:58 +0000 Subject: [PATCH 327/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md-v1.0 --- ...HelloForBusinessMethodDeviceMemberGroup.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md index 093355d11d5..0a4b218b967 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Check group memberships for a directory object -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $false +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Check group memberships for the signed-in user -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberGroup Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From a03dafbe24c8bee54cdbee000d5bbff27c01d281 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:59 +0000 Subject: [PATCH 328/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberObject.md-v1.0 --- ...elloForBusinessMethodDeviceMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberObject.md b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberObject.md index 093355d11d5..bbc628d4fcf 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberObject.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgUserAuthenticationWindowHelloForBusinessMethodDeviceMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From ca20af1951cf091a932f7a56065fa06ba9fc240f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:44:59 +0000 Subject: [PATCH 329/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Get-MgUserById.md-v1.0 --- .../examples/v1.0/Get-MgUserById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserById.md b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserById.md index 093355d11d5..76a8aa65ee7 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserById.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgUserById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 82c240c97a63fcdf0050c793a25b350d37e9ba92 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:00 +0000 Subject: [PATCH 330/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Get-MgUserCalendarSchedule.md-v1.0 --- .../v1.0/Get-MgUserCalendarSchedule.md | 38 +++++++++++-------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserCalendarSchedule.md b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserCalendarSchedule.md index 093355d11d5..046e57d6575 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserCalendarSchedule.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserCalendarSchedule.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Schedules = @( + "adelev@contoso.onmicrosoft.com" + "meganb@contoso.onmicrosoft.com" + ) + StartTime = @{ + DateTime = "2019-03-15T09:00:00" + TimeZone = "Pacific Standard Time" + } + EndTime = @{ + DateTime = "2019-03-15T18:00:00" + TimeZone = "Pacific Standard Time" + } + AvailabilityViewInterval = 60 +} +# A UPN can also be used as -UserId. +Get-MgUserDefaultCalendarSchedule -UserId $userId -BodyParameter $params +``` +This example shows how to use the Get-MgUserCalendarSchedule Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From da01e45064167a90026453c31326b84a5d186209 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:02 +0000 Subject: [PATCH 331/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Get-MgUserMemberObject.md-v1.0 --- .../examples/v1.0/Get-MgUserMemberObject.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserMemberObject.md b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserMemberObject.md index 093355d11d5..f6036bc7644 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserMemberObject.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserMemberObject.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params +``` +This example shows how to use the Get-MgUserMemberObject Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 31b9f2b439a605e70eafa0816d8bd316bb7c9191 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:04 +0000 Subject: [PATCH 332/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Grant-MgUserDriveItemPermission.md-v1.0 --- .../v1.0/Grant-MgUserDriveItemPermission.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Grant-MgUserDriveItemPermission.md b/src/Users.Actions/Users.Actions/examples/v1.0/Grant-MgUserDriveItemPermission.md index 093355d11d5..4d1fdc1f646 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Grant-MgUserDriveItemPermission.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Grant-MgUserDriveItemPermission.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Recipients = @( + @{ + Email = "john@contoso.com" + } + @{ + Email = "ryan@external.com" + } + ) + Roles = @( + "read" + ) +} +Grant-MgSharePermission -SharedDriveItemId $sharedDriveItemId -BodyParameter $params +``` +This example shows how to use the Grant-MgUserDriveItemPermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 3c47ac34f5ba0a1079fd04ebe093039ada70cd84 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:05 +0000 Subject: [PATCH 333/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Grant-MgUserDriveRootPermission.md-v1.0 --- .../v1.0/Grant-MgUserDriveRootPermission.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Grant-MgUserDriveRootPermission.md b/src/Users.Actions/Users.Actions/examples/v1.0/Grant-MgUserDriveRootPermission.md index 093355d11d5..3fb1b62a5c6 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Grant-MgUserDriveRootPermission.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Grant-MgUserDriveRootPermission.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Recipients = @( + @{ + Email = "john@contoso.com" + } + @{ + Email = "ryan@external.com" + } + ) + Roles = @( + "read" + ) +} +Grant-MgSharePermission -SharedDriveItemId $sharedDriveItemId -BodyParameter $params +``` +This example shows how to use the Grant-MgUserDriveRootPermission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 14522eb0893659e109dd616777913dc2c0caca08 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:06 +0000 Subject: [PATCH 334/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Invoke-MgAcceptUserEventInstance.md-v1.0 --- .../v1.0/Invoke-MgAcceptUserEventInstance.md | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgAcceptUserEventInstance.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgAcceptUserEventInstance.md index 093355d11d5..cb86a452b48 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgAcceptUserEventInstance.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgAcceptUserEventInstance.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" + SendResponse = $true +} +# A UPN can also be used as -UserId. +Invoke-MgAcceptUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgAcceptUserEventInstance Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 5f041118720b39f113264dfd76895640c57383a3 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:06 +0000 Subject: [PATCH 335/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Invoke-MgAcceptUserEventInstanceTentatively.md-v1.0 --- ...ke-MgAcceptUserEventInstanceTentatively.md | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgAcceptUserEventInstanceTentatively.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgAcceptUserEventInstanceTentatively.md index 093355d11d5..25f934ca8de 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgAcceptUserEventInstanceTentatively.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgAcceptUserEventInstanceTentatively.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "I may not be able to make this week. How about next week?" + SendResponse = $true + ProposedNewTime = @{ + Start = @{ + DateTime = "2019-12-02T18:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-12-02T19:00:00" + TimeZone = "Pacific Standard Time" + } + } +} +# A UPN can also be used as -UserId. +Invoke-MgAcceptUserEventTentatively -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgAcceptUserEventInstanceTentatively Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 233b3b35aebfb2fe0115c0a20f49a2121e300418 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:07 +0000 Subject: [PATCH 336/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Invoke-MgCheckinUserDriveItem.md-v1.0 --- .../v1.0/Invoke-MgCheckinUserDriveItem.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCheckinUserDriveItem.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCheckinUserDriveItem.md index 093355d11d5..8f638a5f8cd 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCheckinUserDriveItem.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCheckinUserDriveItem.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "Updating the latest guidelines" +} +Invoke-MgCheckinDriveItem -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params +``` +This example shows how to use the Invoke-MgCheckinUserDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 2268ccd67cec1933572bb377fb8b4f548cc7258a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:08 +0000 Subject: [PATCH 337/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Invoke-MgCheckinUserDriveRoot.md-v1.0 --- .../v1.0/Invoke-MgCheckinUserDriveRoot.md | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCheckinUserDriveRoot.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCheckinUserDriveRoot.md index 093355d11d5..27308cc618f 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCheckinUserDriveRoot.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCheckinUserDriveRoot.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Files -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "Updating the latest guidelines" +} +Invoke-MgCheckinDriveItem -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params +``` +This example shows how to use the Invoke-MgCheckinUserDriveRoot Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 37884a8eaa6d97a0b96289cbe75119c447a84c04 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:08 +0000 Subject: [PATCH 338/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Invoke-MgCheckoutUserDriveItem.md-v1.0 --- .../v1.0/Invoke-MgCheckoutUserDriveItem.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCheckoutUserDriveItem.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCheckoutUserDriveItem.md index 093355d11d5..60730186efe 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCheckoutUserDriveItem.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCheckoutUserDriveItem.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Files +Invoke-MgCheckoutDriveItem -DriveId $driveId -DriveItemId $driveItemId +``` +This example shows how to use the Invoke-MgCheckoutUserDriveItem Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From b0e8ab95324922c30a135ac8f4869ebbdbac8cf5 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:09 +0000 Subject: [PATCH 339/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Invoke-MgCheckoutUserDriveRoot.md-v1.0 --- .../v1.0/Invoke-MgCheckoutUserDriveRoot.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCheckoutUserDriveRoot.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCheckoutUserDriveRoot.md index 093355d11d5..a98823b5db5 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCheckoutUserDriveRoot.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCheckoutUserDriveRoot.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Files +Invoke-MgCheckoutDriveItem -DriveId $driveId -DriveItemId $driveItemId +``` +This example shows how to use the Invoke-MgCheckoutUserDriveRoot Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 147f857344f962a8cc20e24846cc0a9aa74d0418 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:10 +0000 Subject: [PATCH 340/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Invoke-MgDeclineUserEventInstance.md-v1.0 --- .../v1.0/Invoke-MgDeclineUserEventInstance.md | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgDeclineUserEventInstance.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgDeclineUserEventInstance.md index 093355d11d5..a234c78ff37 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgDeclineUserEventInstance.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgDeclineUserEventInstance.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "I won't be able to make this week. How about next week?" + SendResponse = $true + ProposedNewTime = @{ + Start = @{ + DateTime = "2019-12-02T18:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-12-02T19:00:00" + TimeZone = "Pacific Standard Time" + } + } +} +# A UPN can also be used as -UserId. +Invoke-MgDeclineUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgDeclineUserEventInstance Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 24288efb1ff1a86f94b65e129ad6026e56260c41 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:11 +0000 Subject: [PATCH 341/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Invoke-MgDismissUserEventInstanceReminder.md-v1.0 --- ...voke-MgDismissUserEventInstanceReminder.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgDismissUserEventInstanceReminder.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgDismissUserEventInstanceReminder.md index 093355d11d5..df58336be21 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgDismissUserEventInstanceReminder.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgDismissUserEventInstanceReminder.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Invoke-MgDismissUserEventReminder -UserId $userId -EventId $eventId +``` +This example shows how to use the Invoke-MgDismissUserEventInstanceReminder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 2471c323897fc3110c5e70b2a31201f3b475e023 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:13 +0000 Subject: [PATCH 342/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Invoke-MgForwardUserEventInstance.md-v1.0 --- .../v1.0/Invoke-MgForwardUserEventInstance.md | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserEventInstance.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserEventInstance.md index 093355d11d5..3dec9ed2cd5 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserEventInstance.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserEventInstance.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "danas@contoso.onmicrosoft.com" + Name = "Dana Swope" + } + } + ) + Comment = "Dana, hope you can make this meeting." +} +# A UPN can also be used as -UserId. +Invoke-MgForwardUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgForwardUserEventInstance Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 9e5bbf9bb9de5390a6ff192f3a38996899304ca7 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:13 +0000 Subject: [PATCH 343/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Invoke-MgForwardUserMailFolderChildFolderMessage.md-v1.0 --- ...ForwardUserMailFolderChildFolderMessage.md | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserMailFolderChildFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserMailFolderChildFolderMessage.md index 093355d11d5..35563597482 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserMailFolderChildFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserMailFolderChildFolderMessage.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" + ToRecipients = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) +} +# A UPN can also be used as -UserId. +Invoke-MgForwardUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Invoke-MgForwardUserMailFolderChildFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 10bb46cf4b63602084f19b5f5e86422bf2f06000 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:14 +0000 Subject: [PATCH 344/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Invoke-MgForwardUserMailFolderMessage.md-v1.0 --- .../Invoke-MgForwardUserMailFolderMessage.md | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserMailFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserMailFolderMessage.md index 093355d11d5..1ddbae7dcfc 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserMailFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserMailFolderMessage.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" + ToRecipients = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) +} +# A UPN can also be used as -UserId. +Invoke-MgForwardUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Invoke-MgForwardUserMailFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From f098adb3165914c92c88f69b5b93ad4c775adbca Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:17 +0000 Subject: [PATCH 345/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Invoke-MgReplyAllUserMailFolderChildFolderMessage.md-v1.0 --- ...eplyAllUserMailFolderChildFolderMessage.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyAllUserMailFolderChildFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyAllUserMailFolderChildFolderMessage.md index 093355d11d5..85095ef3084 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyAllUserMailFolderChildFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyAllUserMailFolderChildFolderMessage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" +} +# A UPN can also be used as -UserId. +Invoke-MgReplyAllUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyAllUserMailFolderChildFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From a81c3270d7fcc202d60fd51ff562a2b1733a7c2f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:17 +0000 Subject: [PATCH 346/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Invoke-MgReplyAllUserMailFolderMessage.md-v1.0 --- .../Invoke-MgReplyAllUserMailFolderMessage.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyAllUserMailFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyAllUserMailFolderMessage.md index 093355d11d5..ab86853170f 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyAllUserMailFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyAllUserMailFolderMessage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "comment-value" +} +# A UPN can also be used as -UserId. +Invoke-MgReplyAllUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyAllUserMailFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 139eb533e4d864fd15fdbf27b3c0e7b4d0b2071a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:18 +0000 Subject: [PATCH 347/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Invoke-MgReplyUserMailFolderChildFolderMessage.md-v1.0 --- ...MgReplyUserMailFolderChildFolderMessage.md | 42 ++++++++++++------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyUserMailFolderChildFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyUserMailFolderChildFolderMessage.md index 093355d11d5..071140060cd 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyUserMailFolderChildFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyUserMailFolderChildFolderMessage.md @@ -1,18 +1,30 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Reply in JSON format to an existing message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Message = @{ + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "samanthab@contoso.onmicrosoft.com" + Name = "Samantha Booth" + } + } + @{ + EmailAddress = @{ + Address = "randiw@contoso.onmicrosoft.com" + Name = "Randi Welch" + } + } + ) + } + Comment = "Samantha, Randi, would you name the group please?" +} +# A UPN can also be used as -UserId. +Invoke-MgReplyUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyUserMailFolderChildFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 12c0b4f2a0d9b0c61e3c6e741412e5c5aa763058 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:19 +0000 Subject: [PATCH 348/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Invoke-MgReplyUserMailFolderMessage.md-v1.0 --- .../Invoke-MgReplyUserMailFolderMessage.md | 42 ++++++++++++------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyUserMailFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyUserMailFolderMessage.md index 093355d11d5..52098f52e1c 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyUserMailFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyUserMailFolderMessage.md @@ -1,18 +1,30 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Reply in JSON format to an existing message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Message = @{ + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "samanthab@contoso.onmicrosoft.com" + Name = "Samantha Booth" + } + } + @{ + EmailAddress = @{ + Address = "randiw@contoso.onmicrosoft.com" + Name = "Randi Welch" + } + } + ) + } + Comment = "Samantha, Randi, would you name the group please?" +} +# A UPN can also be used as -UserId. +Invoke-MgReplyUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Invoke-MgReplyUserMailFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From fa6b76ad7ba3d2d1c6d3153c392a8e89b268f48a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:20 +0000 Subject: [PATCH 349/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Invoke-MgSnoozeUserEventInstanceReminder.md-v1.0 --- ...nvoke-MgSnoozeUserEventInstanceReminder.md | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgSnoozeUserEventInstanceReminder.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgSnoozeUserEventInstanceReminder.md index 093355d11d5..81763cdfc02 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgSnoozeUserEventInstanceReminder.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgSnoozeUserEventInstanceReminder.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + NewReminderTime = @{ + DateTime = "dateTime-value" + TimeZone = "timeZone-value" + } +} +# A UPN can also be used as -UserId. +Invoke-MgSnoozeUserEventReminder -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Invoke-MgSnoozeUserEventInstanceReminder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 229edecf6f934b6de9ce3f5e5c5b55aa6b509dbd Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:23 +0000 Subject: [PATCH 350/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Move-MgUserMailFolderChildFolder.md-v1.0 --- .../v1.0/Move-MgUserMailFolderChildFolder.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMailFolderChildFolder.md b/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMailFolderChildFolder.md index 093355d11d5..370c9176d9e 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMailFolderChildFolder.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMailFolderChildFolder.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + DestinationId = "destinationId-value" +} +# A UPN can also be used as -UserId. +Move-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params +``` +This example shows how to use the Move-MgUserMailFolderChildFolder Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 4141f5967e0ab9539dd056b24b2eea7f84c60f2c Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:23 +0000 Subject: [PATCH 351/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Move-MgUserMailFolderChildFolderMessage.md-v1.0 --- ...Move-MgUserMailFolderChildFolderMessage.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMailFolderChildFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMailFolderChildFolderMessage.md index 093355d11d5..8fe114b45bb 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMailFolderChildFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMailFolderChildFolderMessage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + DestinationId = "deleteditems" +} +# A UPN can also be used as -UserId. +Move-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Move-MgUserMailFolderChildFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From cbf7bd5258eae9baab8b269e54e7171cab991c8f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:24 +0000 Subject: [PATCH 352/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Move-MgUserMailFolderMessage.md-v1.0 --- .../v1.0/Move-MgUserMailFolderMessage.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMailFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMailFolderMessage.md index 093355d11d5..95da4d63458 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMailFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMailFolderMessage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + DestinationId = "deleteditems" +} +# A UPN can also be used as -UserId. +Move-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the Move-MgUserMailFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 458d7cf3d98e2359325527c64dc07eb53b02c115 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:27 +0000 Subject: [PATCH 353/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/New-MgUserEventAttachmentUploadSession.md-v1.0 --- .../New-MgUserEventAttachmentUploadSession.md | 44 ++++++++++++++----- 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserEventAttachmentUploadSession.md b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserEventAttachmentUploadSession.md index 093355d11d5..fa387e60be3 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserEventAttachmentUploadSession.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserEventAttachmentUploadSession.md @@ -1,18 +1,38 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Create an upload session to add a large attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "flower" + Size = 3483322 + } +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserEventAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an upload session to add a large in-line attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "scenary" + Size = 7208534 + IsInline = $true + ContentId = "my_inline_picture" + } +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserEventAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 8edcc6e8ffdf9b3f64d58e80caee36ade84dd947 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:27 +0000 Subject: [PATCH 354/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/New-MgUserEventInstanceAttachmentUploadSession.md-v1.0 --- ...serEventInstanceAttachmentUploadSession.md | 44 ++++++++++++++----- 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserEventInstanceAttachmentUploadSession.md b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserEventInstanceAttachmentUploadSession.md index 093355d11d5..8924d1609a3 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserEventInstanceAttachmentUploadSession.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserEventInstanceAttachmentUploadSession.md @@ -1,18 +1,38 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Create an upload session to add a large attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "flower" + Size = 3483322 + } +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserEventInstanceAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an upload session to add a large in-line attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "scenary" + Size = 7208534 + IsInline = $true + ContentId = "my_inline_picture" + } +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserEventInstanceAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From d8bf031e924a580311ab68730fc9a3bffc4a4da6 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:28 +0000 Subject: [PATCH 355/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/New-MgUserMailFolderChildFolderMessageAttachmentUploadSession.md-v1.0 --- ...ildFolderMessageAttachmentUploadSession.md | 44 ++++++++++++++----- 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderChildFolderMessageAttachmentUploadSession.md b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderChildFolderMessageAttachmentUploadSession.md index 093355d11d5..5389e66879f 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderChildFolderMessageAttachmentUploadSession.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderChildFolderMessageAttachmentUploadSession.md @@ -1,18 +1,38 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Create an upload session to add a large attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "flower" + Size = 3483322 + } +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserMailFolderChildFolderMessageAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an upload session to add a large in-line attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "scenary" + Size = 7208534 + IsInline = $true + ContentId = "my_inline_picture" + } +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserMailFolderChildFolderMessageAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From b74b49f03626ec2ab6c87aaf50384464c46820c0 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:29 +0000 Subject: [PATCH 356/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/New-MgUserMailFolderChildFolderMessageForward.md-v1.0 --- ...UserMailFolderChildFolderMessageForward.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderChildFolderMessageForward.md b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderChildFolderMessageForward.md index 093355d11d5..f18d8d15fab 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderChildFolderMessageForward.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderChildFolderMessageForward.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +New-MgUserMessageForward -UserId $userId -MessageId $messageId +``` +This example shows how to use the New-MgUserMailFolderChildFolderMessageForward Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 0d984169663af21e2dd11b3a3e965154ada8ee20 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:29 +0000 Subject: [PATCH 357/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/New-MgUserMailFolderChildFolderMessageReply.md-v1.0 --- ...MgUserMailFolderChildFolderMessageReply.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderChildFolderMessageReply.md b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderChildFolderMessageReply.md index 093355d11d5..cb4b65893fc 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderChildFolderMessageReply.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderChildFolderMessageReply.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +New-MgUserMessageReply -UserId $userId -MessageId $messageId +``` +This example shows how to use the New-MgUserMailFolderChildFolderMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 9b8a71f1303963996b20c2127fd00f4add6b9a85 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:30 +0000 Subject: [PATCH 358/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/New-MgUserMailFolderChildFolderMessageReplyAll.md-v1.0 --- ...serMailFolderChildFolderMessageReplyAll.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderChildFolderMessageReplyAll.md b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderChildFolderMessageReplyAll.md index 093355d11d5..758cb737c61 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderChildFolderMessageReplyAll.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderChildFolderMessageReplyAll.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +New-MgUserMessageReplyAll -UserId $userId -MessageId $messageId +``` +This example shows how to use the New-MgUserMailFolderChildFolderMessageReplyAll Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 5e0b234a8f37988f91e6719ded19f32ec5e040a9 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:31 +0000 Subject: [PATCH 359/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/New-MgUserMailFolderMessageAttachmentUploadSession.md-v1.0 --- ...ailFolderMessageAttachmentUploadSession.md | 44 ++++++++++++++----- 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderMessageAttachmentUploadSession.md b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderMessageAttachmentUploadSession.md index 093355d11d5..96fea451bfb 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderMessageAttachmentUploadSession.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderMessageAttachmentUploadSession.md @@ -1,18 +1,38 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Create an upload session to add a large attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "flower" + Size = 3483322 + } +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserMailFolderMessageAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Create an upload session to add a large in-line attachment to a draft message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "scenary" + Size = 7208534 + IsInline = $true + ContentId = "my_inline_picture" + } +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params +``` +This example shows how to use the New-MgUserMailFolderMessageAttachmentUploadSession Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 672ea1f8c3dadee6c2ba2dbfe22ba378dc32b99e Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:31 +0000 Subject: [PATCH 360/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/New-MgUserMailFolderMessageForward.md-v1.0 --- .../New-MgUserMailFolderMessageForward.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderMessageForward.md b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderMessageForward.md index 093355d11d5..5b54feb3733 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderMessageForward.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderMessageForward.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +New-MgUserMessageForward -UserId $userId -MessageId $messageId +``` +This example shows how to use the New-MgUserMailFolderMessageForward Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From d456568e0b8574488264be3eb017b54337ae159f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:32 +0000 Subject: [PATCH 361/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/New-MgUserMailFolderMessageReply.md-v1.0 --- .../v1.0/New-MgUserMailFolderMessageReply.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderMessageReply.md b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderMessageReply.md index 093355d11d5..b5e01819a5c 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderMessageReply.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderMessageReply.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +New-MgUserMessageReply -UserId $userId -MessageId $messageId +``` +This example shows how to use the New-MgUserMailFolderMessageReply Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 342532f19a60eab405e4a0631d856d0135ac3b94 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:32 +0000 Subject: [PATCH 362/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/New-MgUserMailFolderMessageReplyAll.md-v1.0 --- .../New-MgUserMailFolderMessageReplyAll.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderMessageReplyAll.md b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderMessageReplyAll.md index 093355d11d5..da05634057f 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderMessageReplyAll.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMailFolderMessageReplyAll.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +New-MgUserMessageReplyAll -UserId $userId -MessageId $messageId +``` +This example shows how to use the New-MgUserMailFolderMessageReplyAll Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 403a937807208cbfb61fd3860153922fb804a18f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:35 +0000 Subject: [PATCH 363/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Publish-MgUserDriveListContentType.md-v1.0 --- .../Publish-MgUserDriveListContentType.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Publish-MgUserDriveListContentType.md b/src/Users.Actions/Users.Actions/examples/v1.0/Publish-MgUserDriveListContentType.md index 093355d11d5..8fd52d70b60 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Publish-MgUserDriveListContentType.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Publish-MgUserDriveListContentType.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Publish-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId +``` +This example shows how to use the Publish-MgUserDriveListContentType Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 282f356adf5e8a15f27a960e8b51201e37ffa565 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:37 +0000 Subject: [PATCH 364/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Restore-MgUserDriveItemListItemDocumentSetVersion.md-v1.0 --- ...UserDriveItemListItemDocumentSetVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveItemListItemDocumentSetVersion.md b/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveItemListItemDocumentSetVersion.md index 093355d11d5..80ddf586691 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveItemListItemDocumentSetVersion.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveItemListItemDocumentSetVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId +``` +This example shows how to use the Restore-MgUserDriveItemListItemDocumentSetVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From d7543ab65b6b6377bdd132b39c2d30f7daabf39a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:37 +0000 Subject: [PATCH 365/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Restore-MgUserDriveItemListItemVersion.md-v1.0 --- .../Restore-MgUserDriveItemListItemVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveItemListItemVersion.md b/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveItemListItemVersion.md index 093355d11d5..be8a6f9250e 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveItemListItemVersion.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveItemListItemVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -ListItemVersionId $listItemVersionId +``` +This example shows how to use the Restore-MgUserDriveItemListItemVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From c3cc9cb9bddb1aa2334890d821d3167fe703805d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:38 +0000 Subject: [PATCH 366/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Restore-MgUserDriveItemVersion.md-v1.0 --- .../v1.0/Restore-MgUserDriveItemVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveItemVersion.md b/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveItemVersion.md index 093355d11d5..eac675e665e 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveItemVersion.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveItemVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Files +Restore-MgDriveItemVersion -DriveId $driveId -DriveItemId $driveItemId -DriveItemVersionId $driveItemVersionId +``` +This example shows how to use the Restore-MgUserDriveItemVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From a9ba8ab361a2d6861261a1213d7e6cea67181136 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:39 +0000 Subject: [PATCH 367/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Restore-MgUserDriveListItemDocumentSetVersion.md-v1.0 --- ...e-MgUserDriveListItemDocumentSetVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveListItemDocumentSetVersion.md b/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveListItemDocumentSetVersion.md index 093355d11d5..f9642a3a347 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveListItemDocumentSetVersion.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveListItemDocumentSetVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId +``` +This example shows how to use the Restore-MgUserDriveListItemDocumentSetVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 67ee2d13ffb11efd38587faae0097e5330e4cb79 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:39 +0000 Subject: [PATCH 368/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Restore-MgUserDriveListItemVersion.md-v1.0 --- .../Restore-MgUserDriveListItemVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveListItemVersion.md b/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveListItemVersion.md index 093355d11d5..0eef97795b3 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveListItemVersion.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveListItemVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -ListItemVersionId $listItemVersionId +``` +This example shows how to use the Restore-MgUserDriveListItemVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 45c77f329d3fa64ca855739723909833d25e8ed0 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:40 +0000 Subject: [PATCH 369/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Restore-MgUserDriveRootListItemDocumentSetVersion.md-v1.0 --- ...UserDriveRootListItemDocumentSetVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveRootListItemDocumentSetVersion.md b/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveRootListItemDocumentSetVersion.md index 093355d11d5..9d6fbba489a 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveRootListItemDocumentSetVersion.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveRootListItemDocumentSetVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId +``` +This example shows how to use the Restore-MgUserDriveRootListItemDocumentSetVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 535bb28e83ab4f66cf58a921bacbbf534baaf16f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:40 +0000 Subject: [PATCH 370/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Restore-MgUserDriveRootListItemVersion.md-v1.0 --- .../Restore-MgUserDriveRootListItemVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveRootListItemVersion.md b/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveRootListItemVersion.md index 093355d11d5..95457d40c66 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveRootListItemVersion.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveRootListItemVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -ListItemVersionId $listItemVersionId +``` +This example shows how to use the Restore-MgUserDriveRootListItemVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 823a3da74193f5dbe5caf8af2ae3bf7f6a131ea1 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:41 +0000 Subject: [PATCH 371/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Restore-MgUserDriveRootVersion.md-v1.0 --- .../v1.0/Restore-MgUserDriveRootVersion.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveRootVersion.md b/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveRootVersion.md index 093355d11d5..0c25ae4e992 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveRootVersion.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Restore-MgUserDriveRootVersion.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Files +Restore-MgDriveItemVersion -DriveId $driveId -DriveItemId $driveItemId -DriveItemVersionId $driveItemVersionId +``` +This example shows how to use the Restore-MgUserDriveRootVersion Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From ad1efc2fcf93fda17078c2cbea7e5b3f15473c4f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:42 +0000 Subject: [PATCH 372/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Send-MgUserChatActivityNotification.md-v1.0 --- .../Send-MgUserChatActivityNotification.md | 127 ++++++++++++++++-- 1 file changed, 115 insertions(+), 12 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserChatActivityNotification.md b/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserChatActivityNotification.md index 093355d11d5..01706ed6638 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserChatActivityNotification.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserChatActivityNotification.md @@ -1,18 +1,121 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Notify a user about a task created in a chat -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/v1.0/chats/{chatId}" + } + ActivityType = "taskCreated" + PreviewText = @{ + Content = "New Task Created" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + TemplateParameters = @( + @{ + Name = "taskId" + Value = "Task 12322" + } + ) +} -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +Send-MgChatActivityNotification -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the Send-MgUserChatActivityNotification Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 2: Notify a user about an approval needed in a chat message -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Teams -{{ Add description here }} +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/v1.0/chats/{chatId}/messages/{messageId}" + } + ActivityType = "approvalRequired" + PreviewText = @{ + Content = "Deployment requires your approval" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + TemplateParameters = @( + @{ + Name = "approvalTaskId" + Value = "2020AAGGTAPP" + } + ) +} +Send-MgChatActivityNotification -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the Send-MgUserChatActivityNotification Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 3: Notify a user about an approval needed in a chat message using user principal name + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/v1.0/chats/{chatId}/messages/{messageId}" + } + ActivityType = "approvalRequired" + PreviewText = @{ + Content = "Deployment requires your approval" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "jacob@contoso.com" + } + TemplateParameters = @( + @{ + Name = "approvalTaskId" + Value = "2020AAGGTAPP" + } + ) +} + +Send-MgChatActivityNotification -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the Send-MgUserChatActivityNotification Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + +### Example 4: Notify a user about an event in relation to a chat + +```powershell Import-Module Microsoft.Graph.Teams + +$params = @{ + Topic = @{ + Source = "text" + Value = "Deployment Approvals Channel" + WebUrl = "https://teams.microsoft.com/l/message/19:448cfd2ac2a7490a9084a9ed14cttr78c@thread.skype/1605223780000?tenantId=c8b1bf45-3834-4ecf-971a-b4c755ee677d&groupId=d4c2a937-f097-435a-bc91-5c1683ca7245&parentMessageId=1605223771864&teamName=Approvals&channelName=Azure%20DevOps&createdTime=1605223780000" + } + ActivityType = "deploymentApprovalRequired" + PreviewText = @{ + Content = "New deployment requires your approval" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + TemplateParameters = @( + @{ + Name = "deploymentId" + Value = "6788662" + } + ) +} + +Send-MgChatActivityNotification -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the Send-MgUserChatActivityNotification Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From e1a08c1e7e3d5c2f4182e548daa01c86c506f7a3 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:43 +0000 Subject: [PATCH 373/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Send-MgUserMailFolderChildFolderMessage.md-v1.0 --- ...Send-MgUserMailFolderChildFolderMessage.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserMailFolderChildFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserMailFolderChildFolderMessage.md index 093355d11d5..c403d03f08a 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserMailFolderChildFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserMailFolderChildFolderMessage.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Send an existing draft message -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Send-MgUserMessage -UserId $userId -MessageId $messageId +``` +This example shows how to use the Send-MgUserMailFolderChildFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From fa1ec4403e9cc3800e5960511004492db2c66bfe Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:43 +0000 Subject: [PATCH 374/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Send-MgUserMailFolderMessage.md-v1.0 --- .../v1.0/Send-MgUserMailFolderMessage.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserMailFolderMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserMailFolderMessage.md index 093355d11d5..39ab51b6b42 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserMailFolderMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserMailFolderMessage.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Send an existing draft message -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Send-MgUserMessage -UserId $userId -MessageId $messageId +``` +This example shows how to use the Send-MgUserMailFolderMessage Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 142f921652a6981f76f47d2ea6f63e0352c49f8a Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:47 +0000 Subject: [PATCH 375/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Stop-MgUserEventInstance.md-v1.0 --- .../examples/v1.0/Stop-MgUserEventInstance.md | 26 ++++++++----------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Stop-MgUserEventInstance.md b/src/Users.Actions/Users.Actions/examples/v1.0/Stop-MgUserEventInstance.md index 093355d11d5..79ec1599496 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Stop-MgUserEventInstance.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Stop-MgUserEventInstance.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.Users.Actions -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Comment = "Cancelling for this week due to all hands" +} +# A UPN can also be used as -UserId. +Stop-MgUserEvent -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the Stop-MgUserEventInstance Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 41850f50549913d029fd6e5362e43c6241e5788e Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:48 +0000 Subject: [PATCH 376/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Test-MgUserProperty.md-v1.0 --- .../examples/v1.0/Test-MgUserProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Test-MgUserProperty.md b/src/Users.Actions/Users.Actions/examples/v1.0/Test-MgUserProperty.md index 093355d11d5..9736bc8d879 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Test-MgUserProperty.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Test-MgUserProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgUserProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 51f2eb2fae4feafbeaacbfb3baa80bbc6dc72f6d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:49 +0000 Subject: [PATCH 377/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Unpublish-MgUserDriveListContentType.md-v1.0 --- .../Unpublish-MgUserDriveListContentType.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Unpublish-MgUserDriveListContentType.md b/src/Users.Actions/Users.Actions/examples/v1.0/Unpublish-MgUserDriveListContentType.md index 093355d11d5..ff66e2ef2bc 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Unpublish-MgUserDriveListContentType.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Unpublish-MgUserDriveListContentType.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Sites +Unpublish-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId +``` +This example shows how to use the Unpublish-MgUserDriveListContentType Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From c4a92a0839ee54d70f6acb8cc2b66fe59b2a134f Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:45:49 +0000 Subject: [PATCH 378/388] Examples update on D:\a\_work\1\s\tools\..\src\Users.Actions\Users.Actions\examples\v1.0/Update-MgUserChatInstalledApp.md-v1.0 --- .../v1.0/Update-MgUserChatInstalledApp.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Update-MgUserChatInstalledApp.md b/src/Users.Actions/Users.Actions/examples/v1.0/Update-MgUserChatInstalledApp.md index 093355d11d5..122cedeb49a 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Update-MgUserChatInstalledApp.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Update-MgUserChatInstalledApp.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Teams +Update-MgChatInstalledApp -ChatId $chatId -TeamsAppInstallationId $teamsAppInstallationId +``` +This example shows how to use the Update-MgUserChatInstalledApp Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 1c004d56f06e7ac057b4d4fb43da3c34478fc2cd Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:47:54 +0000 Subject: [PATCH 379/388] Examples update on D:\a\_work\1\s\tools\..\src\Education\Education\examples\v1.0/Invoke-MgReturnEducationMeAssignmentSubmission.md-v1.0 --- ...MgReturnEducationMeAssignmentSubmission.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Education/Education/examples/v1.0/Invoke-MgReturnEducationMeAssignmentSubmission.md b/src/Education/Education/examples/v1.0/Invoke-MgReturnEducationMeAssignmentSubmission.md index 093355d11d5..1a389760868 100644 --- a/src/Education/Education/examples/v1.0/Invoke-MgReturnEducationMeAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0/Invoke-MgReturnEducationMeAssignmentSubmission.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Education +Invoke-MgReturnEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the Invoke-MgReturnEducationMeAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From abb222624b086fa4f4e7bef37edc125b77ae7a0c Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:47:55 +0000 Subject: [PATCH 380/388] Examples update on D:\a\_work\1\s\tools\..\src\Education\Education\examples\v1.0/Invoke-MgReturnEducationUserAssignmentSubmission.md-v1.0 --- ...ReturnEducationUserAssignmentSubmission.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Education/Education/examples/v1.0/Invoke-MgReturnEducationUserAssignmentSubmission.md b/src/Education/Education/examples/v1.0/Invoke-MgReturnEducationUserAssignmentSubmission.md index 093355d11d5..744eef9a72a 100644 --- a/src/Education/Education/examples/v1.0/Invoke-MgReturnEducationUserAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0/Invoke-MgReturnEducationUserAssignmentSubmission.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Education +Invoke-MgReturnEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the Invoke-MgReturnEducationUserAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 4f0da8ed8426e5b40bb40163a2aa61ce8c145e28 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:47:56 +0000 Subject: [PATCH 381/388] Examples update on D:\a\_work\1\s\tools\..\src\Education\Education\examples\v1.0/Invoke-MgUnsubmitEducationMeAssignmentSubmission.md-v1.0 --- ...UnsubmitEducationMeAssignmentSubmission.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Education/Education/examples/v1.0/Invoke-MgUnsubmitEducationMeAssignmentSubmission.md b/src/Education/Education/examples/v1.0/Invoke-MgUnsubmitEducationMeAssignmentSubmission.md index 093355d11d5..44f5f342e35 100644 --- a/src/Education/Education/examples/v1.0/Invoke-MgUnsubmitEducationMeAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0/Invoke-MgUnsubmitEducationMeAssignmentSubmission.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Education +Invoke-MgUnsubmitEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the Invoke-MgUnsubmitEducationMeAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 27f755b02b79b201dcffc18f59d59697e1d6084d Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:47:56 +0000 Subject: [PATCH 382/388] Examples update on D:\a\_work\1\s\tools\..\src\Education\Education\examples\v1.0/Invoke-MgUnsubmitEducationUserAssignmentSubmission.md-v1.0 --- ...submitEducationUserAssignmentSubmission.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Education/Education/examples/v1.0/Invoke-MgUnsubmitEducationUserAssignmentSubmission.md b/src/Education/Education/examples/v1.0/Invoke-MgUnsubmitEducationUserAssignmentSubmission.md index 093355d11d5..a655241fe5d 100644 --- a/src/Education/Education/examples/v1.0/Invoke-MgUnsubmitEducationUserAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0/Invoke-MgUnsubmitEducationUserAssignmentSubmission.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Education +Invoke-MgUnsubmitEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the Invoke-MgUnsubmitEducationUserAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 1fdb83094e0af209fabbba2781aa17a35e2258e7 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:48:01 +0000 Subject: [PATCH 383/388] Examples update on D:\a\_work\1\s\tools\..\src\Education\Education\examples\v1.0/Publish-MgEducationMeAssignment.md-v1.0 --- .../v1.0/Publish-MgEducationMeAssignment.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Education/Education/examples/v1.0/Publish-MgEducationMeAssignment.md b/src/Education/Education/examples/v1.0/Publish-MgEducationMeAssignment.md index 093355d11d5..cc81d88e4c6 100644 --- a/src/Education/Education/examples/v1.0/Publish-MgEducationMeAssignment.md +++ b/src/Education/Education/examples/v1.0/Publish-MgEducationMeAssignment.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Education +Publish-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +``` +This example shows how to use the Publish-MgEducationMeAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 6424a9b0573f171eb56036d13c3c19e91772c0ec Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:48:01 +0000 Subject: [PATCH 384/388] Examples update on D:\a\_work\1\s\tools\..\src\Education\Education\examples\v1.0/Publish-MgEducationUserAssignment.md-v1.0 --- .../v1.0/Publish-MgEducationUserAssignment.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Education/Education/examples/v1.0/Publish-MgEducationUserAssignment.md b/src/Education/Education/examples/v1.0/Publish-MgEducationUserAssignment.md index 093355d11d5..ac1664e61a4 100644 --- a/src/Education/Education/examples/v1.0/Publish-MgEducationUserAssignment.md +++ b/src/Education/Education/examples/v1.0/Publish-MgEducationUserAssignment.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Education +Publish-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +``` +This example shows how to use the Publish-MgEducationUserAssignment Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 10dfb80d5ca01e94e98f18d0c461a56ac6e7df20 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:48:05 +0000 Subject: [PATCH 385/388] Examples update on D:\a\_work\1\s\tools\..\src\Education\Education\examples\v1.0/Submit-MgEducationMeAssignmentSubmission.md-v1.0 --- ...ubmit-MgEducationMeAssignmentSubmission.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Education/Education/examples/v1.0/Submit-MgEducationMeAssignmentSubmission.md b/src/Education/Education/examples/v1.0/Submit-MgEducationMeAssignmentSubmission.md index 093355d11d5..4a1e08d8fe6 100644 --- a/src/Education/Education/examples/v1.0/Submit-MgEducationMeAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0/Submit-MgEducationMeAssignmentSubmission.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Education +Submit-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the Submit-MgEducationMeAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From ec7d3e9fe9057088f693f299f1187d0f9a7ec897 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:48:06 +0000 Subject: [PATCH 386/388] Examples update on D:\a\_work\1\s\tools\..\src\Education\Education\examples\v1.0/Submit-MgEducationUserAssignmentSubmission.md-v1.0 --- ...mit-MgEducationUserAssignmentSubmission.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/Education/Education/examples/v1.0/Submit-MgEducationUserAssignmentSubmission.md b/src/Education/Education/examples/v1.0/Submit-MgEducationUserAssignmentSubmission.md index 093355d11d5..418ef34f455 100644 --- a/src/Education/Education/examples/v1.0/Submit-MgEducationUserAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0/Submit-MgEducationUserAssignmentSubmission.md @@ -1,18 +1,9 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +```powershell Import-Module Microsoft.Graph.Education +Submit-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the Submit-MgEducationUserAssignmentSubmission Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From 68fd6d29d12d4dd103a407836c85142fafa75f1c Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:49:03 +0000 Subject: [PATCH 387/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.SignIns\Identity.SignIns\examples\v1.0/Get-MgPolicyFeatureRolloutPolicyApplyToById.md-v1.0 --- ...MgPolicyFeatureRolloutPolicyApplyToById.md | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyFeatureRolloutPolicyApplyToById.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyFeatureRolloutPolicyApplyToById.md index 093355d11d5..09b2e72d3bb 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyFeatureRolloutPolicyApplyToById.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyFeatureRolloutPolicyApplyToById.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + Ids = @( + "84b80893-8749-40a3-97b7-68513b600544" + "5d6059b6-368d-45f8-91e1-8e07d485f1d0" + "0b944de3-e0fc-4774-a49a-b135213725ef" + "b75a5ab2-fe55-4463-bd31-d21ad555c6e0" + ) + Types = @( + "user" + "group" + "device" + ) +} +Get-MgDirectoryObjectById -BodyParameter $params +``` +This example shows how to use the Get-MgPolicyFeatureRolloutPolicyApplyToById Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + From b5f1abd33d23b88289795a0b976e1b1f77bdcca4 Mon Sep 17 00:00:00 2001 From: Timothy Wamalwa Date: Fri, 21 Oct 2022 03:49:21 +0000 Subject: [PATCH 388/388] Examples update on D:\a\_work\1\s\tools\..\src\Identity.SignIns\Identity.SignIns\examples\v1.0/Test-MgPolicyFeatureRolloutPolicyApplyToProperty.md-v1.0 --- ...licyFeatureRolloutPolicyApplyToProperty.md | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Test-MgPolicyFeatureRolloutPolicyApplyToProperty.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Test-MgPolicyFeatureRolloutPolicyApplyToProperty.md index 093355d11d5..dd1ecf2a5c8 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Test-MgPolicyFeatureRolloutPolicyApplyToProperty.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Test-MgPolicyFeatureRolloutPolicyApplyToProperty.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} +### Example 1: Code snippet -{{ Add output here }} -``` +```powershell Import-Module Microsoft.Graph.DirectoryObjects -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params +``` +This example shows how to use the Test-MgPolicyFeatureRolloutPolicyApplyToProperty Cmdlet. + To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +