diff --git a/src/Applications/Applications/examples/v1.0/Add-MgApplicationKey.md b/src/Applications/Applications/examples/v1.0/Add-MgApplicationKey.md index 093355d11d5..a9022723b6b 100644 --- a/src/Applications/Applications/examples/v1.0/Add-MgApplicationKey.md +++ b/src/Applications/Applications/examples/v1.0/Add-MgApplicationKey.md @@ -1,18 +1,34 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgApplicationKey Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + KeyCredential = @{ + Type = "AsymmetricX509Cert" + Usage = "Verify" + Key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") + } + PasswordCredential = $null + Proof = "eyJ0eXAiOiJ..." +} +Add-MgApplicationKey -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Add-MgApplicationKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Add-MgApplicationKey Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + KeyCredential = @{ + Type = "X509CertAndPassword" + Usage = "Sign" + Key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") + } + PasswordCredential = @{ + SecretText = "MKTr0w1..." + } + Proof = "eyJ0eXAiOiJ..." +} +Add-MgApplicationKey -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Add-MgApplicationKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Add-MgServicePrincipalKey.md b/src/Applications/Applications/examples/v1.0/Add-MgServicePrincipalKey.md index 093355d11d5..378a5ec77e9 100644 --- a/src/Applications/Applications/examples/v1.0/Add-MgServicePrincipalKey.md +++ b/src/Applications/Applications/examples/v1.0/Add-MgServicePrincipalKey.md @@ -1,18 +1,34 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgServicePrincipalKey Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + KeyCredential = @{ + Type = "AsymmetricX509Cert" + Usage = "Verify" + Key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") + } + PasswordCredential = $null + Proof = "eyJ0eXAiOiJ..." +} +Add-MgServicePrincipalKey -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Add-MgServicePrincipalKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Add-MgServicePrincipalKey Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + KeyCredential = @{ + Type = "X509CertAndPassword" + Usage = "Sign" + Key = [System.Text.Encoding]::ASCII.GetBytes("MIIDYDCCAki...") + } + PasswordCredential = @{ + SecretText = "MKTr0w1..." + } + Proof = "eyJ0eXAiOiJ..." +} +Add-MgServicePrincipalKey -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Add-MgServicePrincipalKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Add-MgServicePrincipalPassword.md b/src/Applications/Applications/examples/v1.0/Add-MgServicePrincipalPassword.md index 093355d11d5..98696a8daec 100644 --- a/src/Applications/Applications/examples/v1.0/Add-MgServicePrincipalPassword.md +++ b/src/Applications/Applications/examples/v1.0/Add-MgServicePrincipalPassword.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgServicePrincipalPassword Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + PasswordCredential = @{ + DisplayName = "Password friendly name" + } +} +Add-MgServicePrincipalPassword -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgServicePrincipalPassword Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Add-MgServicePrincipalTokenSigningCertificate.md b/src/Applications/Applications/examples/v1.0/Add-MgServicePrincipalTokenSigningCertificate.md index 093355d11d5..57a548717d1 100644 --- a/src/Applications/Applications/examples/v1.0/Add-MgServicePrincipalTokenSigningCertificate.md +++ b/src/Applications/Applications/examples/v1.0/Add-MgServicePrincipalTokenSigningCertificate.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgServicePrincipalTokenSigningCertificate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + DisplayName = "CN=customDisplayName" + EndDateTime = [System.DateTime]::Parse("2024-01-25T00:00:00Z") +} +Add-MgServicePrincipalTokenSigningCertificate -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgServicePrincipalTokenSigningCertificate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Clear-MgApplicationVerifiedPublisher.md b/src/Applications/Applications/examples/v1.0/Clear-MgApplicationVerifiedPublisher.md index 093355d11d5..77f5447e896 100644 --- a/src/Applications/Applications/examples/v1.0/Clear-MgApplicationVerifiedPublisher.md +++ b/src/Applications/Applications/examples/v1.0/Clear-MgApplicationVerifiedPublisher.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Clear-MgApplicationVerifiedPublisher Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Clear-MgApplicationVerifiedPublisher -ApplicationId $applicationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Clear-MgApplicationVerifiedPublisher Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Get-MgApplicationDelta.md b/src/Applications/Applications/examples/v1.0/Get-MgApplicationDelta.md index 093355d11d5..4b42606118c 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgApplicationDelta.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgApplicationDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgApplicationDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgApplicationDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Get-MgApplicationExtensionProperty.md b/src/Applications/Applications/examples/v1.0/Get-MgApplicationExtensionProperty.md index 093355d11d5..14b1502be22 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgApplicationExtensionProperty.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgApplicationExtensionProperty.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgApplicationExtensionProperty Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationExtensionProperty -ApplicationId $applicationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgApplicationExtensionProperty Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgApplicationExtensionProperty Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationExtensionProperty -ApplicationId $applicationId -ExtensionPropertyId $extensionPropertyId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgApplicationExtensionProperty Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Get-MgApplicationFederatedIdentityCredential.md b/src/Applications/Applications/examples/v1.0/Get-MgApplicationFederatedIdentityCredential.md index 093355d11d5..869826d975b 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgApplicationFederatedIdentityCredential.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgApplicationFederatedIdentityCredential Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgApplicationFederatedIdentityCredential Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgApplicationFederatedIdentityCredential Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgApplicationFederatedIdentityCredential Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Get-MgApplicationOwner.md b/src/Applications/Applications/examples/v1.0/Get-MgApplicationOwner.md index 093355d11d5..9e432ab20d0 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgApplicationOwner.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgApplicationOwner.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgApplicationOwner Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationOwner -ApplicationId $applicationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgApplicationOwner Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Get-MgApplicationTemplate.md b/src/Applications/Applications/examples/v1.0/Get-MgApplicationTemplate.md index 093355d11d5..3d6e1be9646 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgApplicationTemplate.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgApplicationTemplate.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgApplicationTemplate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationTemplate -ApplicationTemplateId $applicationTemplateId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgApplicationTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgApplicationTemplate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationTemplate ``` - -{{ Add description here }} - +This example shows how to use the Get-MgApplicationTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Get-MgApplicationTokenIssuancePolicy.md b/src/Applications/Applications/examples/v1.0/Get-MgApplicationTokenIssuancePolicy.md index 093355d11d5..7451d402851 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgApplicationTokenIssuancePolicy.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgApplicationTokenIssuancePolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgApplicationTokenIssuancePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationTokenIssuancePolicy -ApplicationId $applicationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgApplicationTokenIssuancePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Get-MgApplicationTokenLifetimePolicy.md b/src/Applications/Applications/examples/v1.0/Get-MgApplicationTokenLifetimePolicy.md index 093355d11d5..d5f59e6c02e 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgApplicationTokenLifetimePolicy.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgApplicationTokenLifetimePolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgApplicationTokenLifetimePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgApplicationTokenLifetimePolicy -ApplicationId $applicationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgApplicationTokenLifetimePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalAppRoleAssignedTo.md b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalAppRoleAssignedTo.md index 093355d11d5..82ca0f055ea 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalAppRoleAssignedTo.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalAppRoleAssignedTo.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalAppRoleAssignedTo Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalAppRoleAssignedTo Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalClaimMappingPolicy.md b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalClaimMappingPolicy.md index 093355d11d5..5ddf2575c67 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalClaimMappingPolicy.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalClaimMappingPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalClaimMappingPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalClaimMappingPolicy -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalClaimMappingPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalCreatedObject.md b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalCreatedObject.md index 093355d11d5..246a628170e 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalCreatedObject.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalCreatedObject.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalCreatedObject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalCreatedObject -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalCreatedObject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalDelegatedPermissionClassification.md b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalDelegatedPermissionClassification.md index 093355d11d5..710883795e7 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalDelegatedPermissionClassification.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalDelegatedPermissionClassification.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalDelegatedPermissionClassification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalDelegatedPermissionClassification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalDelta.md b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalDelta.md index 093355d11d5..2d3f5c4b44b 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalDelta.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalHomeRealmDiscoveryPolicy.md b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalHomeRealmDiscoveryPolicy.md index 093355d11d5..20b4ce0ea49 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalHomeRealmDiscoveryPolicy.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalHomeRealmDiscoveryPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalHomeRealmDiscoveryPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalHomeRealmDiscoveryPolicy -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalHomeRealmDiscoveryPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalMemberOf.md b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalMemberOf.md index 093355d11d5..e2a2cd77235 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalMemberOf.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalMemberOf -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalOauth2PermissionGrant.md b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalOauth2PermissionGrant.md index 093355d11d5..ebf19f7c46d 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalOauth2PermissionGrant.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalOauth2PermissionGrant.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalOauth2PermissionGrant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalOauth2PermissionGrant -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalOauth2PermissionGrant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalOwnedObject.md b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalOwnedObject.md index 093355d11d5..7443ae80461 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalOwnedObject.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalOwnedObject.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalOwnedObject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalOwnedObject -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalOwnedObject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalTransitiveMemberOf.md b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalTransitiveMemberOf.md index 093355d11d5..26d11050a49 100644 --- a/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalTransitiveMemberOf.md +++ b/src/Applications/Applications/examples/v1.0/Get-MgServicePrincipalTransitiveMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServicePrincipalTransitiveMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Get-MgServicePrincipalTransitiveMemberOf -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgServicePrincipalTransitiveMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Invoke-MgInstantiateApplicationTemplate.md b/src/Applications/Applications/examples/v1.0/Invoke-MgInstantiateApplicationTemplate.md index 093355d11d5..a73e495ffe4 100644 --- a/src/Applications/Applications/examples/v1.0/Invoke-MgInstantiateApplicationTemplate.md +++ b/src/Applications/Applications/examples/v1.0/Invoke-MgInstantiateApplicationTemplate.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgInstantiateApplicationTemplate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + DisplayName = "Azure AD SAML Toolkit" +} +Invoke-MgInstantiateApplicationTemplate -ApplicationTemplateId $applicationTemplateId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgInstantiateApplicationTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/New-MgApplicationExtensionProperty.md b/src/Applications/Applications/examples/v1.0/New-MgApplicationExtensionProperty.md index 093355d11d5..eb112b818fd 100644 --- a/src/Applications/Applications/examples/v1.0/New-MgApplicationExtensionProperty.md +++ b/src/Applications/Applications/examples/v1.0/New-MgApplicationExtensionProperty.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgApplicationExtensionProperty Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + Name = "jobGroup" + DataType = "String" + TargetObjects = @( + "User" + ) +} +New-MgApplicationExtensionProperty -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgApplicationExtensionProperty Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/New-MgApplicationFederatedIdentityCredential.md b/src/Applications/Applications/examples/v1.0/New-MgApplicationFederatedIdentityCredential.md index 093355d11d5..334052bdac3 100644 --- a/src/Applications/Applications/examples/v1.0/New-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/Applications/examples/v1.0/New-MgApplicationFederatedIdentityCredential.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgApplicationFederatedIdentityCredential Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + Name = "testing02" + Issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" + Subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" + Audiences = @( + "api://AzureADTokenExchange" + ) +} +New-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgApplicationFederatedIdentityCredential Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/New-MgApplicationTokenIssuancePolicyByRef.md b/src/Applications/Applications/examples/v1.0/New-MgApplicationTokenIssuancePolicyByRef.md index 093355d11d5..c83a2763557 100644 --- a/src/Applications/Applications/examples/v1.0/New-MgApplicationTokenIssuancePolicyByRef.md +++ b/src/Applications/Applications/examples/v1.0/New-MgApplicationTokenIssuancePolicyByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgApplicationTokenIssuancePolicyByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/policies/tokenIssuancePolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9" +} +New-MgApplicationTokenIssuancePolicyByRef -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgApplicationTokenIssuancePolicyByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/New-MgApplicationTokenLifetimePolicyByRef.md b/src/Applications/Applications/examples/v1.0/New-MgApplicationTokenLifetimePolicyByRef.md index 093355d11d5..63b1debb000 100644 --- a/src/Applications/Applications/examples/v1.0/New-MgApplicationTokenLifetimePolicyByRef.md +++ b/src/Applications/Applications/examples/v1.0/New-MgApplicationTokenLifetimePolicyByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgApplicationTokenLifetimePolicyByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/policies/tokenLifetimePolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9" +} +New-MgApplicationTokenLifetimePolicyByRef -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgApplicationTokenLifetimePolicyByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalAppRoleAssignedTo.md b/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalAppRoleAssignedTo.md index 093355d11d5..ecb8a812e56 100644 --- a/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalAppRoleAssignedTo.md +++ b/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalAppRoleAssignedTo.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgServicePrincipalAppRoleAssignedTo Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + PrincipalId = "33ad69f9-da99-4bed-acd0-3f24235cb296" + ResourceId = "9028d19c-26a9-4809-8e3f-20ff73e2d75e" + AppRoleId = "ef7437e6-4f94-4a0a-a110-a439eb2aa8f7" +} +New-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgServicePrincipalAppRoleAssignedTo Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalAppRoleAssignment.md b/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalAppRoleAssignment.md index 39f9ee467b4..2fbc476eb3c 100644 --- a/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalAppRoleAssignment.md +++ b/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalAppRoleAssignment.md @@ -1,37 +1,12 @@ -### Example 1: {{ Add title here }} - +### Example 1: Using the New-MgServicePrincipalAppRoleAssignment Cmdlet ```powershell -$appRoleAssignment = @{ - "principalId"= "0bdb123d-b8a7-4cc9-8cc2-bd17bad06f61" - "resourceId"= "557aedfc-007c-4904-918a-7e6fed2e7403" - "appRoleId"= "00000000-0000-0000-0000-000000000000" - } - -New-MgServicePrincipalAppRoleAssignment -ServicePrincipalId 0bdb123d-b8a7-4cc9-8cc2-bd17bad06f61 -BodyParameter $appRoleAssignment | Format-List - -AppRoleId : 00000000-0000-0000-0000-000000000000 -CreatedDateTime : 8/31/2021 2:01:28 PM -DeletedDateTime : -Id : PRLbC6e4yUyMwr0XutBvYfZHkKGzlbxDr2I-QJWN9rs -PrincipalDisplayName : Example App -PrincipalId : 0bdb123d-b8a7-4cc9-8cc2-bd17bad06f61 -PrincipalType : ServicePrincipal -ResourceDisplayName : Office 365 Management APIs -ResourceId : 557aedfc-007c-4904-918a-7e6fed2e7403 -AdditionalProperties : {[@odata.context, https://graph.microsoft.com/v1.0/$metadata#servicePrincipals('0bdb123d-b8a7-4cc9-8cc2-bd17 - bad06f61')/appRoleAssignments/$entity], [@odata.id, https://graph.microsoft.com/v2/fb625e04-52aa-42da-b10d-1 - 4f1195d665f/directoryObjects/$/Microsoft.DirectoryServices.ServicePrincipal('0bdb123d-b8a7-4cc9-8cc2-bd17bad - 06f61')/appRoleAssignments/PRLbC6e4yUyMwr0XutBvYfZHkKGzlbxDr2I-QJWN9rs]} +Import-Module Microsoft.Graph.Applications +$params = @{ + PrincipalId = "9028d19c-26a9-4809-8e3f-20ff73e2d75e" + ResourceId = "8fce32da-1246-437b-99cd-76d1d4677bd5" + AppRoleId = "498476ce-e0fe-48b0-b801-37ba7e2685c6" +} +New-MgServicePrincipalAppRoleAssignment -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -In this example, the first command defines the `$appRoleAssignment` variable that defines the following: - --`principalId`: The id of the client service principal to which you are assigning the app role. - --`resourceId`: The id of the resource `servicePrincipal` (the API) which has defined the app role (the application permission). - --`appRoleId`: The id of the appRole (defined on the resource service principal) to assign to the client service principal. - -Learn more about the [AppRoleAssignment resource](/graph/api/resources/approleassignment?view=graph-rest-1.0). - -The second command adds the role to the specified service principal. +This example shows how to use the New-MgServicePrincipalAppRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalClaimMappingPolicyByRef.md b/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalClaimMappingPolicyByRef.md index 093355d11d5..60caa27b9c4 100644 --- a/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalClaimMappingPolicyByRef.md +++ b/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalClaimMappingPolicyByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgServicePrincipalClaimMappingPolicyByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/policies/claimsMappingPolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9" +} +New-MgServicePrincipalClaimMappingPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgServicePrincipalClaimMappingPolicyByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalDelegatedPermissionClassification.md b/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalDelegatedPermissionClassification.md index 093355d11d5..10a2a668b0e 100644 --- a/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalDelegatedPermissionClassification.md +++ b/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalDelegatedPermissionClassification.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgServicePrincipalDelegatedPermissionClassification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + PermissionId = "e1fe6dd8-ba31-4d61-89e7-88639da4683d" + PermissionName = "User.Read" + Classification = "low" +} +New-MgServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgServicePrincipalDelegatedPermissionClassification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md b/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md index 093355d11d5..c4d0b8ee9cd 100644 --- a/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md +++ b/src/Applications/Applications/examples/v1.0/New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/policies/homeRealmDiscoveryPolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9" +} +New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Remove-MgApplicationExtensionProperty.md b/src/Applications/Applications/examples/v1.0/Remove-MgApplicationExtensionProperty.md index 093355d11d5..a9d88ed5110 100644 --- a/src/Applications/Applications/examples/v1.0/Remove-MgApplicationExtensionProperty.md +++ b/src/Applications/Applications/examples/v1.0/Remove-MgApplicationExtensionProperty.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgApplicationExtensionProperty Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgApplicationExtensionProperty -ApplicationId $applicationId -ExtensionPropertyId $extensionPropertyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgApplicationExtensionProperty Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Remove-MgApplicationFederatedIdentityCredential.md b/src/Applications/Applications/examples/v1.0/Remove-MgApplicationFederatedIdentityCredential.md index 093355d11d5..2874fed579c 100644 --- a/src/Applications/Applications/examples/v1.0/Remove-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/Applications/examples/v1.0/Remove-MgApplicationFederatedIdentityCredential.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgApplicationFederatedIdentityCredential Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgApplicationFederatedIdentityCredential Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Remove-MgApplicationKey.md b/src/Applications/Applications/examples/v1.0/Remove-MgApplicationKey.md index 093355d11d5..211bb8cbb0d 100644 --- a/src/Applications/Applications/examples/v1.0/Remove-MgApplicationKey.md +++ b/src/Applications/Applications/examples/v1.0/Remove-MgApplicationKey.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgApplicationKey Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + KeyId = "f0b0b335-1d71-4883-8f98-567911bfdca6" + Proof = "eyJ0eXAiOiJ..." +} +Remove-MgApplicationKey -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgApplicationKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Remove-MgApplicationOwnerByRef.md b/src/Applications/Applications/examples/v1.0/Remove-MgApplicationOwnerByRef.md index 093355d11d5..f7a280b7768 100644 --- a/src/Applications/Applications/examples/v1.0/Remove-MgApplicationOwnerByRef.md +++ b/src/Applications/Applications/examples/v1.0/Remove-MgApplicationOwnerByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgApplicationOwnerByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgApplicationOwnerByRef -ApplicationId $applicationId -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgApplicationOwnerByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Remove-MgApplicationPassword.md b/src/Applications/Applications/examples/v1.0/Remove-MgApplicationPassword.md index 093355d11d5..1f78cfcb31b 100644 --- a/src/Applications/Applications/examples/v1.0/Remove-MgApplicationPassword.md +++ b/src/Applications/Applications/examples/v1.0/Remove-MgApplicationPassword.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgApplicationPassword Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + KeyId = "f0b0b335-1d71-4883-8f98-567911bfdca6" +} +Remove-MgApplicationPassword -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgApplicationPassword Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Remove-MgApplicationTokenIssuancePolicyByRef.md b/src/Applications/Applications/examples/v1.0/Remove-MgApplicationTokenIssuancePolicyByRef.md index 093355d11d5..55ccb6304e9 100644 --- a/src/Applications/Applications/examples/v1.0/Remove-MgApplicationTokenIssuancePolicyByRef.md +++ b/src/Applications/Applications/examples/v1.0/Remove-MgApplicationTokenIssuancePolicyByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgApplicationTokenIssuancePolicyByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgApplicationTokenIssuancePolicyByRef -ApplicationId $applicationId -TokenIssuancePolicyId $tokenIssuancePolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgApplicationTokenIssuancePolicyByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Remove-MgApplicationTokenLifetimePolicyByRef.md b/src/Applications/Applications/examples/v1.0/Remove-MgApplicationTokenLifetimePolicyByRef.md index 093355d11d5..777a40a3775 100644 --- a/src/Applications/Applications/examples/v1.0/Remove-MgApplicationTokenLifetimePolicyByRef.md +++ b/src/Applications/Applications/examples/v1.0/Remove-MgApplicationTokenLifetimePolicyByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgApplicationTokenLifetimePolicyByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgApplicationTokenLifetimePolicyByRef -ApplicationId $applicationId -TokenLifetimePolicyId $tokenLifetimePolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgApplicationTokenLifetimePolicyByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Remove-MgGroupAppRoleAssignment.md b/src/Applications/Applications/examples/v1.0/Remove-MgGroupAppRoleAssignment.md index 093355d11d5..77e7e67590f 100644 --- a/src/Applications/Applications/examples/v1.0/Remove-MgGroupAppRoleAssignment.md +++ b/src/Applications/Applications/examples/v1.0/Remove-MgGroupAppRoleAssignment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgGroupAppRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgGroupAppRoleAssignment -GroupId $groupId -AppRoleAssignmentId $appRoleAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgGroupAppRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipal.md b/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipal.md index 093355d11d5..c8cdcb99005 100644 --- a/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipal.md +++ b/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipal.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgServicePrincipal Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgServicePrincipal -ServicePrincipalId $servicePrincipalId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgServicePrincipal Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalAppRoleAssignedTo.md b/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalAppRoleAssignedTo.md index 093355d11d5..eeca1c742c8 100644 --- a/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalAppRoleAssignedTo.md +++ b/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalAppRoleAssignedTo.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgServicePrincipalAppRoleAssignedTo Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -AppRoleAssignmentId $appRoleAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgServicePrincipalAppRoleAssignedTo Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalClaimMappingPolicyByRef.md b/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalClaimMappingPolicyByRef.md index 093355d11d5..3bc662a8b15 100644 --- a/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalClaimMappingPolicyByRef.md +++ b/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalClaimMappingPolicyByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgServicePrincipalClaimMappingPolicyByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgServicePrincipalClaimMappingPolicyByRef -ServicePrincipalId $servicePrincipalId -ClaimsMappingPolicyId $claimsMappingPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgServicePrincipalClaimMappingPolicyByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalDelegatedPermissionClassification.md b/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalDelegatedPermissionClassification.md index 093355d11d5..d57746674c7 100644 --- a/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalDelegatedPermissionClassification.md +++ b/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalDelegatedPermissionClassification.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgServicePrincipalDelegatedPermissionClassification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -DelegatedPermissionClassificationId $delegatedPermissionClassificationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgServicePrincipalDelegatedPermissionClassification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md b/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md index 093355d11d5..700f0f90dfd 100644 --- a/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md +++ b/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalKey.md b/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalKey.md index 093355d11d5..14f0e5570ae 100644 --- a/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalKey.md +++ b/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalKey.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgServicePrincipalKey Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + KeyId = "f0b0b335-1d71-4883-8f98-567911bfdca6" + Proof = "eyJ0eXAiOiJ..." +} +Remove-MgServicePrincipalKey -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgServicePrincipalKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalPassword.md b/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalPassword.md index 093355d11d5..6f40720cc44 100644 --- a/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalPassword.md +++ b/src/Applications/Applications/examples/v1.0/Remove-MgServicePrincipalPassword.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgServicePrincipalPassword Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + KeyId = "f0b0b335-1d71-4883-8f98-567911bfdca6" +} +Remove-MgServicePrincipalPassword -ServicePrincipalId $servicePrincipalId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgServicePrincipalPassword Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Set-MgApplicationVerifiedPublisher.md b/src/Applications/Applications/examples/v1.0/Set-MgApplicationVerifiedPublisher.md index 093355d11d5..a0e347da0b9 100644 --- a/src/Applications/Applications/examples/v1.0/Set-MgApplicationVerifiedPublisher.md +++ b/src/Applications/Applications/examples/v1.0/Set-MgApplicationVerifiedPublisher.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Set-MgApplicationVerifiedPublisher Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + VerifiedPublisherId = "1234567" +} +Set-MgApplicationVerifiedPublisher -ApplicationId $applicationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Set-MgApplicationVerifiedPublisher Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Applications/Applications/examples/v1.0/Update-MgApplicationFederatedIdentityCredential.md b/src/Applications/Applications/examples/v1.0/Update-MgApplicationFederatedIdentityCredential.md index 093355d11d5..80f87ba63ce 100644 --- a/src/Applications/Applications/examples/v1.0/Update-MgApplicationFederatedIdentityCredential.md +++ b/src/Applications/Applications/examples/v1.0/Update-MgApplicationFederatedIdentityCredential.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgApplicationFederatedIdentityCredential Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Applications +$params = @{ + Name = "testing02" + Issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0" + Subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a" + Description = "Updated description" + Audiences = @( + "api://AzureADTokenExchange" + ) +} +Update-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgApplicationFederatedIdentityCredential Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusiness.md b/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusiness.md index 093355d11d5..5e4e59495a4 100644 --- a/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusiness.md +++ b/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusiness.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgBookingBusiness Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusiness -BookingBusinessId $bookingBusinessId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgBookingBusiness Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgBookingBusiness Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusiness ``` - -{{ Add description here }} - +This example shows how to use the Get-MgBookingBusiness Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgBookingBusiness Cmdlet +```powershell +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusiness -Query "Adventure" +``` +This example shows how to use the Get-MgBookingBusiness Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessAppointment.md b/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessAppointment.md index 093355d11d5..5f209860cfd 100644 --- a/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessAppointment.md +++ b/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessAppointment.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgBookingBusinessAppointment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgBookingBusinessAppointment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgBookingBusinessAppointment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgBookingBusinessAppointment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessCalendarView.md b/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessCalendarView.md index 093355d11d5..39c2f5ef2c3 100644 --- a/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessCalendarView.md +++ b/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessCalendarView.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgBookingBusinessCalendarView Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessCalendarView -BookingBusinessId $bookingBusinessId -Start "2018-04-30T00:00:00Z" -End "2018-05-10T00:00:00Z" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgBookingBusinessCalendarView Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessCustomQuestion.md b/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessCustomQuestion.md index 093355d11d5..7d05eb18251 100644 --- a/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessCustomQuestion.md +++ b/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessCustomQuestion.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgBookingBusinessCustomQuestion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgBookingBusinessCustomQuestion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgBookingBusinessCustomQuestion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgBookingBusinessCustomQuestion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessCustomer.md b/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessCustomer.md index 093355d11d5..9de03cac486 100644 --- a/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessCustomer.md +++ b/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessCustomer.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgBookingBusinessCustomer Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgBookingBusinessCustomer Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgBookingBusinessCustomer Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BookingCustomerBaseId $bookingCustomerBaseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgBookingBusinessCustomer Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessService.md b/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessService.md index 093355d11d5..e72504695b7 100644 --- a/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessService.md +++ b/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessService.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgBookingBusinessService Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessService -BookingBusinessId $bookingBusinessId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgBookingBusinessService Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgBookingBusinessService Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessService -BookingBusinessId $bookingBusinessId -BookingServiceId $bookingServiceId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgBookingBusinessService Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessStaffMember.md b/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessStaffMember.md index 093355d11d5..a42fd1a0c85 100644 --- a/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessStaffMember.md +++ b/src/Bookings/Bookings/examples/v1.0/Get-MgBookingBusinessStaffMember.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgBookingBusinessStaffMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgBookingBusinessStaffMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgBookingBusinessStaffMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId -BookingStaffMemberBaseId $bookingStaffMemberBaseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgBookingBusinessStaffMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Get-MgBookingCurrency.md b/src/Bookings/Bookings/examples/v1.0/Get-MgBookingCurrency.md index 093355d11d5..ac3d61ce26d 100644 --- a/src/Bookings/Bookings/examples/v1.0/Get-MgBookingCurrency.md +++ b/src/Bookings/Bookings/examples/v1.0/Get-MgBookingCurrency.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgBookingCurrency Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingCurrency -BookingCurrencyId $bookingCurrencyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgBookingCurrency Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgBookingCurrency Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Get-MgBookingCurrency ``` - -{{ Add description here }} - +This example shows how to use the Get-MgBookingCurrency Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusiness.md b/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusiness.md index 093355d11d5..acefac58049 100644 --- a/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusiness.md +++ b/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusiness.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgBookingBusiness Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + DisplayName = "Fourth Coffee" + Address = @{ + PostOfficeBox = "P.O. Box 123" + Street = "4567 Main Street" + City = "Buffalo" + State = "NY" + CountryOrRegion = "USA" + PostalCode = "98052" + } + Phone = "206-555-0100" + Email = "manager@fourthcoffee.com" + WebSiteUrl = "https://www.fourthcoffee.com" + DefaultCurrencyIso = "USD" +} +New-MgBookingBusiness -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgBookingBusiness Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessAppointment.md b/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessAppointment.md index 093355d11d5..55320fcdf00 100644 --- a/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessAppointment.md +++ b/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessAppointment.md @@ -1,18 +1,112 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgBookingBusinessAppointment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + "@odata.type" = "#microsoft.graph.bookingAppointment" + CustomerTimeZone = "America/Chicago" + SmsNotificationsEnabled = $true + EndDateTime = @{ + "@odata.type" = "#microsoft.graph.dateTimeTimeZone" + DateTime = "2018-05-01T12:30:00.0000000+00:00" + TimeZone = "UTC" + } + IsLocationOnline = $true + OptOutOfCustomerEmail = $false + PostBuffer = "PT10M" + PreBuffer = "PT5M" + Price = 10 + "PriceType@odata.type" = "#microsoft.graph.bookingPriceType" + PriceType = "fixedPrice" + "Reminders@odata.type" = "#Collection(microsoft.graph.bookingReminder)" + Reminders = @( + @{ + "@odata.type" = "#microsoft.graph.bookingReminder" + Message = "This service is tomorrow" + Offset = "P1D" + "Recipients@odata.type" = "#microsoft.graph.bookingReminderRecipients" + Recipients = "allAttendees" + } + @{ + "@odata.type" = "#microsoft.graph.bookingReminder" + Message = "Please be available to enjoy your lunch service." + Offset = "PT1H" + "Recipients@odata.type" = "#microsoft.graph.bookingReminderRecipients" + Recipients = "customer" + } + @{ + "@odata.type" = "#microsoft.graph.bookingReminder" + Message = "Please check traffic for next cater." + Offset = "PT2H" + "Recipients@odata.type" = "#microsoft.graph.bookingReminderRecipients" + Recipients = "staff" + } + ) + ServiceId = "57da6774-a087-4d69-b0e6-6fb82c339976" + ServiceLocation = @{ + "@odata.type" = "#microsoft.graph.location" + Address = @{ + "@odata.type" = "#microsoft.graph.physicalAddress" + City = "Buffalo" + CountryOrRegion = "USA" + PostalCode = "98052" + PostOfficeBox = $null + State = "NY" + Street = "123 First Avenue" + "Type@odata.type" = "#microsoft.graph.physicalAddressType" + Type = $null + } + Coordinates = $null + DisplayName = "Customer location" + LocationEmailAddress = $null + "LocationType@odata.type" = "#microsoft.graph.locationType" + LocationType = $null + LocationUri = $null + UniqueId = $null + "UniqueIdType@odata.type" = "#microsoft.graph.locationUniqueIdType" + UniqueIdType = $null + } + ServiceName = "Catered bento" + ServiceNotes = "Customer requires punctual service." + StartDateTime = @{ + "@odata.type" = "#microsoft.graph.dateTimeTimeZone" + DateTime = "2018-05-01T12:00:00.0000000+00:00" + TimeZone = "UTC" + } + MaximumAttendeesCount = 5 + FilledAttendeesCount = 1 + "Customers@odata.type" = "#Collection(microsoft.graph.bookingCustomerInformation)" + Customers = @( + @{ + "@odata.type" = "#microsoft.graph.bookingCustomerInformation" + CustomerId = "7ed53fa5-9ef2-4f2f-975b-27447440bc09" + Name = "Jordan Miller" + EmailAddress = "jordanm@contoso.com" + Phone = "213-555-0199" + Notes = $null + Location = @{ + "@odata.type" = "#microsoft.graph.location" + DisplayName = "Customer" + LocationEmailAddress = $null + LocationUri = "" + LocationType = $null + UniqueId = $null + UniqueIdType = $null + Address = @{ + "@odata.type" = "#microsoft.graph.physicalAddress" + Street = "" + City = "" + State = "" + CountryOrRegion = "" + PostalCode = "" + } + } + TimeZone = "America/Chicago" + CustomQuestionAnswers = @( + ) + } + ) +} +New-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgBookingBusinessAppointment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessCustomQuestion.md b/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessCustomQuestion.md index 093355d11d5..bbef8fe35a1 100644 --- a/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessCustomQuestion.md +++ b/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessCustomQuestion.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgBookingBusinessCustomQuestion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + "@odata.type" = "#microsoft.graph.bookingCustomQuestion" + DisplayName = "What is your age?" + AnswerInputType = "text" + AnswerOptions = @( + ) +} +New-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgBookingBusinessCustomQuestion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessCustomer.md b/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessCustomer.md index 093355d11d5..bad67825208 100644 --- a/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessCustomer.md +++ b/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessCustomer.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgBookingBusinessCustomer Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + "@odata.type" = "#microsoft.graph.bookingCustomer" + DisplayName = "Joni Sherman" + EmailAddress = "jonis@relecloud.com" + Addresses = @( + ) + Phones = @( + ) +} +New-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgBookingBusinessCustomer Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessService.md b/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessService.md index 093355d11d5..98e0beffc16 100644 --- a/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessService.md +++ b/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessService.md @@ -1,18 +1,68 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgBookingBusinessService Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + "@odata.type" = "#microsoft.graph.bookingService" + DefaultDuration = "PT1H30M" + DefaultLocation = @{ + "@odata.type" = "#microsoft.graph.location" + Address = @{ + "@odata.type" = "#microsoft.graph.physicalAddress" + City = "Buffalo" + CountryOrRegion = "USA" + PostalCode = "98052" + PostOfficeBox = $null + State = "NY" + Street = "4567 First Street" + "Type@odata.type" = "#microsoft.graph.physicalAddressType" + Type = $null + } + Coordinates = $null + DisplayName = "Contoso Lunch Delivery" + LocationEmailAddress = $null + "LocationType@odata.type" = "#microsoft.graph.locationType" + LocationType = $null + LocationUri = $null + UniqueId = $null + "UniqueIdType@odata.type" = "#microsoft.graph.locationUniqueIdType" + UniqueIdType = $null + } + DefaultPrice = 10 + "DefaultPriceType@odata.type" = "#microsoft.graph.bookingPriceType" + DefaultPriceType = "fixedPrice" + "DefaultReminders@odata.type" = "#Collection(microsoft.graph.bookingReminder)" + DefaultReminders = @( + @{ + "@odata.type" = "#microsoft.graph.bookingReminder" + Message = "Please be reminded that this service is tomorrow." + Offset = "P1D" + "Recipients@odata.type" = "#microsoft.graph.bookingReminderRecipients" + Recipients = "allAttendees" + } + ) + Description = "Individual bento box lunch delivery" + DisplayName = "Bento" + IsLocationOnline = $true + SmsNotificationsEnabled = $true + IsHiddenFromCustomers = $false + Notes = "Home-cooked special" + PostBuffer = "PT10M" + PreBuffer = "PT5M" + SchedulingPolicy = @{ + "@odata.type" = "#microsoft.graph.bookingSchedulingPolicy" + AllowStaffSelection = $true + MaximumAdvance = "P10D" + MinimumLeadTime = "PT10H" + SendConfirmationsToOwner = $true + TimeSlotInterval = "PT1H" + } + "StaffMemberIds@odata.type" = "#Collection(String)" + StaffMemberIds = @( + "d90d1e8c-5cfe-48cf-a2d5-966267375b6a" + "2f5f8794-0b29-45b5-b56a-2eb5ff7aa880" + ) +} +New-MgBookingBusinessService -BookingBusinessId $bookingBusinessId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgBookingBusinessService Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessStaffMember.md b/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessStaffMember.md index 093355d11d5..f0d9e62e534 100644 --- a/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessStaffMember.md +++ b/src/Bookings/Bookings/examples/v1.0/New-MgBookingBusinessStaffMember.md @@ -1,18 +1,84 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgBookingBusinessStaffMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + "@odata.type" = "#microsoft.graph.bookingStaffMember" + DisplayName = "Dana Swope" + EmailAddress = "danas@contoso.com" + "Role@odata.type" = "#microsoft.graph.bookingStaffRole" + Role = "externalGuest" + TimeZone = "America/Chicago" + UseBusinessHours = $true + "WorkingHours@odata.type" = "#Collection(microsoft.graph.bookingWorkHours)" + WorkingHours = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "monday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" + EndTime = "17:00:00.0000000" + StartTime = "08:00:00.0000000" + } + ) + } + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "tuesday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" + EndTime = "17:00:00.0000000" + StartTime = "08:00:00.0000000" + } + ) + } + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "wednesday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" + EndTime = "17:00:00.0000000" + StartTime = "08:00:00.0000000" + } + ) + } + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "thursday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" + EndTime = "17:00:00.0000000" + StartTime = "08:00:00.0000000" + } + ) + } + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "friday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" + EndTime = "17:00:00.0000000" + StartTime = "08:00:00.0000000" + } + ) + } + ) +} +New-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgBookingBusinessStaffMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Publish-MgBookingBusiness.md b/src/Bookings/Bookings/examples/v1.0/Publish-MgBookingBusiness.md index 093355d11d5..d91860344b5 100644 --- a/src/Bookings/Bookings/examples/v1.0/Publish-MgBookingBusiness.md +++ b/src/Bookings/Bookings/examples/v1.0/Publish-MgBookingBusiness.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Publish-MgBookingBusiness Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Publish-MgBookingBusiness -BookingBusinessId $bookingBusinessId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Publish-MgBookingBusiness Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusiness.md b/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusiness.md index 093355d11d5..84933be35a7 100644 --- a/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusiness.md +++ b/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusiness.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgBookingBusiness Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Remove-MgBookingBusiness -BookingBusinessId $bookingBusinessId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgBookingBusiness Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessAppointment.md b/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessAppointment.md index 093355d11d5..f92bcc7df5c 100644 --- a/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessAppointment.md +++ b/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessAppointment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgBookingBusinessAppointment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Remove-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgBookingBusinessAppointment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessCustomQuestion.md b/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessCustomQuestion.md index 093355d11d5..51a0ba0af7e 100644 --- a/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessCustomQuestion.md +++ b/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessCustomQuestion.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgBookingBusinessCustomQuestion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Remove-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgBookingBusinessCustomQuestion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessCustomer.md b/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessCustomer.md index 093355d11d5..4b5f81fc809 100644 --- a/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessCustomer.md +++ b/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessCustomer.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgBookingBusinessCustomer Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Remove-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BookingCustomerBaseId $bookingCustomerBaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgBookingBusinessCustomer Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessService.md b/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessService.md index 093355d11d5..e494b1f117d 100644 --- a/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessService.md +++ b/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessService.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgBookingBusinessService Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Remove-MgBookingBusinessService -BookingBusinessId $bookingBusinessId -BookingServiceId $bookingServiceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgBookingBusinessService Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessStaffMember.md b/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessStaffMember.md index 093355d11d5..d6408062bec 100644 --- a/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessStaffMember.md +++ b/src/Bookings/Bookings/examples/v1.0/Remove-MgBookingBusinessStaffMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgBookingBusinessStaffMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Remove-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId -BookingStaffMemberBaseId $bookingStaffMemberBaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgBookingBusinessStaffMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Stop-MgBookingBusinessAppointment.md b/src/Bookings/Bookings/examples/v1.0/Stop-MgBookingBusinessAppointment.md index 093355d11d5..43a06d3ae9f 100644 --- a/src/Bookings/Bookings/examples/v1.0/Stop-MgBookingBusinessAppointment.md +++ b/src/Bookings/Bookings/examples/v1.0/Stop-MgBookingBusinessAppointment.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgBookingBusinessAppointment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + CancellationMessage = "Your appointment has been successfully cancelled. Please call us again." +} +Stop-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgBookingBusinessAppointment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Unpublish-MgBookingBusiness.md b/src/Bookings/Bookings/examples/v1.0/Unpublish-MgBookingBusiness.md index 093355d11d5..d1a3aa9f2d0 100644 --- a/src/Bookings/Bookings/examples/v1.0/Unpublish-MgBookingBusiness.md +++ b/src/Bookings/Bookings/examples/v1.0/Unpublish-MgBookingBusiness.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Unpublish-MgBookingBusiness Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +Unpublish-MgBookingBusiness -BookingBusinessId $bookingBusinessId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Unpublish-MgBookingBusiness Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusiness.md b/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusiness.md index 093355d11d5..6a64110a44e 100644 --- a/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusiness.md +++ b/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusiness.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgBookingBusiness Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + Email = "admin@fabrikam.com" + SchedulingPolicy = @{ + TimeSlotInterval = "PT60M" + MinimumLeadTime = "P1D" + MaximumAdvance = "P30D" + SendConfirmationsToOwner = $true + AllowStaffSelection = $true + } +} +Update-MgBookingBusiness -BookingBusinessId $bookingBusinessId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgBookingBusiness Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessAppointment.md b/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessAppointment.md index 093355d11d5..9ee35f73c20 100644 --- a/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessAppointment.md +++ b/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessAppointment.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgBookingBusinessAppointment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + "@odata.type" = "#microsoft.graph.bookingAppointment" + EndDateTime = @{ + "@odata.type" = "#microsoft.graph.dateTimeTimeZone" + DateTime = "2018-05-06T12:30:00.0000000+00:00" + TimeZone = "UTC" + } + StartDateTime = @{ + "@odata.type" = "#microsoft.graph.dateTimeTimeZone" + DateTime = "2018-05-06T12:00:00.0000000+00:00" + TimeZone = "UTC" + } +} +Update-MgBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BookingAppointmentId $bookingAppointmentId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgBookingBusinessAppointment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessCustomQuestion.md b/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessCustomQuestion.md index 093355d11d5..b27df262376 100644 --- a/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessCustomQuestion.md +++ b/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessCustomQuestion.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgBookingBusinessCustomQuestion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + "@odata.type" = "#microsoft.graph.bookingCustomQuestion" + DisplayName = "What is your age?" + AnswerInputType = "text" + AnswerOptions = @( + ) +} +Update-MgBookingBusinessCustomQuestion -BookingBusinessId $bookingBusinessId -BookingCustomQuestionId $bookingCustomQuestionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgBookingBusinessCustomQuestion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessCustomer.md b/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessCustomer.md index 093355d11d5..ece979a84c6 100644 --- a/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessCustomer.md +++ b/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessCustomer.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgBookingBusinessCustomer Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + "@odata.type" = "#microsoft.graph.bookingCustomer" + DisplayName = "Adele" + EmailAddress = "adele@relecloud.com" +} +Update-MgBookingBusinessCustomer -BookingBusinessId $bookingBusinessId -BookingCustomerBaseId $bookingCustomerBaseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgBookingBusinessCustomer Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessService.md b/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessService.md index 093355d11d5..12850936771 100644 --- a/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessService.md +++ b/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessService.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgBookingBusinessService Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + "@odata.type" = "#microsoft.graph.bookingService" + DefaultDuration = "PT30M" +} +Update-MgBookingBusinessService -BookingBusinessId $bookingBusinessId -BookingServiceId $bookingServiceId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgBookingBusinessService Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessStaffMember.md b/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessStaffMember.md index 093355d11d5..dc906b3ceea 100644 --- a/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessStaffMember.md +++ b/src/Bookings/Bookings/examples/v1.0/Update-MgBookingBusinessStaffMember.md @@ -1,18 +1,72 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgBookingBusinessStaffMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Bookings +$params = @{ + "@odata.type" = "#microsoft.graph.bookingStaffMember" + WorkingHours = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "monday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + ) + } + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "tuesday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" + EndTime = "17:00:00.0000000" + StartTime = "08:00:00.0000000" + } + ) + } + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "wednesday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" + EndTime = "17:00:00.0000000" + StartTime = "08:00:00.0000000" + } + ) + } + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "thursday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" + EndTime = "17:00:00.0000000" + StartTime = "08:00:00.0000000" + } + ) + } + @{ + "@odata.type" = "#microsoft.graph.bookingWorkHours" + "Day@odata.type" = "#microsoft.graph.dayOfWeek" + Day = "friday" + "TimeSlots@odata.type" = "#Collection(microsoft.graph.bookingWorkTimeSlot)" + TimeSlots = @( + @{ + "@odata.type" = "#microsoft.graph.bookingWorkTimeSlot" + EndTime = "17:00:00.0000000" + StartTime = "08:00:00.0000000" + } + ) + } + ) +} +Update-MgBookingBusinessStaffMember -BookingBusinessId $bookingBusinessId -BookingStaffMemberBaseId $bookingStaffMemberBaseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgBookingBusinessStaffMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Get-MgGroupEvent.md b/src/Calendar/Calendar/examples/v1.0/Get-MgGroupEvent.md index 093355d11d5..576d1eba13b 100644 --- a/src/Calendar/Calendar/examples/v1.0/Get-MgGroupEvent.md +++ b/src/Calendar/Calendar/examples/v1.0/Get-MgGroupEvent.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +Get-MgGroupEvent -GroupId $groupId -EventId $eventId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgGroupEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgGroupEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +Get-MgGroupEvent -GroupId $groupId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Get-MgGroupEventExtension.md b/src/Calendar/Calendar/examples/v1.0/Get-MgGroupEventExtension.md index 093355d11d5..b7963e8c734 100644 --- a/src/Calendar/Calendar/examples/v1.0/Get-MgGroupEventExtension.md +++ b/src/Calendar/Calendar/examples/v1.0/Get-MgGroupEventExtension.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupEventExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +Get-MgGroupEventExtension -GroupId $groupId -EventId $eventId -ExtensionId $extensionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupEventExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Get-MgPlace.md b/src/Calendar/Calendar/examples/v1.0/Get-MgPlace.md index 093355d11d5..82f18cf7818 100644 --- a/src/Calendar/Calendar/examples/v1.0/Get-MgPlace.md +++ b/src/Calendar/Calendar/examples/v1.0/Get-MgPlace.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlace Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +Get-MgPlace -PlaceId $placeId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPlace Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPlace Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +Get-MgPlace -PlaceId $placeId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlace Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgPlace Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +Get-MgPlace -PlaceId $placeId +``` +This example shows how to use the Get-MgPlace Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgPlace Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +Get-MgPlace -PlaceId $placeId +``` +This example shows how to use the Get-MgPlace Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendar.md b/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendar.md index 093355d11d5..c2cc0bf05b2 100644 --- a/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendar.md +++ b/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendar.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserCalendar Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserCalendar -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserCalendar Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendarGroup.md b/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendarGroup.md index 093355d11d5..991c27561b2 100644 --- a/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendarGroup.md +++ b/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendarGroup.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserCalendarGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserCalendarGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserCalendarGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserCalendarGroup -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserCalendarGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendarGroupCalendar.md b/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendarGroupCalendar.md index 093355d11d5..1c75f2e36ac 100644 --- a/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendarGroupCalendar.md +++ b/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendarGroupCalendar.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserCalendarGroupCalendar Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserCalendarGroupCalendar -UserId $userId -CalendarGroupId $calendarGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserCalendarGroupCalendar Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendarPermission.md b/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendarPermission.md index 093355d11d5..7c6799f1684 100644 --- a/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendarPermission.md +++ b/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendarPermission.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserCalendarPermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +Get-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserCalendarPermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendarView.md b/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendarView.md index 093355d11d5..eb8c3653d2f 100644 --- a/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendarView.md +++ b/src/Calendar/Calendar/examples/v1.0/Get-MgUserCalendarView.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserCalendarView Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserCalendarView -UserId $userId -Startdatetime "2017-01-01T19:00:00-08:00" -Enddatetime "2017-01-07T19:00:00-08:00" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserCalendarView Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Get-MgUserDefaultCalendar.md b/src/Calendar/Calendar/examples/v1.0/Get-MgUserDefaultCalendar.md index 093355d11d5..9fed45b71bd 100644 --- a/src/Calendar/Calendar/examples/v1.0/Get-MgUserDefaultCalendar.md +++ b/src/Calendar/Calendar/examples/v1.0/Get-MgUserDefaultCalendar.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserDefaultCalendar Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserDefaultCalendar -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserDefaultCalendar Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Get-MgUserEvent.md b/src/Calendar/Calendar/examples/v1.0/Get-MgUserEvent.md index 093355d11d5..2b0291b584b 100644 --- a/src/Calendar/Calendar/examples/v1.0/Get-MgUserEvent.md +++ b/src/Calendar/Calendar/examples/v1.0/Get-MgUserEvent.md @@ -1,18 +1,24 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,locations" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgUserEvent Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserEvent -UserId $userId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location" +``` +This example shows how to use the Get-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Get-MgUserEventAttachment.md b/src/Calendar/Calendar/examples/v1.0/Get-MgUserEventAttachment.md index 093355d11d5..112c7fcde4e 100644 --- a/src/Calendar/Calendar/examples/v1.0/Get-MgUserEventAttachment.md +++ b/src/Calendar/Calendar/examples/v1.0/Get-MgUserEventAttachment.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserEventAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserEventAttachment -UserId $userId -EventId $eventId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserEventAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Get-MgUserEventInstance.md b/src/Calendar/Calendar/examples/v1.0/Get-MgUserEventInstance.md index 093355d11d5..08323588c4b 100644 --- a/src/Calendar/Calendar/examples/v1.0/Get-MgUserEventInstance.md +++ b/src/Calendar/Calendar/examples/v1.0/Get-MgUserEventInstance.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserEventInstance Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Get-MgUserEventInstance -UserId $userId -EventId $eventId -Startdatetime "2019-04-08T09:00:00.0000000" -Enddatetime "2019-04-30T09:00:00.0000000" -Property "subject,bodyPreview,seriesMasterId,type,recurrence,start,end" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserEventInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/New-MgGroupEvent.md b/src/Calendar/Calendar/examples/v1.0/New-MgGroupEvent.md index 093355d11d5..a969a29ae5c 100644 --- a/src/Calendar/Calendar/examples/v1.0/New-MgGroupEvent.md +++ b/src/Calendar/Calendar/examples/v1.0/New-MgGroupEvent.md @@ -1,18 +1,34 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgGroupEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Subject = "Let's go for lunch" + Body = @{ + ContentType = "HTML" + Content = "Does late morning work for you?" + } + Start = @{ + DateTime = "2019-06-16T12:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-06-16T14:00:00" + TimeZone = "Pacific Standard Time" + } + Location = @{ + DisplayName = "Harry's Bar" + } + Attendees = @( + @{ + EmailAddress = @{ + Address = "adelev@contoso.onmicrosoft.com" + Name = "Adele Vance" + } + Type = "required" + } + ) +} +New-MgGroupEvent -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgGroupEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/New-MgUserCalendar.md b/src/Calendar/Calendar/examples/v1.0/New-MgUserCalendar.md index 093355d11d5..781e86826e4 100644 --- a/src/Calendar/Calendar/examples/v1.0/New-MgUserCalendar.md +++ b/src/Calendar/Calendar/examples/v1.0/New-MgUserCalendar.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserCalendar Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Name = "Volunteer" +} +# A UPN can also be used as -UserId. +New-MgUserCalendar -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserCalendar Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/New-MgUserCalendarEvent.md b/src/Calendar/Calendar/examples/v1.0/New-MgUserCalendarEvent.md index 093355d11d5..aa4b94d60e7 100644 --- a/src/Calendar/Calendar/examples/v1.0/New-MgUserCalendarEvent.md +++ b/src/Calendar/Calendar/examples/v1.0/New-MgUserCalendarEvent.md @@ -1,18 +1,73 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserCalendarEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Subject = "Let's go for lunch" + Body = @{ + ContentType = "HTML" + Content = "Does mid month work for you?" + } + Start = @{ + DateTime = "2019-03-15T12:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-03-15T14:00:00" + TimeZone = "Pacific Standard Time" + } + Location = @{ + DisplayName = "Harry's Bar" + } + Attendees = @( + @{ + EmailAddress = @{ + Address = "adelev@contoso.onmicrosoft.com" + Name = "Adele Vance" + } + Type = "required" + } + ) + TransactionId = "7E163156-7762-4BEB-A1C6-729EA81755A7" +} +# A UPN can also be used as -UserId. +New-MgUserCalendarEvent -UserId $userId -CalendarId $calendarId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgUserCalendarEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgUserCalendarEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Subject = "Let's go for lunch" + Body = @{ + ContentType = "HTML" + Content = "Does next month work for you?" + } + Start = @{ + DateTime = "2019-03-10T12:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-03-10T14:00:00" + TimeZone = "Pacific Standard Time" + } + Location = @{ + DisplayName = "Harry's Bar" + } + Attendees = @( + @{ + EmailAddress = @{ + Address = "adelev@contoso.onmicrosoft.com" + Name = "Adele Vance" + } + Type = "required" + } + ) + IsOnlineMeeting = $true + OnlineMeetingProvider = "teamsForBusiness" +} +# A UPN can also be used as -UserId. +New-MgUserCalendarEvent -UserId $userId -CalendarId $calendarId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgUserCalendarEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/New-MgUserCalendarGroup.md b/src/Calendar/Calendar/examples/v1.0/New-MgUserCalendarGroup.md index 093355d11d5..59deb1bb319 100644 --- a/src/Calendar/Calendar/examples/v1.0/New-MgUserCalendarGroup.md +++ b/src/Calendar/Calendar/examples/v1.0/New-MgUserCalendarGroup.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserCalendarGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Name = "Personal events" +} +# A UPN can also be used as -UserId. +New-MgUserCalendarGroup -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserCalendarGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/New-MgUserCalendarGroupCalendar.md b/src/Calendar/Calendar/examples/v1.0/New-MgUserCalendarGroupCalendar.md index 093355d11d5..a86929c5c42 100644 --- a/src/Calendar/Calendar/examples/v1.0/New-MgUserCalendarGroupCalendar.md +++ b/src/Calendar/Calendar/examples/v1.0/New-MgUserCalendarGroupCalendar.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserCalendarGroupCalendar Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Name = "Marketing calendar" +} +# A UPN can also be used as -UserId. +New-MgUserCalendarGroupCalendar -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserCalendarGroupCalendar Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/New-MgUserEvent.md b/src/Calendar/Calendar/examples/v1.0/New-MgUserEvent.md index 093355d11d5..7e24cd6a52a 100644 --- a/src/Calendar/Calendar/examples/v1.0/New-MgUserEvent.md +++ b/src/Calendar/Calendar/examples/v1.0/New-MgUserEvent.md @@ -1,18 +1,191 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Subject = "Plan summer company picnic" + Body = @{ + ContentType = "HTML" + Content = "Let's kick-start this event planning!" + } + Start = @{ + DateTime = "2017-08-30T11:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2017-08-30T12:00:00" + TimeZone = "Pacific Standard Time" + } + Attendees = @( + @{ + EmailAddress = @{ + Address = "DanaS@contoso.onmicrosoft.com" + Name = "Dana Swope" + } + Type = "Required" + } + @{ + EmailAddress = @{ + Address = "AlexW@contoso.onmicrosoft.com" + Name = "Alex Wilber" + } + Type = "Required" + } + ) + Location = @{ + DisplayName = "Conf Room 3; Fourth Coffee; Home Office" + LocationType = "Default" + } + Locations = @( + @{ + DisplayName = "Conf Room 3" + } + @{ + DisplayName = "Fourth Coffee" + Address = @{ + Street = "4567 Main St" + City = "Redmond" + State = "WA" + CountryOrRegion = "US" + PostalCode = "32008" + } + Coordinates = @{ + Latitude = 47.672 + Longitude = -102.103 + } + } + @{ + DisplayName = "Home Office" + } + ) + AllowNewTimeProposals = $true +} +# A UPN can also be used as -UserId. +New-MgUserEvent -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Subject = "Let's go for lunch" + Body = @{ + ContentType = "HTML" + Content = "Does noon work for you?" + } + Start = @{ + DateTime = "2017-04-15T12:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2017-04-15T14:00:00" + TimeZone = "Pacific Standard Time" + } + Location = @{ + DisplayName = "Harry's Bar" + } + Attendees = @( + @{ + EmailAddress = @{ + Address = "samanthab@contoso.onmicrosoft.com" + Name = "Samantha Booth" + } + Type = "required" + } + ) + AllowNewTimeProposals = $true + TransactionId = "7E163156-7762-4BEB-A1C6-729EA81755A7" +} +# A UPN can also be used as -UserId. +New-MgUserEvent -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgUserEvent Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +$params = @{ + Subject = "Let's go for lunch" + Body = @{ + ContentType = "HTML" + Content = "Does noon work for you?" + } + Start = @{ + DateTime = "2017-04-15T12:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2017-04-15T14:00:00" + TimeZone = "Pacific Standard Time" + } + Location = @{ + DisplayName = "Harry's Bar" + } + Attendees = @( + @{ + EmailAddress = @{ + Address = "samanthab@contoso.onmicrosoft.com" + Name = "Samantha Booth" + } + Type = "required" + } + ) + AllowNewTimeProposals = $true + IsOnlineMeeting = $true + OnlineMeetingProvider = "teamsForBusiness" +} +# A UPN can also be used as -UserId. +New-MgUserEvent -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgUserEvent Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +$params = @{ + Subject = "Let's go for lunch" + Body = @{ + ContentType = "HTML" + Content = "Does noon time work for you?" + } + Start = @{ + DateTime = "2017-09-04T12:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2017-09-04T14:00:00" + TimeZone = "Pacific Standard Time" + } + Recurrence = @{ + Pattern = @{ + Type = "weekly" + Interval = 1 + DaysOfWeek = @( + "Monday" + ) + } + Range = @{ + Type = "endDate" + StartDate = "2017-09-04" + EndDate = "2017-12-31" + } + } + Location = @{ + DisplayName = "Harry's Bar" + } + Attendees = @( + @{ + EmailAddress = @{ + Address = "AdeleV@contoso.onmicrosoft.com" + Name = "Adele Vance" + } + Type = "required" + } + ) + AllowNewTimeProposals = $true +} +# A UPN can also be used as -UserId. +New-MgUserEvent -UserId $userId -BodyParameter $params +``` +This example shows how to use the New-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/New-MgUserEventAttachment.md b/src/Calendar/Calendar/examples/v1.0/New-MgUserEventAttachment.md index 093355d11d5..0f1d8d5ddec 100644 --- a/src/Calendar/Calendar/examples/v1.0/New-MgUserEventAttachment.md +++ b/src/Calendar/Calendar/examples/v1.0/New-MgUserEventAttachment.md @@ -1,18 +1,44 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserEventAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + Name = "menu.txt" + ContentBytes = "base64bWFjIGFuZCBjaGVlc2UgdG9kYXk=" +} +# A UPN can also be used as -UserId. +New-MgUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgUserEventAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgUserEventAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + "@odata.type" = "#microsoft.graph.itemAttachment" + Name = "Holiday event" + Item = @{ + "@odata.type" = "microsoft.graph.event" + Subject = "Discuss gifts for children" + } +} +# A UPN can also be used as -UserId. +New-MgUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgUserEventAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgUserEventAttachment Cmdlet +```powershell +Import-Module Microsoft.Graph.Calendar +$params = @{ + "@odata.type" = "#Microsoft.OutlookServices.ItemAttachment" + Name = "name-value" + Item = @{ + "@odata.type" = "microsoft.graph.message" + } +} +# A UPN can also be used as -UserId. +New-MgUserEventAttachment -UserId $userId -EventId $eventId -BodyParameter $params +``` +This example shows how to use the New-MgUserEventAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Remove-MgGroupEvent.md b/src/Calendar/Calendar/examples/v1.0/Remove-MgGroupEvent.md index 093355d11d5..b69e6e26919 100644 --- a/src/Calendar/Calendar/examples/v1.0/Remove-MgGroupEvent.md +++ b/src/Calendar/Calendar/examples/v1.0/Remove-MgGroupEvent.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgGroupEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +Remove-MgGroupEvent -GroupId $groupId -EventId $eventId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgGroupEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Remove-MgUserCalendarGroup.md b/src/Calendar/Calendar/examples/v1.0/Remove-MgUserCalendarGroup.md index 093355d11d5..0a5a38ea9a2 100644 --- a/src/Calendar/Calendar/examples/v1.0/Remove-MgUserCalendarGroup.md +++ b/src/Calendar/Calendar/examples/v1.0/Remove-MgUserCalendarGroup.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserCalendarGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Remove-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserCalendarGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Remove-MgUserCalendarPermission.md b/src/Calendar/Calendar/examples/v1.0/Remove-MgUserCalendarPermission.md index 093355d11d5..a8dec818457 100644 --- a/src/Calendar/Calendar/examples/v1.0/Remove-MgUserCalendarPermission.md +++ b/src/Calendar/Calendar/examples/v1.0/Remove-MgUserCalendarPermission.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserCalendarPermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +Remove-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserCalendarPermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Remove-MgUserEvent.md b/src/Calendar/Calendar/examples/v1.0/Remove-MgUserEvent.md index 093355d11d5..83f110d9576 100644 --- a/src/Calendar/Calendar/examples/v1.0/Remove-MgUserEvent.md +++ b/src/Calendar/Calendar/examples/v1.0/Remove-MgUserEvent.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Remove-MgUserEvent -UserId $userId -EventId $eventId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Remove-MgUserEventAttachment.md b/src/Calendar/Calendar/examples/v1.0/Remove-MgUserEventAttachment.md index 093355d11d5..d12deabc02e 100644 --- a/src/Calendar/Calendar/examples/v1.0/Remove-MgUserEventAttachment.md +++ b/src/Calendar/Calendar/examples/v1.0/Remove-MgUserEventAttachment.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserEventAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +# A UPN can also be used as -UserId. +Remove-MgUserEventAttachment -UserId $userId -EventId $eventId -AttachmentId $attachmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserEventAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Update-MgPlace.md b/src/Calendar/Calendar/examples/v1.0/Update-MgPlace.md index 093355d11d5..cb3f45cc1af 100644 --- a/src/Calendar/Calendar/examples/v1.0/Update-MgPlace.md +++ b/src/Calendar/Calendar/examples/v1.0/Update-MgPlace.md @@ -1,18 +1,41 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPlace Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + "@odata.type" = "microsoft.graph.room" + Nickname = "Conf Room" + Building = "1" + Label = "100" + Capacity = + IsWheelChairAccessible = $false +} +Update-MgPlace -PlaceId $placeId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgPlace Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgPlace Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + "@odata.type" = "microsoft.graph.roomList" + DisplayName = "Building 1" + Phone = "555-555-0100" + Address = @{ + Street = "4567 Main Street" + City = "Buffalo" + State = "NY" + PostalCode = "98052" + CountryOrRegion = "USA" + } + GeoCoordinates = @{ + Altitude = $null + Latitude = 47 + Longitude = -122 + Accuracy = $null + AltitudeAccuracy = $null + } +} +Update-MgPlace -PlaceId $placeId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgPlace Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Update-MgUserCalendarGroup.md b/src/Calendar/Calendar/examples/v1.0/Update-MgUserCalendarGroup.md index 093355d11d5..b97af7a03ef 100644 --- a/src/Calendar/Calendar/examples/v1.0/Update-MgUserCalendarGroup.md +++ b/src/Calendar/Calendar/examples/v1.0/Update-MgUserCalendarGroup.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserCalendarGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Name = "name-value" +} +# A UPN can also be used as -UserId. +Update-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserCalendarGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Update-MgUserCalendarPermission.md b/src/Calendar/Calendar/examples/v1.0/Update-MgUserCalendarPermission.md index 093355d11d5..c18b7480d51 100644 --- a/src/Calendar/Calendar/examples/v1.0/Update-MgUserCalendarPermission.md +++ b/src/Calendar/Calendar/examples/v1.0/Update-MgUserCalendarPermission.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserCalendarPermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + Role = "write" +} +Update-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserCalendarPermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Calendar/Calendar/examples/v1.0/Update-MgUserEvent.md b/src/Calendar/Calendar/examples/v1.0/Update-MgUserEvent.md index 093355d11d5..cdef5fa6cdd 100644 --- a/src/Calendar/Calendar/examples/v1.0/Update-MgUserEvent.md +++ b/src/Calendar/Calendar/examples/v1.0/Update-MgUserEvent.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Calendar +$params = @{ + OriginalStartTimeZone = "originalStartTimeZone-value" + OriginalEndTimeZone = "originalEndTimeZone-value" + ResponseStatus = @{ + Response = "" + Time = [System.DateTime]::Parse("datetime-value") + } + Recurrence = $null + ReminderMinutesBeforeStart = 99 + IsOnlineMeeting = $true + OnlineMeetingProvider = "teamsForBusiness" + IsReminderOn = $true + HideAttendees = $false + Categories = @( + "Red category" + ) +} +# A UPN can also be used as -UserId. +Update-MgUserEvent -UserId $userId -EventId $eventId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/ChangeNotifications/ChangeNotifications/examples/v1.0/Get-MgSubscription.md b/src/ChangeNotifications/ChangeNotifications/examples/v1.0/Get-MgSubscription.md index 093355d11d5..1769d906f4e 100644 --- a/src/ChangeNotifications/ChangeNotifications/examples/v1.0/Get-MgSubscription.md +++ b/src/ChangeNotifications/ChangeNotifications/examples/v1.0/Get-MgSubscription.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSubscription Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.ChangeNotifications +Get-MgSubscription -SubscriptionId $subscriptionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSubscription Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSubscription Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.ChangeNotifications +Get-MgSubscription ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSubscription Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/ChangeNotifications/ChangeNotifications/examples/v1.0/New-MgSubscription.md b/src/ChangeNotifications/ChangeNotifications/examples/v1.0/New-MgSubscription.md index 093355d11d5..04a885a039d 100644 --- a/src/ChangeNotifications/ChangeNotifications/examples/v1.0/New-MgSubscription.md +++ b/src/ChangeNotifications/ChangeNotifications/examples/v1.0/New-MgSubscription.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSubscription Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.ChangeNotifications +$params = @{ + ChangeType = "created" + NotificationUrl = "https://webhook.azurewebsites.net/api/send/myNotifyClient" + Resource = "me/mailFolders('Inbox')/messages" + ExpirationDateTime = [System.DateTime]::Parse("2016-11-20T18:23:45.9356913Z") + ClientState = "secretClientValue" + LatestSupportedTlsVersion = "v1_2" +} +New-MgSubscription -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSubscription Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/ChangeNotifications/ChangeNotifications/examples/v1.0/Remove-MgSubscription.md b/src/ChangeNotifications/ChangeNotifications/examples/v1.0/Remove-MgSubscription.md index 093355d11d5..b3e85fc18fc 100644 --- a/src/ChangeNotifications/ChangeNotifications/examples/v1.0/Remove-MgSubscription.md +++ b/src/ChangeNotifications/ChangeNotifications/examples/v1.0/Remove-MgSubscription.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSubscription Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.ChangeNotifications +Remove-MgSubscription -SubscriptionId $subscriptionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSubscription Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/ChangeNotifications/ChangeNotifications/examples/v1.0/Update-MgSubscription.md b/src/ChangeNotifications/ChangeNotifications/examples/v1.0/Update-MgSubscription.md index 093355d11d5..63f13de21ad 100644 --- a/src/ChangeNotifications/ChangeNotifications/examples/v1.0/Update-MgSubscription.md +++ b/src/ChangeNotifications/ChangeNotifications/examples/v1.0/Update-MgSubscription.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSubscription Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.ChangeNotifications +$params = @{ + ExpirationDateTime = [System.DateTime]::Parse("2016-11-22T18:23:45.9356913Z") +} +Update-MgSubscription -SubscriptionId $subscriptionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSubscription Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationCall.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationCall.md index 093355d11d5..a72fdeaa6d5 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationCall.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationCall.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCall -CallId $callId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCall -CallId $callId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationCallParticipant.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationCallParticipant.md index 093355d11d5..72149e2e232 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationCallParticipant.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationCallParticipant.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgCommunicationCallParticipant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallParticipant -CallId $callId -ParticipantId $participantId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgCommunicationCallParticipant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallParticipant -CallId $callId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationCallRecord.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationCallRecord.md index 093355d11d5..98881a1e09c 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationCallRecord.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationCallRecord.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgCommunicationCallRecord Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallRecord -CallRecordId $callRecordId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgCommunicationCallRecord Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgCommunicationCallRecord Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallRecord -CallRecordId $callRecordId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgCommunicationCallRecord Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgCommunicationCallRecord Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallRecord -CallRecordId $callRecordId -ExpandProperty "sessions(`$expand=segments)" +``` +This example shows how to use the Get-MgCommunicationCallRecord Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgCommunicationCallRecord Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallRecord -CallRecordId $callRecordId +``` +This example shows how to use the Get-MgCommunicationCallRecord Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationCallRecordSession.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationCallRecordSession.md index 093355d11d5..bb37f1e1840 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationCallRecordSession.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationCallRecordSession.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgCommunicationCallRecordSession Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallRecordSession -CallRecordId $callRecordId -ExpandProperty "segments" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgCommunicationCallRecordSession Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgCommunicationCallRecordSession Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationCallRecordSession -CallRecordId $callRecordId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgCommunicationCallRecordSession Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationOnlineMeeting.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationOnlineMeeting.md index 093355d11d5..f9a1cbbf31f 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationOnlineMeeting.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationOnlineMeeting.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgCommunicationOnlineMeeting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationOnlineMeeting -Filter "VideoTeleconferenceId eq '123456789'" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgCommunicationOnlineMeeting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationPresence.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationPresence.md index 093355d11d5..556595a1c6e 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationPresence.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationPresence.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgCommunicationPresence Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgCommunicationPresence -PresenceId $presenceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgCommunicationPresence Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationPresenceByUserId.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationPresenceByUserId.md index 093355d11d5..a60acba208c 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationPresenceByUserId.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgCommunicationPresenceByUserId.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgCommunicationPresenceByUserId Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Ids = @( + "fa8bf3dc-eca7-46b7-bad1-db199b62afc3" + "66825e03-7ef5-42da-9069-724602c31f6b" + ) +} +Get-MgCommunicationPresenceByUserId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgCommunicationPresenceByUserId Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgUserOnlineMeeting.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgUserOnlineMeeting.md index 093355d11d5..f3391370541 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgUserOnlineMeeting.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgUserOnlineMeeting.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnlineMeeting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeeting -UserId $userId -Filter "JoinWebUrl eq 'https://teams.microsoft.com/l/meetup-join/19:meeting_MGQ4MDQyNTEtNTQ2NS00YjQxLTlkM2EtZWVkODYxODYzMmY2@thread.v2/0?context" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserOnlineMeeting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserOnlineMeeting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnlineMeeting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgUserOnlineMeetingAttendanceReport.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgUserOnlineMeetingAttendanceReport.md index 093355d11d5..1007c598f27 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgUserOnlineMeetingAttendanceReport.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgUserOnlineMeetingAttendanceReport.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnlineMeetingAttendanceReport Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeetingAttendanceReport -UserId $userId -OnlineMeetingId $onlineMeetingId -MeetingAttendanceReportId $meetingAttendanceReportId -ExpandProperty "attendanceRecords" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserOnlineMeetingAttendanceReport Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserOnlineMeetingAttendanceReport Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeetingAttendanceReport -UserId $userId -OnlineMeetingId $onlineMeetingId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnlineMeetingAttendanceReport Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord.md index 093355d11d5..b24671c5786 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord -UserId $userId -OnlineMeetingId $onlineMeetingId -MeetingAttendanceReportId $meetingAttendanceReportId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnlineMeetingAttendanceReportAttendanceRecord Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgUserPresence.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgUserPresence.md index 093355d11d5..f1e2247c590 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgUserPresence.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Get-MgUserPresence.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserPresence Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Get-MgUserPresence -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserPresence Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserPresence Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Get-MgUserPresence -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserPresence Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgAnswerCommunicationCall.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgAnswerCommunicationCall.md index 093355d11d5..fe39b8f774d 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgAnswerCommunicationCall.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgAnswerCommunicationCall.md @@ -1,18 +1,53 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgAnswerCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + CallbackUri = "https://bot.contoso.com/api/calls" + AcceptedModalities = @( + "audio" + ) + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" + Blob = "" + } +} +Invoke-MgAnswerCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Invoke-MgAnswerCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Invoke-MgAnswerCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + CallbackUri = "callbackUri-value" + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" + Blob = "" + } + AcceptedModalities = @( + "audio" + ) + ParticipantCapacity = 200 +} +Invoke-MgAnswerCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgAnswerCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Invoke-MgAnswerCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + CallbackUri = "https://bot.contoso.com/api/calls" + AcceptedModalities = @( + "audio" + ) + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" + PreFetchMedia = @( + ) + } +} +Invoke-MgAnswerCommunicationCall -CallId $callId -BodyParameter $params +``` +This example shows how to use the Invoke-MgAnswerCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgInviteCommunicationCallParticipant.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgInviteCommunicationCallParticipant.md index 093355d11d5..79ab2f9e04d 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgInviteCommunicationCallParticipant.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgInviteCommunicationCallParticipant.md @@ -1,18 +1,179 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgInviteCommunicationCallParticipant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + ReplacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "278405a3-f568-4b3e-b684-009193463064" + IdentityProvider = "AAD" + } + } + } + ) + ClientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} +Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Invoke-MgInviteCommunicationCallParticipant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + Phone = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "+12345678901" + } + } + } + ) + ClientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} +Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Invoke-MgInviteCommunicationCallParticipant Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + ReplacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "7e1b4346-85a6-4bdd-abe3-d11c5d420efe" + DisplayName = "string" + } + } + } + ) + ClientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} +Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params +``` +This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Invoke-MgInviteCommunicationCallParticipant Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + ReplacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + ParticipantId = "7d501bf1-5ee4-4605-ba92-0ae4513c611c" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "682b6c37-0729-4fab-ace6-d730d5d9137e" + IdentityProvider = "AAD" + } + } + } + ) + ClientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} +Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params +``` +This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Invoke-MgInviteCommunicationCallParticipant Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + ReplacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "7e1b4346-85a6-4bdd-abe3-d11c5d420efe" + DisplayName = "string" + } + } + } + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + ReplacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "1e126418-44a0-4a94-a6f8-0efe1ad71acb" + DisplayName = "string" + } + } + } + ) + ClientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} +Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params +``` +This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Invoke-MgInviteCommunicationCallParticipant Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + ReplacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "278405a3-f568-4b3e-b684-009193463064" + IdentityProvider = "AAD" + } + } + } + ) + ClientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} +Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params +``` +This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the Invoke-MgInviteCommunicationCallParticipant Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Participants = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + ReplacesCallId = "a7ebfb2d-871e-419c-87af-27290b22e8db" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "278405a3-f568-4b3e-b684-009193463064" + DisplayName = "string" + } + } + } + ) + ClientContext = "f2fa86af-3c51-4bc2-8fc0-475452d9764f" +} +Invoke-MgInviteCommunicationCallParticipant -CallId $callId -BodyParameter $params +``` +This example shows how to use the Invoke-MgInviteCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgKeepCommunicationCallAlive.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgKeepCommunicationCallAlive.md index 093355d11d5..c6c112f320d 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgKeepCommunicationCallAlive.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgKeepCommunicationCallAlive.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgKeepCommunicationCallAlive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Invoke-MgKeepCommunicationCallAlive -CallId $callId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgKeepCommunicationCallAlive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgLogCommunicationCallTeleconferenceDeviceQuality.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgLogCommunicationCallTeleconferenceDeviceQuality.md index 093355d11d5..4c27e107509 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgLogCommunicationCallTeleconferenceDeviceQuality.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgLogCommunicationCallTeleconferenceDeviceQuality.md @@ -1,18 +1,91 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgLogCommunicationCallTeleconferenceDeviceQuality Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Quality = @{ + "@odata.type" = "#microsoft.graph.teleconferenceDeviceQuality" + CallChainId = "0622673d-9f69-49b3-9d4f-5ec64f42ecce" + ParticipantId = "ea078406-b5d4-4d3c-b85e-90103dcec7f6" + MediaLegId = "bd9ee398-4b9d-42c7-8b8d-4e8efad9435f" + DeviceName = "TestAgent" + DeviceDescription = "TestDescription" + MediaQualityList = @( + @{ + "@odata.type" = "#microsoft.graph.teleconferenceDeviceAudioQuality" + ChannelIndex = 1 + MediaDuration = "PT20M" + NetworkLinkSpeedInBytes = 13000 + LocalIPAddress = "127.0.0.1" + LocalPort = 6300 + RemoteIPAddress = "102.1.1.101" + RemotePort = 6301 + InboundPackets = 5500 + OutboundPackets = 5400 + AverageInboundPacketLossRateInPercentage = 0.01 + AverageOutboundPacketLossRateInPercentage = 0.02 + MaximumInboundPacketLossRateInPercentage = 0.05 + MaximumOutboundPacketLossRateInPercentage = 0.06 + AverageInboundRoundTripDelay = "PT0.03S" + AverageOutboundRoundTripDelay = "PT0.04S" + MaximumInboundRoundTripDelay = "PT0.13S" + MaximumOutboundRoundTripDelay = "PT0.14S" + AverageInboundJitter = "PT0.01S" + AverageOutboundJitter = "PT0.015S" + MaximumInboundJitter = "PT0.023S" + MaximumOutboundJitter = "PT0.024S" + } + @{ + "@odata.type" = "#microsoft.graph.teleconferenceDeviceVideoQuality" + ChannelIndex = 1 + MediaDuration = "PT20M" + NetworkLinkSpeedInBytes = 13000 + LocalIPAddress = "127.0.0.1" + LocalPort = 6300 + RemoteIPAddress = "102.1.1.101" + RemotePort = 6301 + InboundPackets = 5500 + OutboundPackets = 5400 + AverageInboundPacketLossRateInPercentage = 0.01 + AverageOutboundPacketLossRateInPercentage = 0.02 + MaximumInboundPacketLossRateInPercentage = 0.05 + MaximumOutboundPacketLossRateInPercentage = 0.06 + AverageInboundRoundTripDelay = "PT0.03S" + AverageOutboundRoundTripDelay = "PT0.04S" + MaximumInboundRoundTripDelay = "PT0.13S" + MaximumOutboundRoundTripDelay = "PT0.14S" + AverageInboundJitter = "PT0.01S" + AverageOutboundJitter = "PT0.015S" + MaximumInboundJitter = "PT0.023S" + MaximumOutboundJitter = "PT0.024S" + } + @{ + "@odata.type" = "#microsoft.graph.teleconferenceDeviceScreenSharingQuality" + ChannelIndex = 1 + MediaDuration = "PT20M" + NetworkLinkSpeedInBytes = 13000 + LocalIPAddress = "127.0.0.1" + LocalPort = 6300 + RemoteIPAddress = "102.1.1.101" + RemotePort = 6301 + InboundPackets = 5500 + OutboundPackets = 5400 + AverageInboundPacketLossRateInPercentage = 0.01 + AverageOutboundPacketLossRateInPercentage = 0.02 + MaximumInboundPacketLossRateInPercentage = 0.05 + MaximumOutboundPacketLossRateInPercentage = 0.06 + AverageInboundRoundTripDelay = "PT0.03S" + AverageOutboundRoundTripDelay = "PT0.04S" + MaximumInboundRoundTripDelay = "PT0.13S" + MaximumOutboundRoundTripDelay = "PT0.14S" + AverageInboundJitter = "PT0.01S" + AverageOutboundJitter = "PT0.015S" + MaximumInboundJitter = "PT0.023S" + MaximumOutboundJitter = "PT0.024S" + } + ) + } +} +Invoke-MgLogCommunicationCallTeleconferenceDeviceQuality -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgLogCommunicationCallTeleconferenceDeviceQuality Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgMuteCommunicationCall.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgMuteCommunicationCall.md index 093355d11d5..3c22f79fe0e 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgMuteCommunicationCall.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgMuteCommunicationCall.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgMuteCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + ClientContext = "clientContext-value" +} +Invoke-MgMuteCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgMuteCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgMuteCommunicationCallParticipant.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgMuteCommunicationCallParticipant.md index 093355d11d5..aed263de925 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgMuteCommunicationCallParticipant.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgMuteCommunicationCallParticipant.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgMuteCommunicationCallParticipant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + ClientContext = "d45324c1-fcb5-430a-902c-f20af696537c" +} +Invoke-MgMuteCommunicationCallParticipant -CallId $callId -ParticipantId $participantId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgMuteCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgPlayCommunicationCallPrompt.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgPlayCommunicationCallPrompt.md index 093355d11d5..10c8fef5b69 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgPlayCommunicationCallPrompt.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgPlayCommunicationCallPrompt.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgPlayCommunicationCallPrompt Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + ClientContext = "d45324c1-fcb5-430a-902c-f20af696537c" + Prompts = @( + @{ + "@odata.type" = "#microsoft.graph.mediaPrompt" + MediaInfo = @{ + "@odata.type" = "#microsoft.graph.mediaInfo" + Uri = "https://cdn.contoso.com/beep.wav" + ResourceId = "1D6DE2D4-CD51-4309-8DAA-70768651088E" + } + } + ) +} +Invoke-MgPlayCommunicationCallPrompt -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgPlayCommunicationCallPrompt Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgRecordCommunicationCallResponse.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgRecordCommunicationCallResponse.md index 093355d11d5..ea4770278a5 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgRecordCommunicationCallResponse.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgRecordCommunicationCallResponse.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgRecordCommunicationCallResponse Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + BargeInAllowed = $true + ClientContext = "d45324c1-fcb5-430a-902c-f20af696537c" + Prompts = @( + @{ + "@odata.type" = "#microsoft.graph.mediaPrompt" + } + ) + MaxRecordDurationInSeconds = 10 + InitialSilenceTimeoutInSeconds = 5 + MaxSilenceTimeoutInSeconds = 2 + PlayBeep = $true + StopTones = @( + "#" + "1" + "*" + ) +} +Invoke-MgRecordCommunicationCallResponse -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgRecordCommunicationCallResponse Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgRedirectCommunicationCall.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgRedirectCommunicationCall.md index 093355d11d5..78de10da0db 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgRedirectCommunicationCall.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgRedirectCommunicationCall.md @@ -1,18 +1,45 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgRedirectCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Targets = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + Application = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "test bot 2" + Id = "22bfd41f-550e-477d-8789-f6f7bd2a5e8b" + } + } + } + ) + CallbackUri = "https://bot.contoso.com/api/calls/24701998-1a73-4d42-8085-bf46ed0ae039" +} +Invoke-MgRedirectCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Invoke-MgRedirectCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Invoke-MgRedirectCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Targets = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + Phone = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "+12345678901" + } + } + } + ) + CallbackUri = "https://bot.contoso.com/api/calls/24701998-1a73-4d42-8085-bf46ed0ae039" +} +Invoke-MgRedirectCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgRedirectCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgRejectCommunicationCall.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgRejectCommunicationCall.md index 093355d11d5..46c6566b76a 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgRejectCommunicationCall.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgRejectCommunicationCall.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgRejectCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Reason = "none" +} +Invoke-MgRejectCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Invoke-MgRejectCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Invoke-MgRejectCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Reason = "busy" +} +Invoke-MgRejectCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgRejectCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgSubscribeCommunicationCallToTone.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgSubscribeCommunicationCallToTone.md index 093355d11d5..77e69a9ac3d 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgSubscribeCommunicationCallToTone.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgSubscribeCommunicationCallToTone.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgSubscribeCommunicationCallToTone Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + ClientContext = "fd1c7836-4d84-4e24-b6aa-23188688cc54" +} +Invoke-MgSubscribeCommunicationCallToTone -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgSubscribeCommunicationCallToTone Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgUnmuteCommunicationCall.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgUnmuteCommunicationCall.md index 093355d11d5..be188d22540 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgUnmuteCommunicationCall.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Invoke-MgUnmuteCommunicationCall.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgUnmuteCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + ClientContext = "clientContext-value" +} +Invoke-MgUnmuteCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgUnmuteCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Move-MgCommunicationCall.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Move-MgCommunicationCall.md index 093355d11d5..4cdb23a8dad 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Move-MgCommunicationCall.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Move-MgCommunicationCall.md @@ -1,18 +1,112 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Move-MgCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + TransferTarget = @{ + EndpointType = "default" + Identity = @{ + User = @{ + Id = "550fae72-d251-43ec-868c-373732c2704f" + DisplayName = "Heidi Steen" + } + } + } +} +Move-MgCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Move-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Move-MgCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + TransferTarget = @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + EndpointType = "default" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "550fae72-d251-43ec-868c-373732c2704f" + DisplayName = "Heidi Steen" + } + } + ReplacesCallId = "e5d39592-99bd-4db8-bca8-30fb894ec51d" + } +} +Move-MgCommunicationCall -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Move-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Move-MgCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + TransferTarget = @{ + EndpointType = "default" + Identity = @{ + Phone = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "+12345678901" + } + } + LanguageId = "languageId-value" + Region = "region-value" + } + ClientContext = "9e90d1c1-f61e-43e7-9f75-d420159aae08" +} +Move-MgCommunicationCall -CallId $callId -BodyParameter $params +``` +This example shows how to use the Move-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Move-MgCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + TransferTarget = @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + EndpointType = "default" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + Phone = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "+12345678901" + } + } + LanguageId = "en-us" + Region = "amer" + ReplacesCallId = "e5d39592-99bd-4db8-bca8-30fb894ec51d" + } + ClientContext = "9e90d1c1-f61e-43e7-9f75-d420159aae08" +} +Move-MgCommunicationCall -CallId $callId -BodyParameter $params +``` +This example shows how to use the Move-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Move-MgCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + TransferTarget = @{ + EndpointType = "default" + Identity = @{ + User = @{ + Id = "550fae72-d251-43ec-868c-373732c2704f" + DisplayName = "Heidi Steen" + } + } + } + Transferee = @{ + Identity = @{ + User = @{ + Id = "751f6800-3180-414d-bd94-333364659951" + TenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + } + ParticipantId = "909c6581-5130-43e9-88f3-fcb3582cde37" + } +} +Move-MgCommunicationCall -CallId $callId -BodyParameter $params +``` +This example shows how to use the Move-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/New-MgCommunicationCall.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/New-MgCommunicationCall.md index 093355d11d5..1a09ed853a1 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/New-MgCommunicationCall.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/New-MgCommunicationCall.md @@ -1,18 +1,165 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + "@odata.type" = "#microsoft.graph.call" + CallbackUri = "https://bot.contoso.com/callback" + Source = @{ + "@odata.type" = "#microsoft.graph.participantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + Application = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "Calling Bot" + Id = "2891555a-92ff-42e6-80fa-6e1300c6b5c6" + } + } + Region = $null + LanguageId = $null + } + Targets = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "John" + Id = "112f7296-5fa4-42ca-bae8-6a692b15d4b8" + } + } + } + ) + RequestedModalities = @( + "audio" + ) + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" + Blob = "" + } +} +New-MgCommunicationCall -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + "@odata.type" = "#microsoft.graph.call" + CallbackUri = "https://bot.contoso.com/callback" + Targets = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + User = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "John" + Id = "112f7296-5fa4-42ca-bae8-6a692b15d4b8" + } + } + } + ) + RequestedModalities = @( + "audio" + ) + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" + } +} +New-MgCommunicationCall -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + "@odata.type" = "#microsoft.graph.call" + CallbackUri = "https://bot.contoso.com/callback" + Source = @{ + "@odata.type" = "#microsoft.graph.participantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + ApplicationInstance = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "Calling Bot" + Id = "3d913abb-aec0-4964-8fa6-3c6850c4f278" + } + } + CountryCode = $null + EndpointType = $null + Region = $null + LanguageId = $null + } + Targets = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + Phone = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "+12345678901" + } + } + } + ) + RequestedModalities = @( + "audio" + ) + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.serviceHostedMediaConfig" + } + TenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" +} +New-MgCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgCommunicationCall Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + "@odata.type" = "#microsoft.graph.call" + CallbackUri = "https://bot.contoso.com/callback" + Source = @{ + "@odata.type" = "#microsoft.graph.participantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + ApplicationInstance = @{ + "@odata.type" = "#microsoft.graph.identity" + DisplayName = "Calling Bot" + Id = "3d913abb-aec0-4964-8fa6-3c6850c4f278" + } + } + CountryCode = $null + EndpointType = $null + Region = $null + LanguageId = $null + } + Targets = @( + @{ + "@odata.type" = "#microsoft.graph.invitationParticipantInfo" + Identity = @{ + "@odata.type" = "#microsoft.graph.identitySet" + Phone = @{ + "@odata.type" = "#microsoft.graph.identity" + Id = "+12345678901" + } + } + } + ) + RequestedModalities = @( + "audio" + ) + MediaConfig = @{ + "@odata.type" = "#microsoft.graph.appHostedMediaConfig" + Blob = "" + } + TenantId = "aa67bd4c-8475-432d-bd41-39f255720e0a" +} +New-MgCommunicationCall -BodyParameter $params +``` +This example shows how to use the New-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/New-MgUserOnlineMeeting.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/New-MgUserOnlineMeeting.md index 093355d11d5..5365de1e1e4 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/New-MgUserOnlineMeeting.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/New-MgUserOnlineMeeting.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOnlineMeeting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + StartDateTime = [System.DateTime]::Parse("2019-07-12T14:30:34.2444915-07:00") + EndDateTime = [System.DateTime]::Parse("2019-07-12T15:00:34.2464912-07:00") + Subject = "User Token Meeting" +} +# A UPN can also be used as -UserId. +New-MgUserOnlineMeeting -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOnlineMeeting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Remove-MgCommunicationCall.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Remove-MgCommunicationCall.md index 093355d11d5..ab885f07af7 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Remove-MgCommunicationCall.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Remove-MgCommunicationCall.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgCommunicationCall Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Remove-MgCommunicationCall -CallId $callId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgCommunicationCall Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Remove-MgCommunicationCallParticipant.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Remove-MgCommunicationCallParticipant.md index 093355d11d5..2e2307375d1 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Remove-MgCommunicationCallParticipant.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Remove-MgCommunicationCallParticipant.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgCommunicationCallParticipant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Remove-MgCommunicationCallParticipant -CallId $callId -ParticipantId $participantId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgCommunicationCallParticipant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +Remove-MgCommunicationCallParticipant -CallId $callId -ParticipantId $participantId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Remove-MgCommunicationCallParticipant Cmdlet +```powershell +Import-Module Microsoft.Graph.CloudCommunications +Remove-MgCommunicationCallParticipant -CallId $callId -ParticipantId $participantId +``` +This example shows how to use the Remove-MgCommunicationCallParticipant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Remove-MgUserOnlineMeeting.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Remove-MgUserOnlineMeeting.md index 093355d11d5..4bb2a06bfde 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Remove-MgUserOnlineMeeting.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Remove-MgUserOnlineMeeting.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserOnlineMeeting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +# A UPN can also be used as -UserId. +Remove-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserOnlineMeeting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Rename-MgCommunicationCallScreenSharingRole.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Rename-MgCommunicationCallScreenSharingRole.md index 093355d11d5..d243da27c61 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Rename-MgCommunicationCallScreenSharingRole.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Rename-MgCommunicationCallScreenSharingRole.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Rename-MgCommunicationCallScreenSharingRole Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + Role = "viewer" +} +Rename-MgCommunicationCallScreenSharingRole -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Rename-MgCommunicationCallScreenSharingRole Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Start-MgCommunicationCallParticipantHoldMusic.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Start-MgCommunicationCallParticipantHoldMusic.md index 093355d11d5..6806abfe935 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Start-MgCommunicationCallParticipantHoldMusic.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Start-MgCommunicationCallParticipantHoldMusic.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Start-MgCommunicationCallParticipantHoldMusic Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + CustomPrompt = @{ + "@odata.type" = "#microsoft.graph.mediaPrompt" + MediaInfo = @{ + "@odata.type" = "#microsoft.graph.mediaInfo" + Uri = "https://bot.contoso.com/onHold.wav" + } + } + ClientContext = "d45324c1-fcb5-430a-902c-f20af696537c" +} +Start-MgCommunicationCallParticipantHoldMusic -CallId $callId -ParticipantId $participantId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Start-MgCommunicationCallParticipantHoldMusic Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Stop-MgCommunicationCallMediaProcessing.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Stop-MgCommunicationCallMediaProcessing.md index 093355d11d5..27be968ba66 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Stop-MgCommunicationCallMediaProcessing.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Stop-MgCommunicationCallMediaProcessing.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgCommunicationCallMediaProcessing Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + ClientContext = "clientContext-value" +} +Stop-MgCommunicationCallMediaProcessing -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgCommunicationCallMediaProcessing Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Stop-MgCommunicationCallParticipantHoldMusic.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Stop-MgCommunicationCallParticipantHoldMusic.md index 093355d11d5..5cee3411d01 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Stop-MgCommunicationCallParticipantHoldMusic.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Stop-MgCommunicationCallParticipantHoldMusic.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgCommunicationCallParticipantHoldMusic Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + ClientContext = "d45324c1-fcb5-430a-902c-f20af696537c" +} +Stop-MgCommunicationCallParticipantHoldMusic -CallId $callId -ParticipantId $participantId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgCommunicationCallParticipantHoldMusic Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Update-MgCommunicationCallRecordingStatus.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Update-MgCommunicationCallRecordingStatus.md index 093355d11d5..73347809cf7 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Update-MgCommunicationCallRecordingStatus.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Update-MgCommunicationCallRecordingStatus.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgCommunicationCallRecordingStatus Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + ClientContext = "clientContext-value" + Status = "notRecording | recording | failed" +} +Update-MgCommunicationCallRecordingStatus -CallId $callId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgCommunicationCallRecordingStatus Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CloudCommunications/CloudCommunications/examples/v1.0/Update-MgUserOnlineMeeting.md b/src/CloudCommunications/CloudCommunications/examples/v1.0/Update-MgUserOnlineMeeting.md index 093355d11d5..364851416fc 100644 --- a/src/CloudCommunications/CloudCommunications/examples/v1.0/Update-MgUserOnlineMeeting.md +++ b/src/CloudCommunications/CloudCommunications/examples/v1.0/Update-MgUserOnlineMeeting.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserOnlineMeeting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + LobbyBypassSettings = @{ + IsDialInBypassEnabled = $true + } +} +# A UPN can also be used as -UserId. +Update-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgUserOnlineMeeting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgUserOnlineMeeting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CloudCommunications +$params = @{ + StartDateTime = [System.DateTime]::Parse("2020-09-09T14:33:30.8546353-07:00") + EndDateTime = [System.DateTime]::Parse("2020-09-09T15:03:30.8566356-07:00") + Subject = "Patch Meeting Subject" +} +# A UPN can also be used as -UserId. +Update-MgUserOnlineMeeting -UserId $userId -OnlineMeetingId $onlineMeetingId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserOnlineMeeting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/CrossDeviceExperiences/CrossDeviceExperiences/examples/v1.0/Remove-MgUserActivity.md b/src/CrossDeviceExperiences/CrossDeviceExperiences/examples/v1.0/Remove-MgUserActivity.md index 093355d11d5..2668fe4af6e 100644 --- a/src/CrossDeviceExperiences/CrossDeviceExperiences/examples/v1.0/Remove-MgUserActivity.md +++ b/src/CrossDeviceExperiences/CrossDeviceExperiences/examples/v1.0/Remove-MgUserActivity.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserActivity Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.CrossDeviceExperiences +# A UPN can also be used as -UserId. +Remove-MgUserActivity -UserId $userId -UserActivityId $userActivityId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserActivity Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleAssignment.md index 093355d11d5..f94fdaee9c2 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleAssignment.md @@ -1,18 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementDirectoryRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignment -Filter "roleDefinitionId eq '62e90394-69f5-4237-9190-012177145e10'" -ExpandProperty "principal" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRoleManagementDirectoryRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignment -Filter " principalId eq '5bde3e51-d13b-4db1-9948-fe4b109d11a7'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgRoleManagementDirectoryRoleAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignment -UnifiedRoleAssignmentId $unifiedRoleAssignmentId -ExpandProperty "roleDefinition" +``` +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgRoleManagementDirectoryRoleAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignment -UnifiedRoleAssignmentId $unifiedRoleAssignmentId +``` +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgRoleManagementDirectoryRoleAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignment -UnifiedRoleAssignmentId $unifiedRoleAssignmentId -ExpandProperty "roleDefinition" +``` +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleAssignmentSchedule.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleAssignmentSchedule.md index 093355d11d5..b80bd0961a7 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleAssignmentSchedule.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleAssignmentSchedule.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementDirectoryRoleAssignmentSchedule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignmentSchedule -UnifiedRoleAssignmentScheduleId $unifiedRoleAssignmentScheduleId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignmentSchedule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRoleManagementDirectoryRoleAssignmentSchedule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignmentSchedule ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignmentSchedule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgRoleManagementDirectoryRoleAssignmentSchedule Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignmentSchedule -UnifiedRoleAssignmentScheduleId $unifiedRoleAssignmentScheduleId +``` +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignmentSchedule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance.md index 093355d11d5..a53757881b2 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance -UnifiedRoleAssignmentScheduleInstanceId $unifiedRoleAssignmentScheduleInstanceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance -UnifiedRoleAssignmentScheduleInstanceId $unifiedRoleAssignmentScheduleInstanceId +``` +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignmentScheduleInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest.md index 093355d11d5..fe33de14c10 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest.md @@ -1,18 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest -UnifiedRoleAssignmentScheduleRequestId $unifiedRoleAssignmentScheduleRequestId -Property "principalId,action,roleDefinitionId" -ExpandProperty "roleDefinition,activatedUsing,principal,targetSchedule" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest -UnifiedRoleAssignmentScheduleRequestId $unifiedRoleAssignmentScheduleRequestId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest -Property "principalId,action,roleDefinitionId" -ExpandProperty "roleDefinition,activatedUsing,principal,targetSchedule" +``` +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest +``` +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest -UnifiedRoleAssignmentScheduleRequestId $unifiedRoleAssignmentScheduleRequestId +``` +This example shows how to use the Get-MgRoleManagementDirectoryRoleAssignmentScheduleRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleDefinition.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleDefinition.md index 093355d11d5..68c7b8e4a6d 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleDefinition.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleDefinition.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementDirectoryRoleDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleDefinition -UnifiedRoleDefinitionId $unifiedRoleDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRoleManagementDirectoryRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRoleManagementDirectoryRoleDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleDefinition -UnifiedRoleDefinitionId $unifiedRoleDefinitionId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementDirectoryRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgRoleManagementDirectoryRoleDefinition Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleDefinition -UnifiedRoleDefinitionId $unifiedRoleDefinitionId -ExpandProperty "inheritsPermissionsFrom" +``` +This example shows how to use the Get-MgRoleManagementDirectoryRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgRoleManagementDirectoryRoleDefinition Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleDefinition +``` +This example shows how to use the Get-MgRoleManagementDirectoryRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleEligibilitySchedule.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleEligibilitySchedule.md index 093355d11d5..92758c877ee 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleEligibilitySchedule.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleEligibilitySchedule.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementDirectoryRoleEligibilitySchedule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleEligibilitySchedule -UnifiedRoleEligibilityScheduleId $unifiedRoleEligibilityScheduleId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRoleManagementDirectoryRoleEligibilitySchedule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRoleManagementDirectoryRoleEligibilitySchedule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleEligibilitySchedule ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementDirectoryRoleEligibilitySchedule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgRoleManagementDirectoryRoleEligibilitySchedule Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleEligibilitySchedule -UnifiedRoleEligibilityScheduleId $unifiedRoleEligibilityScheduleId +``` +This example shows how to use the Get-MgRoleManagementDirectoryRoleEligibilitySchedule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance.md index 093355d11d5..e30df453d7b 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance -UnifiedRoleEligibilityScheduleInstanceId $unifiedRoleEligibilityScheduleInstanceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance -UnifiedRoleEligibilityScheduleInstanceId $unifiedRoleEligibilityScheduleInstanceId +``` +This example shows how to use the Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleEligibilityScheduleRequest.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleEligibilityScheduleRequest.md index 093355d11d5..4beb7da98d5 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleEligibilityScheduleRequest.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementDirectoryRoleEligibilityScheduleRequest.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementDirectoryRoleEligibilityScheduleRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleEligibilityScheduleRequest -UnifiedRoleEligibilityScheduleRequestId $unifiedRoleEligibilityScheduleRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRoleManagementDirectoryRoleEligibilityScheduleRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRoleManagementDirectoryRoleEligibilityScheduleRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleEligibilityScheduleRequest ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementDirectoryRoleEligibilityScheduleRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgRoleManagementDirectoryRoleEligibilityScheduleRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementDirectoryRoleEligibilityScheduleRequest -UnifiedRoleEligibilityScheduleRequestId $unifiedRoleEligibilityScheduleRequestId +``` +This example shows how to use the Get-MgRoleManagementDirectoryRoleEligibilityScheduleRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementEntitlementManagementRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementEntitlementManagementRoleAssignment.md index 093355d11d5..dd572c60008 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementEntitlementManagementRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementEntitlementManagementRoleAssignment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementEntitlementManagementRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementEntitlementManagementRoleAssignment -Filter "appScopeId eq '/AccessPackageCatalog/4cee616b-fdf9-4890-9d10-955e0ccb12bc'" -ExpandProperty "principal" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementEntitlementManagementRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementEntitlementManagementRoleDefinition.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementEntitlementManagementRoleDefinition.md index 093355d11d5..8badc617835 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementEntitlementManagementRoleDefinition.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Get-MgRoleManagementEntitlementManagementRoleDefinition.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRoleManagementEntitlementManagementRoleDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Get-MgRoleManagementEntitlementManagementRoleDefinition ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgRoleManagementEntitlementManagementRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementDirectoryRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementDirectoryRoleAssignment.md index 093355d11d5..a8855ce11cb 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementDirectoryRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementDirectoryRoleAssignment.md @@ -1,18 +1,39 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgRoleManagementDirectoryRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + "@odata.type" = "#microsoft.graph.unifiedRoleAssignment" + RoleDefinitionId = "c2cf284d-6c41-4e6b-afac-4b80928c9034" + PrincipalId = "f8ca5a85-489a-49a0-b555-0a6d81e56f0d" + DirectoryScopeId = "/" +} +New-MgRoleManagementDirectoryRoleAssignment -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgRoleManagementDirectoryRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgRoleManagementDirectoryRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + "@odata.type" = "#microsoft.graph.unifiedRoleAssignment" + RoleDefinitionId = "fe930be7-5e62-47db-91af-98c3a49a38b1" + PrincipalId = "f8ca5a85-489a-49a0-b555-0a6d81e56f0d" + DirectoryScopeId = "/administrativeUnits/5d107bba-d8e2-4e13-b6ae-884be90e5d1a" +} +New-MgRoleManagementDirectoryRoleAssignment -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgRoleManagementDirectoryRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgRoleManagementDirectoryRoleAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + "@odata.type" = "#microsoft.graph.unifiedRoleAssignment" + PrincipalId = "6b937a9d-c731-465b-a844-2d5b5368c161" + RoleDefinitionId = "9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3" + DirectoryScopeId = "/661e1310-bd76-4795-89a7-8f3c8f855bfc" +} +New-MgRoleManagementDirectoryRoleAssignment -BodyParameter $params +``` +This example shows how to use the New-MgRoleManagementDirectoryRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementDirectoryRoleAssignmentScheduleRequest.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementDirectoryRoleAssignmentScheduleRequest.md index 093355d11d5..106eed6fa4b 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementDirectoryRoleAssignmentScheduleRequest.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementDirectoryRoleAssignmentScheduleRequest.md @@ -1,18 +1,45 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgRoleManagementDirectoryRoleAssignmentScheduleRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + Action = "adminAssign" + Justification = "Assign Groups Admin to IT Helpdesk group" + RoleDefinitionId = "fdd7a751-b60b-444a-984c-02652fe8fa1c" + DirectoryScopeId = "/" + PrincipalId = "071cc716-8147-4397-a5ba-b2105951cc0b" + ScheduleInfo = @{ + StartDateTime = [System.DateTime]::Parse("2022-04-10T00:00:00Z") + Expiration = @{ + Type = "NoExpiration" + } + } +} +New-MgRoleManagementDirectoryRoleAssignmentScheduleRequest -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgRoleManagementDirectoryRoleAssignmentScheduleRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgRoleManagementDirectoryRoleAssignmentScheduleRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + Action = "selfActivate" + PrincipalId = "071cc716-8147-4397-a5ba-b2105951cc0b" + RoleDefinitionId = "8424c6f0-a189-499e-bbd0-26c1753c96d4" + DirectoryScopeId = "/" + Justification = "I need access to the Attribute Administrator role to manage attributes to be assigned to restricted AUs" + ScheduleInfo = @{ + StartDateTime = [System.DateTime]::Parse("2022-04-14T00:00:00.000Z") + Expiration = @{ + Type = "AfterDuration" + Duration = "PT5H" + } + } + TicketInfo = @{ + TicketNumber = "CONTOSO:Normal-67890" + TicketSystem = "MS Project" + } +} +New-MgRoleManagementDirectoryRoleAssignmentScheduleRequest -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgRoleManagementDirectoryRoleAssignmentScheduleRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementDirectoryRoleDefinition.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementDirectoryRoleDefinition.md index 093355d11d5..db99fdf15f0 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementDirectoryRoleDefinition.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementDirectoryRoleDefinition.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgRoleManagementDirectoryRoleDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + Description = "Update basic properties of application registrations" + DisplayName = "Application Registration Support Administrator" + RolePermissions = @( + @{ + AllowedResourceActions = @( + "microsoft.directory/applications/basic/read" + ) + } + ) + IsEnabled = $true +} +New-MgRoleManagementDirectoryRoleDefinition -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgRoleManagementDirectoryRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementDirectoryRoleEligibilityScheduleRequest.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementDirectoryRoleEligibilityScheduleRequest.md index 093355d11d5..14021000bf1 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementDirectoryRoleEligibilityScheduleRequest.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementDirectoryRoleEligibilityScheduleRequest.md @@ -1,18 +1,34 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgRoleManagementDirectoryRoleEligibilityScheduleRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + Action = "adminAssign" + Justification = "Assign Attribute Assignment Admin eligibility to restricted user" + RoleDefinitionId = "8424c6f0-a189-499e-bbd0-26c1753c96d4" + DirectoryScopeId = "/" + PrincipalId = "071cc716-8147-4397-a5ba-b2105951cc0b" + ScheduleInfo = @{ + StartDateTime = [System.DateTime]::Parse("2022-04-10T00:00:00Z") + Expiration = @{ + Type = "afterDateTime" + EndDateTime = [System.DateTime]::Parse("2024-04-10T00:00:00Z") + } + } +} +New-MgRoleManagementDirectoryRoleEligibilityScheduleRequest -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgRoleManagementDirectoryRoleEligibilityScheduleRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgRoleManagementDirectoryRoleEligibilityScheduleRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + Action = "adminRemove" + RoleDefinitionId = "8424c6f0-a189-499e-bbd0-26c1753c96d4" + DirectoryScopeId = "/" + PrincipalId = "071cc716-8147-4397-a5ba-b2105951cc0b" +} +New-MgRoleManagementDirectoryRoleEligibilityScheduleRequest -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgRoleManagementDirectoryRoleEligibilityScheduleRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementEntitlementManagementRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementEntitlementManagementRoleAssignment.md index 093355d11d5..a22be7bf15b 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementEntitlementManagementRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/New-MgRoleManagementEntitlementManagementRoleAssignment.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgRoleManagementEntitlementManagementRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + PrincipalId = "679a9213-c497-48a4-830a-8d3d25d94ddc" + RoleDefinitionId = "ae79f266-94d4-4dab-b730-feca7e132178" + AppScopeId = "/AccessPackageCatalog/beedadfe-01d5-4025-910b-84abb9369997" +} +New-MgRoleManagementEntitlementManagementRoleAssignment -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgRoleManagementEntitlementManagementRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Remove-MgRoleManagementDirectoryRoleAssignment.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Remove-MgRoleManagementDirectoryRoleAssignment.md index 093355d11d5..fa11597ae7f 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Remove-MgRoleManagementDirectoryRoleAssignment.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Remove-MgRoleManagementDirectoryRoleAssignment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgRoleManagementDirectoryRoleAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Remove-MgRoleManagementDirectoryRoleAssignment -UnifiedRoleAssignmentId $unifiedRoleAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgRoleManagementDirectoryRoleAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Remove-MgRoleManagementDirectoryRoleDefinition.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Remove-MgRoleManagementDirectoryRoleDefinition.md index 093355d11d5..7d6974a7fd7 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Remove-MgRoleManagementDirectoryRoleDefinition.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Remove-MgRoleManagementDirectoryRoleDefinition.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgRoleManagementDirectoryRoleDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Remove-MgRoleManagementDirectoryRoleDefinition -UnifiedRoleDefinitionId $unifiedRoleDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgRoleManagementDirectoryRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Stop-MgRoleManagementDirectoryRoleAssignmentScheduleRequest.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Stop-MgRoleManagementDirectoryRoleAssignmentScheduleRequest.md index 093355d11d5..d40d990ad13 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Stop-MgRoleManagementDirectoryRoleAssignmentScheduleRequest.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Stop-MgRoleManagementDirectoryRoleAssignmentScheduleRequest.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgRoleManagementDirectoryRoleAssignmentScheduleRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Stop-MgRoleManagementDirectoryRoleAssignmentScheduleRequest -UnifiedRoleAssignmentScheduleRequestId $unifiedRoleAssignmentScheduleRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgRoleManagementDirectoryRoleAssignmentScheduleRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Stop-MgRoleManagementDirectoryRoleEligibilityScheduleRequest.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Stop-MgRoleManagementDirectoryRoleEligibilityScheduleRequest.md index 093355d11d5..37f08677460 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Stop-MgRoleManagementDirectoryRoleEligibilityScheduleRequest.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Stop-MgRoleManagementDirectoryRoleEligibilityScheduleRequest.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgRoleManagementDirectoryRoleEligibilityScheduleRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +Stop-MgRoleManagementDirectoryRoleEligibilityScheduleRequest -UnifiedRoleEligibilityScheduleRequestId $unifiedRoleEligibilityScheduleRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgRoleManagementDirectoryRoleEligibilityScheduleRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Update-MgRoleManagementDirectoryRoleDefinition.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Update-MgRoleManagementDirectoryRoleDefinition.md index 093355d11d5..348d6d62f2c 100644 --- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Update-MgRoleManagementDirectoryRoleDefinition.md +++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/examples/v1.0/Update-MgRoleManagementDirectoryRoleDefinition.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgRoleManagementDirectoryRoleDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DeviceManagement.Enrolment +$params = @{ + Description = "Update basic properties of application registrations" + DisplayName = "Application Registration Support Administrator" + RolePermissions = @( + @{ + AllowedResourceActions = @( + "microsoft.directory/applications/basic/read" + ) + } + ) +} +Update-MgRoleManagementDirectoryRoleDefinition -UnifiedRoleDefinitionId $unifiedRoleDefinitionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgRoleManagementDirectoryRoleDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintConnector.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintConnector.md index 093355d11d5..585b0396a4b 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintConnector.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintConnector.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintConnector -PrintConnectorId $printConnectorId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrintConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrintConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintConnector ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintOperation.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintOperation.md index 093355d11d5..3a9558682fa 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintOperation.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintOperation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintOperation -PrintOperationId $printOperationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintPrinter.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintPrinter.md index 093355d11d5..8c75ee416a0 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintPrinter.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintPrinter.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintPrinter Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintPrinter -PrinterId $printerId -Property "id,displayName,capabilities" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrintPrinter Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrintPrinter Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintPrinter -PrinterId $printerId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintPrinter Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgPrintPrinter Cmdlet +```powershell +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintPrinter +``` +This example shows how to use the Get-MgPrintPrinter Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintPrinterConnector.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintPrinterConnector.md index 093355d11d5..e9afe44fe2c 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintPrinterConnector.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintPrinterConnector.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintPrinterConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintPrinterConnector -PrinterId $printerId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintPrinterConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintPrinterTaskTrigger.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintPrinterTaskTrigger.md index 093355d11d5..10a3c518a4c 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintPrinterTaskTrigger.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintPrinterTaskTrigger.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintPrinterTaskTrigger Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintPrinterTaskTrigger -PrinterId $printerId -PrintTaskTriggerId $printTaskTriggerId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrintPrinterTaskTrigger Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrintPrinterTaskTrigger Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintPrinterTaskTrigger -PrinterId $printerId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintPrinterTaskTrigger Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintService.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintService.md index 093355d11d5..6ab750cf1e1 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintService.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintService.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintService Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintService -PrintServiceId $printServiceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrintService Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrintService Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintService ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintService Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintServiceEndpoint.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintServiceEndpoint.md index 093355d11d5..3440033e58e 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintServiceEndpoint.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintServiceEndpoint.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintServiceEndpoint Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintServiceEndpoint -PrintServiceId $printServiceId -PrintServiceEndpointId $printServiceEndpointId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrintServiceEndpoint Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrintServiceEndpoint Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintServiceEndpoint -PrintServiceId $printServiceId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintServiceEndpoint Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintShare.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintShare.md index 093355d11d5..5f1b7f68a0c 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintShare.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintShare.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintShare Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintShare -PrinterShareId $printerShareId -Property "id,displayName,capabilities" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrintShare Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrintShare Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintShare -PrinterShareId $printerShareId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintShare Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgPrintShare Cmdlet +```powershell +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintShare +``` +This example shows how to use the Get-MgPrintShare Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintShareAllowedGroup.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintShareAllowedGroup.md index 093355d11d5..dd8a5e19b37 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintShareAllowedGroup.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintShareAllowedGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintShareAllowedGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintShareAllowedGroup -PrinterShareId $printerShareId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintShareAllowedGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintShareAllowedUser.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintShareAllowedUser.md index 093355d11d5..a48f3c74576 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintShareAllowedUser.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintShareAllowedUser.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintShareAllowedUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintShareAllowedUser -PrinterShareId $printerShareId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintShareAllowedUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintTaskDefinition.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintTaskDefinition.md index 093355d11d5..cdab7a1e499 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintTaskDefinition.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintTaskDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrintTaskDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrintTaskDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintTaskDefinition ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintTaskDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintTaskDefinitionTask.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintTaskDefinitionTask.md index 093355d11d5..7550825532f 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintTaskDefinitionTask.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Get-MgPrintTaskDefinitionTask.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPrintTaskDefinitionTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId -PrintTaskId $printTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPrintTaskDefinitionTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPrintTaskDefinitionTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Get-MgPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPrintTaskDefinitionTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintPrinterTaskTrigger.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintPrinterTaskTrigger.md index 093355d11d5..c8a1db020d0 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintPrinterTaskTrigger.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintPrinterTaskTrigger.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPrintPrinterTaskTrigger Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +$params = @{ + Event = "jobStarted" + "Definition@odata.bind" = "https://graph.microsoft.com/v1.0/print/taskDefinitions/{taskDefinitionId}" +} +New-MgPrintPrinterTaskTrigger -PrinterId $printerId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPrintPrinterTaskTrigger Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintShare.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintShare.md index 093355d11d5..735d4c84036 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintShare.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintShare.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPrintShare Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +$params = @{ + DisplayName = "ShareName" + AllowAllUsers = $false + "Printer@odata.bind" = "https://graph.microsoft.com/v1.0/print/printers/{printerId}" +} +New-MgPrintShare -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPrintShare Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintShareAllowedGroupByRef.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintShareAllowedGroupByRef.md index 093355d11d5..55b36ffa682 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintShareAllowedGroupByRef.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintShareAllowedGroupByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPrintShareAllowedGroupByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/groups/{groupId}" +} +New-MgPrintShareAllowedGroupByRef -PrinterShareId $printerShareId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPrintShareAllowedGroupByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintShareAllowedUserByRef.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintShareAllowedUserByRef.md index 093355d11d5..ff05ec1a79d 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintShareAllowedUserByRef.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintShareAllowedUserByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPrintShareAllowedUserByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/users/{userId}" +} +New-MgPrintShareAllowedUserByRef -PrinterShareId $printerShareId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPrintShareAllowedUserByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintTaskDefinition.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintTaskDefinition.md index 093355d11d5..5297b4e6239 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/New-MgPrintTaskDefinition.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPrintTaskDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +$params = @{ + DisplayName = "Test TaskDefinitionName" + CreatedBy = @{ + DisplayName = "Requesting App Display Name" + } +} +New-MgPrintTaskDefinition -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPrintTaskDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintConnector.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintConnector.md index 093355d11d5..b6b03acbbd9 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintConnector.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintConnector.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPrintConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Remove-MgPrintConnector -PrintConnectorId $printConnectorId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPrintConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintPrinter.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintPrinter.md index 093355d11d5..c88a5f00d66 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintPrinter.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintPrinter.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPrintPrinter Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Remove-MgPrintPrinter -PrinterId $printerId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPrintPrinter Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintPrinterTaskTrigger.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintPrinterTaskTrigger.md index 093355d11d5..7bf987720c8 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintPrinterTaskTrigger.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintPrinterTaskTrigger.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPrintPrinterTaskTrigger Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Remove-MgPrintPrinterTaskTrigger -PrinterId $printerId -PrintTaskTriggerId $printTaskTriggerId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPrintPrinterTaskTrigger Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintShare.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintShare.md index 093355d11d5..35927f171d2 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintShare.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintShare.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPrintShare Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Remove-MgPrintShare -PrinterShareId $printerShareId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPrintShare Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintShareAllowedGroupByRef.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintShareAllowedGroupByRef.md index 093355d11d5..4065fc85784 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintShareAllowedGroupByRef.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintShareAllowedGroupByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPrintShareAllowedGroupByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Remove-MgPrintShareAllowedGroupByRef -PrinterShareId $printerShareId -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPrintShareAllowedGroupByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintShareAllowedUserByRef.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintShareAllowedUserByRef.md index 093355d11d5..e1b5d0ca410 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintShareAllowedUserByRef.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintShareAllowedUserByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPrintShareAllowedUserByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Remove-MgPrintShareAllowedUserByRef -PrinterShareId $printerShareId -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPrintShareAllowedUserByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintTaskDefinition.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintTaskDefinition.md index 093355d11d5..0e86aa99d4a 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Remove-MgPrintTaskDefinition.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPrintTaskDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Remove-MgPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPrintTaskDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Restore-MgPrintPrinterFactoryDefault.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Restore-MgPrintPrinterFactoryDefault.md index 093355d11d5..a536b37ba3a 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Restore-MgPrintPrinterFactoryDefault.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Restore-MgPrintPrinterFactoryDefault.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Restore-MgPrintPrinterFactoryDefault Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +Restore-MgPrintPrinterFactoryDefault -PrinterId $printerId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Restore-MgPrintPrinterFactoryDefault Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintConnector.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintConnector.md index 093355d11d5..3b0f9997821 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintConnector.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintConnector.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPrintConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +$params = @{ + DisplayName = "ConnectorName" + FullyQualifiedDomainName = "CONNECTOR-MACHINE" + OperatingSystem = "Microsoft Windows 10 Enterprise Insider Preview | 10.0.19555" + AppVersion = "0.19.7338.23496" + Location = @{ + Latitude = 1.1 + Longitude = 2.2 + AltitudeInMeters = 3 + } +} +Update-MgPrintConnector -PrintConnectorId $printConnectorId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPrintConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintPrinter.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintPrinter.md index 093355d11d5..eefb23ee35e 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintPrinter.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintPrinter.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPrintPrinter Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +$params = @{ + Name = "PrinterName" + Location = @{ + Latitude = 1.1 + Longitude = 2.2 + AltitudeInMeters = 3 + } +} +Update-MgPrintPrinter -PrinterId $printerId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPrintPrinter Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintShare.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintShare.md index 093355d11d5..468a0d38650 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintShare.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintShare.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPrintShare Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +$params = @{ + DisplayName = "PrinterShare Name" + "Printer@odata.bind" = "https://graph.microsoft.com/v1.0/print/printers/{printerId}" + AllowAllUsers = $false +} +Update-MgPrintShare -PrinterShareId $printerShareId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPrintShare Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintTaskDefinition.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintTaskDefinition.md index 093355d11d5..ee40fa3719f 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintTaskDefinition.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintTaskDefinition.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPrintTaskDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +$params = @{ + DisplayName = "Test TaskDefinitionName" + CreatedBy = @{ + DisplayName = "Requesting App Display Name" + } +} +Update-MgPrintTaskDefinition -PrintTaskDefinitionId $printTaskDefinitionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPrintTaskDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintTaskDefinitionTask.md b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintTaskDefinitionTask.md index 093355d11d5..db64fdfaf5b 100644 --- a/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintTaskDefinitionTask.md +++ b/src/Devices.CloudPrint/Devices.CloudPrint/examples/v1.0/Update-MgPrintTaskDefinitionTask.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPrintTaskDefinitionTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.CloudPrint +$params = @{ + Status = @{ + State = "completed" + Description = "completed" + } +} +Update-MgPrintTaskDefinitionTask -PrintTaskDefinitionId $printTaskDefinitionId -PrintTaskId $printTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPrintTaskDefinitionTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementHealthOverview.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementHealthOverview.md index 093355d11d5..aadf228bc08 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementHealthOverview.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementHealthOverview.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServiceAnnouncementHealthOverview Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementHealthOverview -ServiceHealthId $serviceHealthId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgServiceAnnouncementHealthOverview Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgServiceAnnouncementHealthOverview Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementHealthOverview -ServiceHealthId $serviceHealthId -ExpandProperty "issues" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgServiceAnnouncementHealthOverview Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgServiceAnnouncementHealthOverview Cmdlet +```powershell +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementHealthOverview +``` +This example shows how to use the Get-MgServiceAnnouncementHealthOverview Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgServiceAnnouncementHealthOverview Cmdlet +```powershell +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementHealthOverview -ExpandProperty "issues" +``` +This example shows how to use the Get-MgServiceAnnouncementHealthOverview Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementIssue.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementIssue.md index 093355d11d5..f911fe6db29 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementIssue.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementIssue.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServiceAnnouncementIssue Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementIssue -ServiceHealthIssueId $serviceHealthIssueId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgServiceAnnouncementIssue Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgServiceAnnouncementIssue Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementIssue ``` - -{{ Add description here }} - +This example shows how to use the Get-MgServiceAnnouncementIssue Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementMessage.md index 093355d11d5..c739f4180ab 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementMessage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServiceAnnouncementMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementMessage -ServiceUpdateMessageId $serviceUpdateMessageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgServiceAnnouncementMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgServiceAnnouncementMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementMessage ``` - -{{ Add description here }} - +This example shows how to use the Get-MgServiceAnnouncementMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementMessageAttachment.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementMessageAttachment.md index 093355d11d5..e5ffddff277 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementMessageAttachment.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementMessageAttachment.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServiceAnnouncementMessageAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementMessageAttachment -ServiceUpdateMessageId $serviceUpdateMessageId -ServiceAnnouncementAttachmentId $serviceAnnouncementAttachmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgServiceAnnouncementMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgServiceAnnouncementMessageAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementMessageAttachment -ServiceUpdateMessageId $serviceUpdateMessageId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgServiceAnnouncementMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementMessageAttachmentArchive.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementMessageAttachmentArchive.md index 093355d11d5..4049021ca54 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementMessageAttachmentArchive.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementMessageAttachmentArchive.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServiceAnnouncementMessageAttachmentArchive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementMessageAttachmentArchive -ServiceUpdateMessageId $serviceUpdateMessageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgServiceAnnouncementMessageAttachmentArchive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgServiceAnnouncementMessageAttachmentArchive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementMessageAttachmentArchive -ServiceUpdateMessageId $serviceUpdateMessageId -OutFile $outFileId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgServiceAnnouncementMessageAttachmentArchive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementMessageAttachmentContent.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementMessageAttachmentContent.md index 093355d11d5..895e5ca8e5f 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementMessageAttachmentContent.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Get-MgServiceAnnouncementMessageAttachmentContent.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgServiceAnnouncementMessageAttachmentContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementMessageAttachmentContent -ServiceUpdateMessageId $serviceUpdateMessageId -ServiceAnnouncementAttachmentId $serviceAnnouncementAttachmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgServiceAnnouncementMessageAttachmentContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgServiceAnnouncementMessageAttachmentContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Get-MgServiceAnnouncementMessageAttachmentContent -ServiceUpdateMessageId $serviceUpdateMessageId -ServiceAnnouncementAttachmentId $serviceAnnouncementAttachmentId -OutFile $outFileId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgServiceAnnouncementMessageAttachmentContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgArchiveServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgArchiveServiceAnnouncementMessage.md index 093355d11d5..61d9e4df39d 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgArchiveServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgArchiveServiceAnnouncementMessage.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgArchiveServiceAnnouncementMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +$params = @{ + MessageIds = @( + "MC172851" + "MC167983" + ) +} +Invoke-MgArchiveServiceAnnouncementMessage -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgArchiveServiceAnnouncementMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgFavoriteServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgFavoriteServiceAnnouncementMessage.md index 093355d11d5..e16061e638c 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgFavoriteServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgFavoriteServiceAnnouncementMessage.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgFavoriteServiceAnnouncementMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +$params = @{ + MessageIds = @( + "MC172851" + "MC167983" + ) +} +Invoke-MgFavoriteServiceAnnouncementMessage -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgFavoriteServiceAnnouncementMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgMarkServiceAnnouncementMessageRead.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgMarkServiceAnnouncementMessageRead.md index 093355d11d5..fb09fa91814 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgMarkServiceAnnouncementMessageRead.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgMarkServiceAnnouncementMessageRead.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgMarkServiceAnnouncementMessageRead Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +$params = @{ + MessageIds = @( + "MC172851" + "MC167983" + ) +} +Invoke-MgMarkServiceAnnouncementMessageRead -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgMarkServiceAnnouncementMessageRead Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgMarkServiceAnnouncementMessageUnread.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgMarkServiceAnnouncementMessageUnread.md index 093355d11d5..0deb99127e4 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgMarkServiceAnnouncementMessageUnread.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgMarkServiceAnnouncementMessageUnread.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgMarkServiceAnnouncementMessageUnread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +$params = @{ + MessageIds = @( + "MC172851" + "MC167983" + ) +} +Invoke-MgMarkServiceAnnouncementMessageUnread -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgMarkServiceAnnouncementMessageUnread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgReportServiceAnnouncementIssueIncident.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgReportServiceAnnouncementIssueIncident.md index 093355d11d5..342aeaad400 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgReportServiceAnnouncementIssueIncident.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgReportServiceAnnouncementIssueIncident.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReportServiceAnnouncementIssueIncident Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +Invoke-MgReportServiceAnnouncementIssueIncident -ServiceHealthIssueId $serviceHealthIssueId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReportServiceAnnouncementIssueIncident Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgUnarchiveServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgUnarchiveServiceAnnouncementMessage.md index 093355d11d5..702d2b0907b 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgUnarchiveServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgUnarchiveServiceAnnouncementMessage.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgUnarchiveServiceAnnouncementMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +$params = @{ + MessageIds = @( + "MC172851" + "MC167983" + ) +} +Invoke-MgUnarchiveServiceAnnouncementMessage -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgUnarchiveServiceAnnouncementMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgUnfavoriteServiceAnnouncementMessage.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgUnfavoriteServiceAnnouncementMessage.md index 093355d11d5..21ff1c40eec 100644 --- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgUnfavoriteServiceAnnouncementMessage.md +++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/examples/v1.0/Invoke-MgUnfavoriteServiceAnnouncementMessage.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgUnfavoriteServiceAnnouncementMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Devices.ServiceAnnouncement +$params = @{ + MessageIds = @( + "MC172851" + "MC167983" + ) +} +Invoke-MgUnfavoriteServiceAnnouncementMessage -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgUnfavoriteServiceAnnouncementMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Confirm-MgDirectoryObjectMemberGroup.md b/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Confirm-MgDirectoryObjectMemberGroup.md index 093355d11d5..2dbde67e20b 100644 --- a/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Confirm-MgDirectoryObjectMemberGroup.md +++ b/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Confirm-MgDirectoryObjectMemberGroup.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Confirm-MgDirectoryObjectMemberGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DirectoryObjects +$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" + ) +} +Confirm-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Confirm-MgDirectoryObjectMemberGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObject.md b/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObject.md index 093355d11d5..c78fa264d7b 100644 --- a/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObject.md +++ b/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObject.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryObject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DirectoryObjects +Get-MgDirectoryObject -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryObject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObjectAvailableExtensionProperty.md b/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObjectAvailableExtensionProperty.md index 093355d11d5..1a5b43df21e 100644 --- a/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObjectAvailableExtensionProperty.md +++ b/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObjectAvailableExtensionProperty.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryObjectAvailableExtensionProperty Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DirectoryObjects +Get-MgDirectoryObjectAvailableExtensionProperty ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryObjectAvailableExtensionProperty Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObjectById.md b/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObjectById.md index 093355d11d5..2140ce07471 100644 --- a/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObjectById.md +++ b/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObjectById.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryObjectById Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DirectoryObjects +$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 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryObjectById Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObjectMemberGroup.md b/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObjectMemberGroup.md index 093355d11d5..6fbbed6e2da 100644 --- a/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObjectMemberGroup.md +++ b/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObjectMemberGroup.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryObjectMemberGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DirectoryObjects +$params = @{ + SecurityEnabledOnly = $false +} +Get-MgDirectoryObjectMemberGroup -DirectoryObjectId $directoryObjectId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryObjectMemberGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObjectMemberObject.md b/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObjectMemberObject.md index 093355d11d5..15c025d07fb 100644 --- a/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObjectMemberObject.md +++ b/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Get-MgDirectoryObjectMemberObject.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryObjectMemberObject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DirectoryObjects +$params = @{ + SecurityEnabledOnly = $true +} +Get-MgDirectoryObjectMemberObject -DirectoryObjectId $directoryObjectId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryObjectMemberObject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Remove-MgDirectoryObject.md b/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Remove-MgDirectoryObject.md index 093355d11d5..225c5f869ba 100644 --- a/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Remove-MgDirectoryObject.md +++ b/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Remove-MgDirectoryObject.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDirectoryObject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DirectoryObjects +Remove-MgDirectoryObject -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDirectoryObject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Test-MgDirectoryObjectProperty.md b/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Test-MgDirectoryObjectProperty.md index 093355d11d5..a726f215691 100644 --- a/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Test-MgDirectoryObjectProperty.md +++ b/src/DirectoryObjects/DirectoryObjects/examples/v1.0/Test-MgDirectoryObjectProperty.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Test-MgDirectoryObjectProperty Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.DirectoryObjects +$params = @{ + EntityType = "Group" + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgDirectoryObjectProperty -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Test-MgDirectoryObjectProperty Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationClass.md b/src/Education/Education/examples/v1.0/Get-MgEducationClass.md index 093355d11d5..80b63f9a931 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationClass.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationClass.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClass Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClass -EducationClassId $educationClassId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationClass Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationClass Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClass ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClass Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignment.md b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignment.md index 093355d11d5..49bdf72439e 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignment.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignment.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignment -EducationClassId $educationClassId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationClassAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationClassAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignment -EducationClassId $educationClassId -ExpandProperty "resources" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgEducationClassAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +``` +This example shows how to use the Get-MgEducationClassAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentCategory.md b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentCategory.md index 093355d11d5..66f2d4b9eab 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentCategory.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentCategory.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentCategory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentCategory -EducationClassId $educationClassId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationClassAssignmentCategory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationClassAssignmentCategory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentCategory -EducationClassId $educationClassId -EducationCategoryId $educationCategoryId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentCategory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentCategoryDelta.md b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentCategoryDelta.md index 093355d11d5..2fd2fbfcb72 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentCategoryDelta.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentCategoryDelta.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentCategoryDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentCategoryDelta -EducationClassId $educationClassId -Skiptoken "U43TyYWKlRvJ6wWxZOfJvkp22nMqShRw9f-GxBtG2FDy9b1hMDaAJGdLb7n2fh1IVSFtBcXz0jxjIEihcR91dS3R7i8Z2IMtxIn9rKbK9Jvurj6jCH-lDbSNatdesrK0PJ5zpZ_-i8HyqkdtLhWD9tewXVArIqQWJA7gJz8z4paG2q0MU9rixrQOTe7WIXikPiBTUPilHuUW-o1k7cvqke3K7llJbU3G7z_O7WGoVGE.l8-2OcBi9ZWAhwhPnXvJ-kyyk8GNb6-H4o6qofP5YBY" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationClassAssignmentCategoryDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationClassAssignmentCategoryDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentCategoryDelta -EducationClassId $educationClassId -Deltatoken "7ORzTfzlUEGDy6BRE3OC-3ePBbvLHCRe4aJ_hjaBKJxUHmn_ODgoM4xreLS7YRaxc-iACeqCQsT5Tb0u9vn6QXYflO6j0sRgRQlhcfR7DApZYl6uZqiXcR7H0G14btPqR761sKWNc0jgiczrHGF6dGfSQwsLzPT46og-84ArhOU.Jnxvkr08FE-QBvEYstYel3JZUrgwgTauo-GmpbdWeSA" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentCategoryDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgEducationClassAssignmentCategoryDelta Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentCategoryDelta -EducationClassId $educationClassId -Deltatoken "7ORzTfzlUEGDy6BRE3OC-3ePBbvLHCRe4aJ_hjaBKJxUHmn_ODgoM4xreLS7YRaxc-iACeqCQsT5Tb0u9vn6QXYflO6j0sRgRQlhcfR7DApZYl6uZqiXcR7H0G14btPqR761sKWNc0jgiczrHGF6dGfSQwsLzPT46og-84ArhOU.Jnxvkr08FE-QBvEYstYel3JZUrgwgTauo-GmpbdWeSA" -OutFile $outFileId +``` +This example shows how to use the Get-MgEducationClassAssignmentCategoryDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgEducationClassAssignmentCategoryDelta Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentCategoryDelta -EducationClassId $educationClassId -Top 3 +``` +This example shows how to use the Get-MgEducationClassAssignmentCategoryDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentDefault.md b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentDefault.md index 093355d11d5..abe6aa4b78f 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentDefault.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentDefault.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentDefault Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentDefault -EducationClassId $educationClassId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentDefault Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentDelta.md b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentDelta.md index 093355d11d5..160f1ef5840 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentDelta.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentDelta.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentDelta -EducationClassId $educationClassId -Deltatoken "7ORzTfzlUEGDy6BRE3OC-3ePBbvLHCRe4aJ_hjaBKJxUHmn_ODgoM4xreLS7YRaxROmLjac48n-iXm5j6n5aQwlsnC-2OvL3lI0Z8M4klERNmJQjnBn7MHqwXZ6L8GlI3VPnya3E-p1bisiZX97jLvQUAopseIYhvnD6v7fiYrk.fVsHempT6X2CiBh6aN9Ex5nVJ71adKdcf-mdke8OHKs" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationClassAssignmentDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationClassAssignmentDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentDelta -EducationClassId $educationClassId -Skiptoken "U43TyYWKlRvJ6wWxZOfJvkp22nMqShRw9f-GxBtG2FDy9b1hMDaAJGdLb7n2fh1IdHoweKQs1czM4Ry1LVsNqwIFXftTcRHvgSCbcszvbJHEWDCO3QO7K7zwCM8DdXNepZOa1gqldecjIUM0NFRbGQoQ5yR6RmGnMgtko8TDMOyMH_yg1my82PTXA_t4Nj-DhMDZWvuNTd_lbLeTngc7mIJPMCR2gHN9CSKsW_kw850.UM9tUqwOu5Ln1pnxaP6KdMmfJHszGqY3EKPlQkOiyGs" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgEducationClassAssignmentDelta Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentDelta -EducationClassId $educationClassId -Top 2 +``` +This example shows how to use the Get-MgEducationClassAssignmentDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentResource.md b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentResource.md index 093355d11d5..1a917c81730 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentResource.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentResource.md @@ -1,18 +1,49 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationClassAssignmentResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId +``` +This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the Get-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +``` +This example shows how to use the Get-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentRubric.md b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentRubric.md index 093355d11d5..b991a476d2c 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentRubric.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentRubric.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentRubric Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentRubric -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentRubric Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSetting.md b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSetting.md index 093355d11d5..e315eabe738 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSetting.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSetting.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSetting -EducationClassId $educationClassId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSubmission.md b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSubmission.md index 093355d11d5..3388edc8863 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSubmission.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentSubmission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationClassAssignmentSubmission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -ExpandProperty "*" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgEducationClassAssignmentSubmission Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -ExpandProperty "outcomes" +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgEducationClassAssignmentSubmission Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSubmissionOutcome.md b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSubmissionOutcome.md index 093355d11d5..109ba482a6c 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSubmissionOutcome.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentSubmissionOutcome Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentSubmissionOutcome Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSubmissionResource.md b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSubmissionResource.md index 093355d11d5..6c6a6c40d26 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSubmissionResource.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSubmissionResource.md @@ -1,18 +1,49 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the Get-MgEducationClassAssignmentSubmissionResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId +``` +This example shows how to use the Get-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSubmissionSubmittedResource.md b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSubmissionSubmittedResource.md index 093355d11d5..5923828d054 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSubmissionSubmittedResource.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationClassAssignmentSubmissionSubmittedResource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassAssignmentSubmissionSubmittedResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassAssignmentSubmissionSubmittedResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassAssignmentSubmissionSubmittedResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationClassDelta.md b/src/Education/Education/examples/v1.0/Get-MgEducationClassDelta.md index 093355d11d5..21042a9005f 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationClassDelta.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationClassDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationClassMember.md b/src/Education/Education/examples/v1.0/Get-MgEducationClassMember.md index 093355d11d5..9dd47d93abf 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationClassMember.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationClassMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassMember -EducationClassId $educationClassId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationClassSchool.md b/src/Education/Education/examples/v1.0/Get-MgEducationClassSchool.md index 093355d11d5..957fbfc323c 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationClassSchool.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationClassSchool.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassSchool Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassSchool -EducationClassId $educationClassId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassSchool Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationClassTeacher.md b/src/Education/Education/examples/v1.0/Get-MgEducationClassTeacher.md index 093355d11d5..473fe1c18b8 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationClassTeacher.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationClassTeacher.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationClassTeacher Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationClassTeacher -EducationClassId $educationClassId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationClassTeacher Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationMeAssignment.md b/src/Education/Education/examples/v1.0/Get-MgEducationMeAssignment.md index 093355d11d5..87f61a0c158 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationMeAssignment.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationMeAssignment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationMeAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationMeAssignment ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationMeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationMeClass.md b/src/Education/Education/examples/v1.0/Get-MgEducationMeClass.md index 093355d11d5..c2fc5b19747 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationMeClass.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationMeClass.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationMeClass Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationMeClass ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationMeClass Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationMeRubric.md b/src/Education/Education/examples/v1.0/Get-MgEducationMeRubric.md index 093355d11d5..514fcbf769a 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationMeRubric.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationMeRubric.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationMeRubric Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationMeRubric -EducationRubricId $educationRubricId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationMeRubric Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationMeRubric Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationMeRubric ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationMeRubric Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationMeSchool.md b/src/Education/Education/examples/v1.0/Get-MgEducationMeSchool.md index 093355d11d5..4d601152127 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationMeSchool.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationMeSchool.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationMeSchool Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationMeSchool ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationMeSchool Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationSchool.md b/src/Education/Education/examples/v1.0/Get-MgEducationSchool.md index 093355d11d5..14f7cd8885e 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationSchool.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationSchool.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationSchool Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationSchool -EducationSchoolId $educationSchoolId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationSchool Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationSchool Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationSchool ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationSchool Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationSchoolClass.md b/src/Education/Education/examples/v1.0/Get-MgEducationSchoolClass.md index 093355d11d5..d62c4b40053 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationSchoolClass.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationSchoolClass.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationSchoolClass Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationSchoolClass -EducationSchoolId $educationSchoolId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationSchoolClass Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationSchoolDelta.md b/src/Education/Education/examples/v1.0/Get-MgEducationSchoolDelta.md index 093355d11d5..27fd275b361 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationSchoolDelta.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationSchoolDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationSchoolDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationSchoolDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationSchoolDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationSchoolUser.md b/src/Education/Education/examples/v1.0/Get-MgEducationSchoolUser.md index 093355d11d5..74fbaed65bd 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationSchoolUser.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationSchoolUser.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationSchoolUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationSchoolUser -EducationSchoolId $educationSchoolId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationSchoolUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationUser.md b/src/Education/Education/examples/v1.0/Get-MgEducationUser.md index 093355d11d5..6a325831ea2 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationUser.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationUser.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationUser -EducationUserId $educationUserId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationUser ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationUserAssignment.md b/src/Education/Education/examples/v1.0/Get-MgEducationUserAssignment.md index 093355d11d5..37d17933a46 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationUserAssignment.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationUserAssignment.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationUserAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationUserAssignment -EducationUserId $educationUserId -ExpandProperty "submissions" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationUserAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationUserAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationUserAssignment -EducationUserId $educationUserId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationUserAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationUserDelta.md b/src/Education/Education/examples/v1.0/Get-MgEducationUserDelta.md index 093355d11d5..8ebded8c6c2 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationUserDelta.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationUserDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationUserDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationUserDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationUserDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Get-MgEducationUserTaughtClass.md b/src/Education/Education/examples/v1.0/Get-MgEducationUserTaughtClass.md index 093355d11d5..d6be229bb34 100644 --- a/src/Education/Education/examples/v1.0/Get-MgEducationUserTaughtClass.md +++ b/src/Education/Education/examples/v1.0/Get-MgEducationUserTaughtClass.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEducationUserTaughtClass Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationUserTaughtClass -EducationUserId $educationUserId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEducationUserTaughtClass Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEducationUserTaughtClass Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Get-MgEducationUserTaughtClass -EducationUserId $educationUserId -OutFile $outFileId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEducationUserTaughtClass Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Invoke-MgReassignEducationClassAssignmentSubmission.md b/src/Education/Education/examples/v1.0/Invoke-MgReassignEducationClassAssignmentSubmission.md index 093355d11d5..09045ac6546 100644 --- a/src/Education/Education/examples/v1.0/Invoke-MgReassignEducationClassAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0/Invoke-MgReassignEducationClassAssignmentSubmission.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReassignEducationClassAssignmentSubmission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Invoke-MgReassignEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Invoke-MgReassignEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Invoke-MgReassignEducationClassAssignmentSubmission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Invoke-MgReassignEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId ``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReassignEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Invoke-MgReturnEducationClassAssignmentSubmission.md b/src/Education/Education/examples/v1.0/Invoke-MgReturnEducationClassAssignmentSubmission.md index 093355d11d5..02af8895caf 100644 --- a/src/Education/Education/examples/v1.0/Invoke-MgReturnEducationClassAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0/Invoke-MgReturnEducationClassAssignmentSubmission.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReturnEducationClassAssignmentSubmission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Invoke-MgReturnEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReturnEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Invoke-MgUnsubmitEducationClassAssignmentSubmission.md b/src/Education/Education/examples/v1.0/Invoke-MgUnsubmitEducationClassAssignmentSubmission.md index 093355d11d5..696c90941ec 100644 --- a/src/Education/Education/examples/v1.0/Invoke-MgUnsubmitEducationClassAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0/Invoke-MgUnsubmitEducationClassAssignmentSubmission.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgUnsubmitEducationClassAssignmentSubmission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Invoke-MgUnsubmitEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgUnsubmitEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/New-MgEducationClass.md b/src/Education/Education/examples/v1.0/New-MgEducationClass.md index 093355d11d5..22c2b03b98e 100644 --- a/src/Education/Education/examples/v1.0/New-MgEducationClass.md +++ b/src/Education/Education/examples/v1.0/New-MgEducationClass.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationClass Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.type" = "#microsoft.graph.educationClass" + DisplayName = "String" + MailNickname = "String" + Description = "String" + CreatedBy = @{ + "@odata.type" = "microsoft.graph.identitySet" + } + ClassCode = "String" + ExternalName = "String" + ExternalId = "String" + ExternalSource = "String" + ExternalSourceDetail = "String" + Grade = "String" + Term = @{ + "@odata.type" = "microsoft.graph.educationTerm" + } +} +New-MgEducationClass -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationClass Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/New-MgEducationClassAssignment.md b/src/Education/Education/examples/v1.0/New-MgEducationClassAssignment.md index 093355d11d5..447949218e0 100644 --- a/src/Education/Education/examples/v1.0/New-MgEducationClassAssignment.md +++ b/src/Education/Education/examples/v1.0/New-MgEducationClassAssignment.md @@ -1,18 +1,24 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationClassAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DueDateTime = [System.DateTime]::Parse("2021-09-07T00:00:00Z") + DisplayName = "Reading test 09.03 #4" + Instructions = @{ + ContentType = "text" + Content = "Read chapter 4" + } + Grading = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentGradeType" + MaxPoints = + } + AssignTo = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentGradeType" + } + Status = "draft" + AllowStudentsToAddResourcesToSubmission = $true +} +New-MgEducationClassAssignment -EducationClassId $educationClassId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationClassAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/New-MgEducationClassAssignmentCategory.md b/src/Education/Education/examples/v1.0/New-MgEducationClassAssignmentCategory.md index 093355d11d5..85e8024228b 100644 --- a/src/Education/Education/examples/v1.0/New-MgEducationClassAssignmentCategory.md +++ b/src/Education/Education/examples/v1.0/New-MgEducationClassAssignmentCategory.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationClassAssignmentCategory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DisplayName = "Quizzes" +} +New-MgEducationClassAssignmentCategory -EducationClassId $educationClassId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationClassAssignmentCategory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/New-MgEducationClassAssignmentCategoryByRef.md b/src/Education/Education/examples/v1.0/New-MgEducationClassAssignmentCategoryByRef.md index 093355d11d5..3d43577232c 100644 --- a/src/Education/Education/examples/v1.0/New-MgEducationClassAssignmentCategoryByRef.md +++ b/src/Education/Education/examples/v1.0/New-MgEducationClassAssignmentCategoryByRef.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationClassAssignmentCategoryByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignmentCategories/ec98f158-341d-4fea-9f8c-14a250d489ac" +} +New-MgEducationClassAssignmentCategoryByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgEducationClassAssignmentCategoryByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgEducationClassAssignmentCategoryByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/classes/acdefc6b-2dc6-4e71-b1e9-6d9810ab1793/assignmentCategories/ec98f158-341d-4fea-9f8c-14a250d489ac" +} +New-MgEducationClassAssignmentCategoryByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationClassAssignmentCategoryByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/New-MgEducationClassAssignmentResource.md b/src/Education/Education/examples/v1.0/New-MgEducationClassAssignmentResource.md index 093355d11d5..8081fad140e 100644 --- a/src/Education/Education/examples/v1.0/New-MgEducationClassAssignmentResource.md +++ b/src/Education/Education/examples/v1.0/New-MgEducationClassAssignmentResource.md @@ -1,18 +1,90 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationClassAssignmentResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DistributeForStudentWork = $false + Resource = @{ + "@odata.type" = "microsoft.graph.educationExcelResource" + DisplayName = "Graph Doc pages.xlsx" + FileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RIR7PSV4JJSFJHKNPUVUWGPW4O2" + } +} +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgEducationClassAssignmentResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DistributeForStudentWork = $false + Resource = @{ + DisplayName = "article.pdf" + "@odata.type" = "#microsoft.graph.educationFileResource" + } +} +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + DistributeForStudentWork = $false + Resource = @{ + DisplayName = "Where the Wonders of Learning Never Cease | Wonderopolis" + Link = "https://wonderopolis.org/" + ThumbnailPreviewUrl = $null + "@odata.type" = "#microsoft.graph.educationLinkResource" + } +} +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + DistributeForStudentWork = $false + Resource = @{ + "@odata.type" = "microsoft.graph.educationMediaResource" + DisplayName = "homework example.PNG" + FileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RMUWOKAGSJZ6BHINJVKNMOOJABF" + } +} +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + DistributeForStudentWork = $false + Resource = @{ + "@odata.type" = "microsoft.graph.educationPowerPointResource" + DisplayName = "state diagram.pptx" + FileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXoOOmEQNO79QpIMPdOmY3nf/items/01QTY63RN327OXRN6EVFE2Q5FRJZTN5EOJ" + } +} +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the New-MgEducationClassAssignmentResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + DistributeForStudentWork = $false + Resource = @{ + "@odata.type" = "microsoft.graph.educationWordResource" + DisplayName = "Issues and PR in guthub.docx" + FileUrl = "https://graph.microsoft.com/v1.0/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" + } +} +New-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/New-MgEducationClassAssignmentSubmissionResource.md b/src/Education/Education/examples/v1.0/New-MgEducationClassAssignmentSubmissionResource.md index 093355d11d5..6199539fbd4 100644 --- a/src/Education/Education/examples/v1.0/New-MgEducationClassAssignmentSubmissionResource.md +++ b/src/Education/Education/examples/v1.0/New-MgEducationClassAssignmentSubmissionResource.md @@ -1,18 +1,84 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationClassAssignmentSubmissionResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + Resource = @{ + "@odata.type" = "#microsoft.graph.educationExcelResource" + DisplayName = "userAgeGroup QueryParameter Test.xlsx" + FileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RONPUDM2CZKNRF3TGHYUM7Z64WE" + } +} +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgEducationClassAssignmentSubmissionResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + Resource = @{ + DisplayName = "_FTP_EDC-61424749-250820211136.pdf" + FileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RL45XVPGDBRW5FLDR62Z5TCMGG3" + "@odata.type" = "#microsoft.graph.educationFileResource" + } +} +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgEducationClassAssignmentSubmissionResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + Resource = @{ + DisplayName = "Wikipedia" + Link = "https://en.wikipedia.org/wiki/Main_Page" + "@odata.type" = "#microsoft.graph.educationLinkResource" + } +} +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgEducationClassAssignmentSubmissionResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + Resource = @{ + DisplayName = "category.jpg" + FileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RK2WLKUUBAA4ZBKXNBL6QFC2TKG" + "@odata.type" = "#microsoft.graph.educationMediaResource" + } +} +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgEducationClassAssignmentSubmissionResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + Resource = @{ + "@odata.type" = "#microsoft.graph.educationPowerPointResource" + DisplayName = "state diagram.pptx" + FileUrl = "https://graph.microsoft.com/v1.0/drives/b!OPmUsPgnBUiMIXMxWcj3neC1xck6I5NIsnFxfrLdmXodJYOAkI7rTLhw7ME_e42J/items/01QTY63RN3MHWWM7BNXJD2UD5OMRFEDKN2" + } +} +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the New-MgEducationClassAssignmentSubmissionResource Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + Resource = @{ + "@odata.type" = "microsoft.graph.educationWordResource" + DisplayName = "Report.docx" + FileUrl = "https://graph.microsoft.com/v1.0/drives/b!DPA6q59Tw0mtgmyXRUmrQRqBZTesG-lMkl1cBmvvMeUEWrOk89nKRpUEr4ZhNYBc/items/016XPCQEELISJB7NVNVBAK7V4UIF6Q27U2" + } +} +New-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -BodyParameter $params +``` +This example shows how to use the New-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/New-MgEducationClassMemberByRef.md b/src/Education/Education/examples/v1.0/New-MgEducationClassMemberByRef.md index 093355d11d5..27c0411e27e 100644 --- a/src/Education/Education/examples/v1.0/New-MgEducationClassMemberByRef.md +++ b/src/Education/Education/examples/v1.0/New-MgEducationClassMemberByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationClassMemberByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/users/13015" +} +New-MgEducationClassMemberByRef -EducationClassId $educationClassId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationClassMemberByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/New-MgEducationClassTeacherByRef.md b/src/Education/Education/examples/v1.0/New-MgEducationClassTeacherByRef.md index 093355d11d5..856e940b1dc 100644 --- a/src/Education/Education/examples/v1.0/New-MgEducationClassTeacherByRef.md +++ b/src/Education/Education/examples/v1.0/New-MgEducationClassTeacherByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationClassTeacherByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/users/14011" +} +New-MgEducationClassTeacherByRef -EducationClassId $educationClassId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationClassTeacherByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/New-MgEducationMeRubric.md b/src/Education/Education/examples/v1.0/New-MgEducationMeRubric.md index 093355d11d5..e8b652d0380 100644 --- a/src/Education/Education/examples/v1.0/New-MgEducationMeRubric.md +++ b/src/Education/Education/examples/v1.0/New-MgEducationMeRubric.md @@ -1,18 +1,157 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationMeRubric Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DisplayName = "Example Credit Rubric" + Description = @{ + Content = "This is an example of a credit rubric (no points)" + ContentType = "text" + } + Levels = @( + @{ + DisplayName = "Good" + Description = @{ + Content = "" + ContentType = "text" + } + } + @{ + DisplayName = "Poor" + Description = @{ + Content = "" + ContentType = "text" + } + } + ) + Qualities = @( + @{ + Description = @{ + Content = "Argument" + ContentType = "text" + } + Criteria = @( + @{ + Description = @{ + Content = "The essay's argument is persuasive." + ContentType = "text" + } + } + @{ + Description = @{ + Content = "The essay's argument does not make sense." + ContentType = "text" + } + } + ) + } + @{ + Description = @{ + Content = "Spelling and Grammar" + ContentType = "text" + } + Criteria = @( + @{ + Description = @{ + Content = "The essay uses proper spelling and grammar with few or no errors." + ContentType = "text" + } + } + @{ + Description = @{ + Content = "The essay has numerous errors in spelling and/or grammar." + ContentType = "text" + } + } + ) + } + ) +} +New-MgEducationMeRubric -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgEducationMeRubric Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgEducationMeRubric Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DisplayName = "Example Points Rubric" + Description = @{ + Content = "This is an example of a rubric with points" + ContentType = "text" + } + Levels = @( + @{ + DisplayName = "Good" + Description = @{ + Content = "" + ContentType = "text" + } + Grading = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentPointsGradeType" + MaxPoints = + } + } + @{ + DisplayName = "Poor" + Description = @{ + Content = "" + ContentType = "text" + } + Grading = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentPointsGradeType" + MaxPoints = + } + } + ) + Qualities = @( + @{ + Description = @{ + Content = "Argument" + ContentType = "text" + } + Criteria = @( + @{ + Description = @{ + Content = "The essay's argument is persuasive." + ContentType = "text" + } + } + @{ + Description = @{ + Content = "The essay's argument does not make sense." + ContentType = "text" + } + } + ) + Weight = 50.0 + } + @{ + Description = @{ + Content = "Spelling and Grammar" + ContentType = "text" + } + Criteria = @( + @{ + Description = @{ + Content = "The essay uses proper spelling and grammar with few or no errors." + ContentType = "text" + } + } + @{ + Description = @{ + Content = "The essay has numerous errors in spelling and/or grammar." + ContentType = "text" + } + } + ) + Weight = 50.0 + } + ) + Grading = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentPointsGradeType" + } +} +New-MgEducationMeRubric -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationMeRubric Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/New-MgEducationSchool.md b/src/Education/Education/examples/v1.0/New-MgEducationSchool.md index 093355d11d5..5fda77b1ae1 100644 --- a/src/Education/Education/examples/v1.0/New-MgEducationSchool.md +++ b/src/Education/Education/examples/v1.0/New-MgEducationSchool.md @@ -1,18 +1,29 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationSchool Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.type" = "#microsoft.graph.educationSchool" + DisplayName = "String" + Description = "String" + ExternalSource = "String" + ExternalSourceDetail = "String" + PrincipalEmail = "String" + PrincipalName = "String" + ExternalPrincipalId = "String" + LowestGrade = "String" + HighestGrade = "String" + SchoolNumber = "String" + ExternalId = "String" + Phone = "String" + Fax = "String" + CreatedBy = @{ + "@odata.type" = "microsoft.graph.identitySet" + } + Address = @{ + "@odata.type" = "microsoft.graph.physicalAddress" + } +} +New-MgEducationSchool -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationSchool Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/New-MgEducationSchoolClassByRef.md b/src/Education/Education/examples/v1.0/New-MgEducationSchoolClassByRef.md index 093355d11d5..68f5d4135c2 100644 --- a/src/Education/Education/examples/v1.0/New-MgEducationSchoolClassByRef.md +++ b/src/Education/Education/examples/v1.0/New-MgEducationSchoolClassByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationSchoolClassByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/classes/11006" +} +New-MgEducationSchoolClassByRef -EducationSchoolId $educationSchoolId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationSchoolClassByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/New-MgEducationSchoolUserByRef.md b/src/Education/Education/examples/v1.0/New-MgEducationSchoolUserByRef.md index 093355d11d5..26b824c9b0f 100644 --- a/src/Education/Education/examples/v1.0/New-MgEducationSchoolUserByRef.md +++ b/src/Education/Education/examples/v1.0/New-MgEducationSchoolUserByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationSchoolUserByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/users/14008" +} +New-MgEducationSchoolUserByRef -EducationSchoolId $educationSchoolId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationSchoolUserByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/New-MgEducationUser.md b/src/Education/Education/examples/v1.0/New-MgEducationUser.md index 093355d11d5..f90c5febd5b 100644 --- a/src/Education/Education/examples/v1.0/New-MgEducationUser.md +++ b/src/Education/Education/examples/v1.0/New-MgEducationUser.md @@ -1,18 +1,69 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEducationUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.type" = "#microsoft.graph.educationUser" + PrimaryRole = "String" + MiddleName = "String" + ExternalSource = "String" + ExternalSourceDetail = "String" + ResidenceAddress = @{ + "@odata.type" = "microsoft.graph.physicalAddress" + } + MailingAddress = @{ + "@odata.type" = "microsoft.graph.physicalAddress" + } + Student = @{ + "@odata.type" = "microsoft.graph.educationStudent" + } + Teacher = @{ + "@odata.type" = "microsoft.graph.educationTeacher" + } + CreatedBy = @{ + "@odata.type" = "microsoft.graph.identitySet" + } + AccountEnabled = "Boolean" + AssignedLicenses = @( + @{ + "@odata.type" = "microsoft.graph.assignedLicense" + } + ) + AssignedPlans = @( + @{ + "@odata.type" = "microsoft.graph.assignedPlan" + } + ) + BusinessPhones = @( + "String" + ) + Department = "String" + DisplayName = "String" + GivenName = "String" + Mail = "String" + MailNickname = "String" + MobilePhone = "String" + PasswordPolicies = "String" + PasswordProfile = @{ + "@odata.type" = "microsoft.graph.passwordProfile" + } + OfficeLocation = "String" + PreferredLanguage = "String" + ProvisionedPlans = @( + @{ + "@odata.type" = "microsoft.graph.provisionedPlan" + } + ) + RefreshTokensValidFromDateTime = [System.DateTime]::Parse("String (timestamp)") + ShowInAddressList = "Boolean" + Surname = "String" + UsageLocation = "String" + UserPrincipalName = "String" + UserType = "String" + OnPremisesInfo = @{ + "@odata.type" = "microsoft.graph.educationOnPremisesInfo" + } +} +New-MgEducationUser -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEducationUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Publish-MgEducationClassAssignment.md b/src/Education/Education/examples/v1.0/Publish-MgEducationClassAssignment.md index 093355d11d5..60310cb3a0c 100644 --- a/src/Education/Education/examples/v1.0/Publish-MgEducationClassAssignment.md +++ b/src/Education/Education/examples/v1.0/Publish-MgEducationClassAssignment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Publish-MgEducationClassAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Publish-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Publish-MgEducationClassAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Remove-MgEducationClass.md b/src/Education/Education/examples/v1.0/Remove-MgEducationClass.md index 093355d11d5..b96838cab33 100644 --- a/src/Education/Education/examples/v1.0/Remove-MgEducationClass.md +++ b/src/Education/Education/examples/v1.0/Remove-MgEducationClass.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationClass Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationClass -EducationClassId $educationClassId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationClass Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignment.md b/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignment.md index 093355d11d5..c8b2fb842d2 100644 --- a/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignment.md +++ b/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationClassAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationClassAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentCategory.md b/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentCategory.md index 093355d11d5..c41b8ef9ccc 100644 --- a/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentCategory.md +++ b/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentCategory.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationClassAssignmentCategory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationClassAssignmentCategory -EducationClassId $educationClassId -EducationCategoryId $educationCategoryId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationClassAssignmentCategory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentCategoryByRef.md b/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentCategoryByRef.md index 093355d11d5..0f1753609db 100644 --- a/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentCategoryByRef.md +++ b/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentCategoryByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationClassAssignmentCategoryByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationClassAssignmentCategoryByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationCategoryId $educationCategoryId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationClassAssignmentCategoryByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentResource.md b/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentResource.md index 093355d11d5..41e2d166aeb 100644 --- a/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentResource.md +++ b/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentResource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationClassAssignmentResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationClassAssignmentResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationAssignmentResourceId $educationAssignmentResourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationClassAssignmentResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentRubricByRef.md b/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentRubricByRef.md index 093355d11d5..d3f39ff4857 100644 --- a/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentRubricByRef.md +++ b/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentRubricByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationClassAssignmentRubricByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationClassAssignmentRubricByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentSubmissionResource.md b/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentSubmissionResource.md index 093355d11d5..df2337a43da 100644 --- a/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentSubmissionResource.md +++ b/src/Education/Education/examples/v1.0/Remove-MgEducationClassAssignmentSubmissionResource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationClassAssignmentSubmissionResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationClassAssignmentSubmissionResource -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationSubmissionResourceId $educationSubmissionResourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationClassAssignmentSubmissionResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Remove-MgEducationMeRubric.md b/src/Education/Education/examples/v1.0/Remove-MgEducationMeRubric.md index 093355d11d5..24dade8fdb0 100644 --- a/src/Education/Education/examples/v1.0/Remove-MgEducationMeRubric.md +++ b/src/Education/Education/examples/v1.0/Remove-MgEducationMeRubric.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationMeRubric Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationMeRubric -EducationRubricId $educationRubricId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationMeRubric Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Remove-MgEducationSchool.md b/src/Education/Education/examples/v1.0/Remove-MgEducationSchool.md index 093355d11d5..2f094bc798d 100644 --- a/src/Education/Education/examples/v1.0/Remove-MgEducationSchool.md +++ b/src/Education/Education/examples/v1.0/Remove-MgEducationSchool.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationSchool Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationSchool -EducationSchoolId $educationSchoolId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationSchool Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Remove-MgEducationUser.md b/src/Education/Education/examples/v1.0/Remove-MgEducationUser.md index 093355d11d5..4fa932e5fc0 100644 --- a/src/Education/Education/examples/v1.0/Remove-MgEducationUser.md +++ b/src/Education/Education/examples/v1.0/Remove-MgEducationUser.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEducationUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Remove-MgEducationUser -EducationUserId $educationUserId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEducationUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Set-MgEducationClassAssignmentRubricByRef.md b/src/Education/Education/examples/v1.0/Set-MgEducationClassAssignmentRubricByRef.md index 093355d11d5..4623a1050a6 100644 --- a/src/Education/Education/examples/v1.0/Set-MgEducationClassAssignmentRubricByRef.md +++ b/src/Education/Education/examples/v1.0/Set-MgEducationClassAssignmentRubricByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Set-MgEducationClassAssignmentRubricByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/education/me/rubrics/ceb3863e-6912-4ea9-ac41-3c2bb7b6672d" +} +Set-MgEducationClassAssignmentRubricByRef -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Set-MgEducationClassAssignmentRubricByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Submit-MgEducationClassAssignmentSubmission.md b/src/Education/Education/examples/v1.0/Submit-MgEducationClassAssignmentSubmission.md index 093355d11d5..2e1a632398a 100644 --- a/src/Education/Education/examples/v1.0/Submit-MgEducationClassAssignmentSubmission.md +++ b/src/Education/Education/examples/v1.0/Submit-MgEducationClassAssignmentSubmission.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Submit-MgEducationClassAssignmentSubmission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +Submit-MgEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Submit-MgEducationClassAssignmentSubmission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Update-MgEducationClass.md b/src/Education/Education/examples/v1.0/Update-MgEducationClass.md index 093355d11d5..7defc755f60 100644 --- a/src/Education/Education/examples/v1.0/Update-MgEducationClass.md +++ b/src/Education/Education/examples/v1.0/Update-MgEducationClass.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEducationClass Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + Description = "History - World History 1" + DisplayName = "World History Level 1" +} +Update-MgEducationClass -EducationClassId $educationClassId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEducationClass Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Update-MgEducationClassAssignment.md b/src/Education/Education/examples/v1.0/Update-MgEducationClassAssignment.md index 093355d11d5..f6f0369a55e 100644 --- a/src/Education/Education/examples/v1.0/Update-MgEducationClassAssignment.md +++ b/src/Education/Education/examples/v1.0/Update-MgEducationClassAssignment.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEducationClassAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DisplayName = "Reading and review test 09.03 #5" + Instructions = @{ + ContentType = "text" + Content = "Read chapter 5 and write your review" + } + DueDateTime = [System.DateTime]::Parse("2021-09-10T00:00:00Z") + AddedStudentAction = "none" +} +Update-MgEducationClassAssignment -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEducationClassAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Update-MgEducationClassAssignmentDefault.md b/src/Education/Education/examples/v1.0/Update-MgEducationClassAssignmentDefault.md index 093355d11d5..1eae9476304 100644 --- a/src/Education/Education/examples/v1.0/Update-MgEducationClassAssignmentDefault.md +++ b/src/Education/Education/examples/v1.0/Update-MgEducationClassAssignmentDefault.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEducationClassAssignmentDefault Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + AddedStudentAction = "assignIfOpen" + NotificationChannelUrl = "https://graph.microsoft.com/beta/teams('acdefc6b-2dc6-4e71-b1e9-6d9810ab1793')/channels('3da03fc4-8eac-4459-84fb-1422dc01f65e')" +} +Update-MgEducationClassAssignmentDefault -EducationClassId $educationClassId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEducationClassAssignmentDefault Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Update-MgEducationClassAssignmentSetting.md b/src/Education/Education/examples/v1.0/Update-MgEducationClassAssignmentSetting.md index 093355d11d5..7f42606bd35 100644 --- a/src/Education/Education/examples/v1.0/Update-MgEducationClassAssignmentSetting.md +++ b/src/Education/Education/examples/v1.0/Update-MgEducationClassAssignmentSetting.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEducationClassAssignmentSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + SubmissionAnimationDisabled = $true +} +Update-MgEducationClassAssignmentSetting -EducationClassId $educationClassId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEducationClassAssignmentSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Update-MgEducationClassAssignmentSubmissionOutcome.md b/src/Education/Education/examples/v1.0/Update-MgEducationClassAssignmentSubmissionOutcome.md index 093355d11d5..2b0be5c9bcd 100644 --- a/src/Education/Education/examples/v1.0/Update-MgEducationClassAssignmentSubmissionOutcome.md +++ b/src/Education/Education/examples/v1.0/Update-MgEducationClassAssignmentSubmissionOutcome.md @@ -1,18 +1,38 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.type" = "#microsoft.graph.educationFeedbackOutcome" +} +Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.type" = "#microsoft.graph.educationRubricOutcome" + RubricQualityFeedback = @( + ) + RubricQualitySelectedLevels = @( + ) +} +Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet +```powershell +Import-Module Microsoft.Graph.Education +$params = @{ + "@odata.type" = "#microsoft.graph.educationPointsOutcome" + Points = @{ + "@odata.type" = "#microsoft.graph.educationAssignmentPointsGrade" + Points = + } +} +Update-MgEducationClassAssignmentSubmissionOutcome -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId -EducationOutcomeId $educationOutcomeId -BodyParameter $params +``` +This example shows how to use the Update-MgEducationClassAssignmentSubmissionOutcome Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Update-MgEducationMeRubric.md b/src/Education/Education/examples/v1.0/Update-MgEducationMeRubric.md index 093355d11d5..8142e8dc7bf 100644 --- a/src/Education/Education/examples/v1.0/Update-MgEducationMeRubric.md +++ b/src/Education/Education/examples/v1.0/Update-MgEducationMeRubric.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEducationMeRubric Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DisplayName = "Example Credit Rubric after display name patch" +} +Update-MgEducationMeRubric -EducationRubricId $educationRubricId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEducationMeRubric Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Update-MgEducationSchool.md b/src/Education/Education/examples/v1.0/Update-MgEducationSchool.md index 093355d11d5..47dfcc53182 100644 --- a/src/Education/Education/examples/v1.0/Update-MgEducationSchool.md +++ b/src/Education/Education/examples/v1.0/Update-MgEducationSchool.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEducationSchool Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DisplayName = "Fabrikam Arts High School" + Description = "Magnate school for the arts. Los Angeles School District" +} +Update-MgEducationSchool -EducationSchoolId $educationSchoolId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEducationSchool Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Education/Education/examples/v1.0/Update-MgEducationUser.md b/src/Education/Education/examples/v1.0/Update-MgEducationUser.md index 093355d11d5..9ef684e7738 100644 --- a/src/Education/Education/examples/v1.0/Update-MgEducationUser.md +++ b/src/Education/Education/examples/v1.0/Update-MgEducationUser.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEducationUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Education +$params = @{ + DisplayName = "Rogelio Cazares" + GivenName = "Rogelio" + MiddleName = "Fernando" + Surname = "Cazares" +} +Update-MgEducationUser -EducationUserId $educationUserId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEducationUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0/Get-MgDrive.md b/src/Files/Files/examples/v1.0/Get-MgDrive.md index 093355d11d5..cdf71c3bf1a 100644 --- a/src/Files/Files/examples/v1.0/Get-MgDrive.md +++ b/src/Files/Files/examples/v1.0/Get-MgDrive.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDrive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgDrive -DriveId $driveId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDrive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0/Get-MgDriveItemChild.md b/src/Files/Files/examples/v1.0/Get-MgDriveItemChild.md index 093355d11d5..a5cfd4c7166 100644 --- a/src/Files/Files/examples/v1.0/Get-MgDriveItemChild.md +++ b/src/Files/Files/examples/v1.0/Get-MgDriveItemChild.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDriveItemChild Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgDriveItemChild -DriveId $driveId -DriveItemId $driveItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDriveItemChild Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0/Get-MgGroupDefaultDrive.md b/src/Files/Files/examples/v1.0/Get-MgGroupDefaultDrive.md index 093355d11d5..955c51214ff 100644 --- a/src/Files/Files/examples/v1.0/Get-MgGroupDefaultDrive.md +++ b/src/Files/Files/examples/v1.0/Get-MgGroupDefaultDrive.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupDefaultDrive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgGroupDefaultDrive -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupDefaultDrive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0/Get-MgGroupDrive.md b/src/Files/Files/examples/v1.0/Get-MgGroupDrive.md index 093355d11d5..a5c93851d46 100644 --- a/src/Files/Files/examples/v1.0/Get-MgGroupDrive.md +++ b/src/Files/Files/examples/v1.0/Get-MgGroupDrive.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupDrive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgGroupDrive -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupDrive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0/Get-MgShareDriveItem.md b/src/Files/Files/examples/v1.0/Get-MgShareDriveItem.md index 093355d11d5..2ed20e7b12d 100644 --- a/src/Files/Files/examples/v1.0/Get-MgShareDriveItem.md +++ b/src/Files/Files/examples/v1.0/Get-MgShareDriveItem.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgShareDriveItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgShareDriveItem -SharedDriveItemId $sharedDriveItemId -ExpandProperty "children" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgShareDriveItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgShareDriveItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgShareDriveItem -SharedDriveItemId $sharedDriveItemId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgShareDriveItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0/Get-MgShareSharedDriveItemSharedDriveItem.md b/src/Files/Files/examples/v1.0/Get-MgShareSharedDriveItemSharedDriveItem.md index 093355d11d5..bf2eb45757a 100644 --- a/src/Files/Files/examples/v1.0/Get-MgShareSharedDriveItemSharedDriveItem.md +++ b/src/Files/Files/examples/v1.0/Get-MgShareSharedDriveItemSharedDriveItem.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgShareSharedDriveItemSharedDriveItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgShareSharedDriveItemSharedDriveItem -SharedDriveItemId $sharedDriveItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgShareSharedDriveItemSharedDriveItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0/Get-MgUserDefaultDrive.md b/src/Files/Files/examples/v1.0/Get-MgUserDefaultDrive.md index 093355d11d5..8a536b750af 100644 --- a/src/Files/Files/examples/v1.0/Get-MgUserDefaultDrive.md +++ b/src/Files/Files/examples/v1.0/Get-MgUserDefaultDrive.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserDefaultDrive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgUserDefaultDrive -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserDefaultDrive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserDefaultDrive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +# A UPN can also be used as -UserId. +Get-MgUserDefaultDrive -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserDefaultDrive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0/Get-MgUserDrive.md b/src/Files/Files/examples/v1.0/Get-MgUserDrive.md index 093355d11d5..4ee20f6d7d8 100644 --- a/src/Files/Files/examples/v1.0/Get-MgUserDrive.md +++ b/src/Files/Files/examples/v1.0/Get-MgUserDrive.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserDrive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +# A UPN can also be used as -UserId. +Get-MgUserDrive -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserDrive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserDrive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Get-MgUserDrive -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserDrive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0/Grant-MgSharePermission.md b/src/Files/Files/examples/v1.0/Grant-MgSharePermission.md index 093355d11d5..702c8dbc620 100644 --- a/src/Files/Files/examples/v1.0/Grant-MgSharePermission.md +++ b/src/Files/Files/examples/v1.0/Grant-MgSharePermission.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Grant-MgSharePermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +$params = @{ + Recipients = @( + @{ + Email = "john@contoso.com" + } + @{ + Email = "ryan@external.com" + } + ) + Roles = @( + "read" + ) +} +Grant-MgSharePermission -SharedDriveItemId $sharedDriveItemId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Grant-MgSharePermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0/Invoke-MgCheckinDriveItem.md b/src/Files/Files/examples/v1.0/Invoke-MgCheckinDriveItem.md index 093355d11d5..b1f06e3a43c 100644 --- a/src/Files/Files/examples/v1.0/Invoke-MgCheckinDriveItem.md +++ b/src/Files/Files/examples/v1.0/Invoke-MgCheckinDriveItem.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgCheckinDriveItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +$params = @{ + Comment = "Updating the latest guidelines" +} +Invoke-MgCheckinDriveItem -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgCheckinDriveItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0/Invoke-MgCheckoutDriveItem.md b/src/Files/Files/examples/v1.0/Invoke-MgCheckoutDriveItem.md index 093355d11d5..1369b601643 100644 --- a/src/Files/Files/examples/v1.0/Invoke-MgCheckoutDriveItem.md +++ b/src/Files/Files/examples/v1.0/Invoke-MgCheckoutDriveItem.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgCheckoutDriveItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Invoke-MgCheckoutDriveItem -DriveId $driveId -DriveItemId $driveItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgCheckoutDriveItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Files/Files/examples/v1.0/Restore-MgDriveItemVersion.md b/src/Files/Files/examples/v1.0/Restore-MgDriveItemVersion.md index 093355d11d5..d184a260a9e 100644 --- a/src/Files/Files/examples/v1.0/Restore-MgDriveItemVersion.md +++ b/src/Files/Files/examples/v1.0/Restore-MgDriveItemVersion.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Restore-MgDriveItemVersion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Files +Restore-MgDriveItemVersion -DriveId $driveId -DriveItemId $driveItemId -DriveItemVersionId $driveItemVersionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Restore-MgDriveItemVersion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Add-MgGroupFavorite.md b/src/Groups/Groups/examples/v1.0/Add-MgGroupFavorite.md index 093355d11d5..d0fba8517ea 100644 --- a/src/Groups/Groups/examples/v1.0/Add-MgGroupFavorite.md +++ b/src/Groups/Groups/examples/v1.0/Add-MgGroupFavorite.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgGroupFavorite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Add-MgGroupFavorite -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgGroupFavorite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupAcceptedSender.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupAcceptedSender.md index 093355d11d5..99b4f1ef2e8 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupAcceptedSender.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupAcceptedSender.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupAcceptedSender Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupAcceptedSender -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupAcceptedSender Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupConversation.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupConversation.md index 093355d11d5..a37e7fe7fc6 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupConversation.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupConversation.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupConversation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupConversation -GroupId $groupId -ConversationId $conversationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgGroupConversation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgGroupConversation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupConversation -GroupId $groupId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupConversation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgGroupConversation Cmdlet +```powershell +Import-Module Microsoft.Graph.Groups +Get-MgGroupConversation -GroupId $groupId -ConversationId $conversationId +``` +This example shows how to use the Get-MgGroupConversation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupConversationThread.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupConversationThread.md index 093355d11d5..960b3d9f5f9 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupConversationThread.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupConversationThread.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupConversationThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupConversationThread -GroupId $groupId -ConversationId $conversationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupConversationThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupDelta.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupDelta.md index 093355d11d5..f4f90aba072 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupDelta.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupLifecyclePolicy.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupLifecyclePolicy.md index 093355d11d5..7f106a34079 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupLifecyclePolicy.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupLifecyclePolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupLifecyclePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgGroupLifecyclePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgGroupLifecyclePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupLifecyclePolicy ``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupLifecyclePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupLifecyclePolicyByGroup.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupLifecyclePolicyByGroup.md index 093355d11d5..ef79c66389f 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupLifecyclePolicyByGroup.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupLifecyclePolicyByGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupLifecyclePolicyByGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupLifecyclePolicyByGroup -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupLifecyclePolicyByGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupMemberOf.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupMemberOf.md index 093355d11d5..43e6f5c11ee 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupMemberOf.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupMemberOf -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupPermissionGrant.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupPermissionGrant.md index 093355d11d5..7a758e041a1 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupPermissionGrant.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupPermissionGrant.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupPermissionGrant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupPermissionGrant -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupPermissionGrant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupPhoto.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupPhoto.md index 093355d11d5..2c1dee45862 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupPhoto.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupPhoto.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupPhoto Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupPhoto -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupPhoto Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupRejectedSender.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupRejectedSender.md index 093355d11d5..aa9baa519e0 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupRejectedSender.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupRejectedSender.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupRejectedSender Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupRejectedSender -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupRejectedSender Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupThread.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupThread.md index 093355d11d5..d5e4f0650b4 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupThread.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupThread.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgGroupThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgGroupThread Cmdlet +```powershell +Import-Module Microsoft.Graph.Groups +Get-MgGroupThread -GroupId $groupId +``` +This example shows how to use the Get-MgGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupThreadPost.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupThreadPost.md index 093355d11d5..b023fd6622c 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupThreadPost.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupThreadPost.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupThreadPost Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupThreadPost Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupThreadPostAttachment.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupThreadPostAttachment.md index 093355d11d5..ac521468139 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupThreadPostAttachment.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupThreadPostAttachment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupThreadPostAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupThreadPostAttachment -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupThreadPostAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupThreadPostExtension.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupThreadPostExtension.md index 093355d11d5..ad651224283 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupThreadPostExtension.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupThreadPostExtension.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupThreadPostExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupThreadPostExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupTransitiveMember.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupTransitiveMember.md index 093355d11d5..b7ca5b23cdd 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupTransitiveMember.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupTransitiveMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupTransitiveMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupTransitiveMember -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupTransitiveMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Get-MgGroupTransitiveMemberOf.md b/src/Groups/Groups/examples/v1.0/Get-MgGroupTransitiveMemberOf.md index 093355d11d5..a97b23a9555 100644 --- a/src/Groups/Groups/examples/v1.0/Get-MgGroupTransitiveMemberOf.md +++ b/src/Groups/Groups/examples/v1.0/Get-MgGroupTransitiveMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupTransitiveMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Get-MgGroupTransitiveMemberOf -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupTransitiveMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupThreadPost.md b/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupThreadPost.md index 093355d11d5..0b786482c0b 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupThreadPost.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgForwardGroupThreadPost.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgForwardGroupThreadPost Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + Comment = "comment-value" + ToRecipients = @( + @{ + EmailAddress = @{ + Name = "name-value" + Address = "address-value" + } + } + ) +} +Invoke-MgForwardGroupThreadPost -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgForwardGroupThreadPost Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgGraphGroup.md b/src/Groups/Groups/examples/v1.0/Invoke-MgGraphGroup.md index 093355d11d5..7cd55b752b4 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgGraphGroup.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgGraphGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgGraphGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Invoke-MgGraphGroup -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgGraphGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgRenewGroup.md b/src/Groups/Groups/examples/v1.0/Invoke-MgRenewGroup.md index 093355d11d5..0172a929034 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgRenewGroup.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgRenewGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgRenewGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Invoke-MgRenewGroup -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgRenewGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupThread.md b/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupThread.md index 093355d11d5..2e68a25341d 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupThread.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupThread.md @@ -1,18 +1,87 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReplyGroupThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + Post = @{ + Body = @{ + ContentType = "" + Content = "content-value" + } + } +} +Invoke-MgReplyGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Invoke-MgReplyGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Invoke-MgReplyGroupThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$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" + } + ) + } +} +Invoke-MgReplyGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReplyGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Invoke-MgReplyGroupThread Cmdlet +```powershell +Import-Module Microsoft.Graph.Groups +$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-MgReplyGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Invoke-MgReplyGroupThread Cmdlet +```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-MgReplyGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupThreadPost.md b/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupThreadPost.md index 093355d11d5..73e9745fdef 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupThreadPost.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgReplyGroupThreadPost.md @@ -1,18 +1,59 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReplyGroupThreadPost Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$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 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReplyGroupThreadPost Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Invoke-MgSubscribeGroupByMail.md b/src/Groups/Groups/examples/v1.0/Invoke-MgSubscribeGroupByMail.md index 093355d11d5..f314f5fa27f 100644 --- a/src/Groups/Groups/examples/v1.0/Invoke-MgSubscribeGroupByMail.md +++ b/src/Groups/Groups/examples/v1.0/Invoke-MgSubscribeGroupByMail.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgSubscribeGroupByMail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Invoke-MgSubscribeGroupByMail -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgSubscribeGroupByMail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/New-MgGroupAcceptedSenderByRef.md b/src/Groups/Groups/examples/v1.0/New-MgGroupAcceptedSenderByRef.md index 093355d11d5..bda85828566 100644 --- a/src/Groups/Groups/examples/v1.0/New-MgGroupAcceptedSenderByRef.md +++ b/src/Groups/Groups/examples/v1.0/New-MgGroupAcceptedSenderByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgGroupAcceptedSenderByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/users/alexd@contoso.com" +} +New-MgGroupAcceptedSenderByRef -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgGroupAcceptedSenderByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/New-MgGroupConversation.md b/src/Groups/Groups/examples/v1.0/New-MgGroupConversation.md index 093355d11d5..9f8c324e195 100644 --- a/src/Groups/Groups/examples/v1.0/New-MgGroupConversation.md +++ b/src/Groups/Groups/examples/v1.0/New-MgGroupConversation.md @@ -1,18 +1,30 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgGroupConversation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + Topic = "Take your wellness days and rest" + Threads = @( + @{ + Posts = @( + @{ + Body = @{ + ContentType = "html" + Content = "Contoso cares about you: Rest and Recharge" + } + NewParticipants = @( + @{ + EmailAddress = @{ + Name = "Adele Vance" + Address = "AdeleV@contoso.onmicrosoft.com" + } + } + ) + } + ) + } + ) +} +New-MgGroupConversation -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgGroupConversation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/New-MgGroupConversationThread.md b/src/Groups/Groups/examples/v1.0/New-MgGroupConversationThread.md index 093355d11d5..aa13718af43 100644 --- a/src/Groups/Groups/examples/v1.0/New-MgGroupConversationThread.md +++ b/src/Groups/Groups/examples/v1.0/New-MgGroupConversationThread.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgGroupConversationThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + Topic = "Take your wellness days and rest" + Posts = @( + @{ + Body = @{ + ContentType = "html" + Content = "Waiting for the summer holidays." + } + } + ) +} +New-MgGroupConversationThread -GroupId $groupId -ConversationId $conversationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgGroupConversationThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/New-MgGroupLifecyclePolicy.md b/src/Groups/Groups/examples/v1.0/New-MgGroupLifecyclePolicy.md index 093355d11d5..c8c8d6981bc 100644 --- a/src/Groups/Groups/examples/v1.0/New-MgGroupLifecyclePolicy.md +++ b/src/Groups/Groups/examples/v1.0/New-MgGroupLifecyclePolicy.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgGroupLifecyclePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + GroupLifetimeInDays = 100 + ManagedGroupTypes = "Selected" + AlternateNotificationEmails = "admin@contoso.com" +} +New-MgGroupLifecyclePolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgGroupLifecyclePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/New-MgGroupMemberByRef.md b/src/Groups/Groups/examples/v1.0/New-MgGroupMemberByRef.md index 093355d11d5..715e5f7ec7d 100644 --- a/src/Groups/Groups/examples/v1.0/New-MgGroupMemberByRef.md +++ b/src/Groups/Groups/examples/v1.0/New-MgGroupMemberByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgGroupMemberByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/{id}" +} +New-MgGroupMemberByRef -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgGroupMemberByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/New-MgGroupRejectedSenderByRef.md b/src/Groups/Groups/examples/v1.0/New-MgGroupRejectedSenderByRef.md index 093355d11d5..c0bd8ddacd4 100644 --- a/src/Groups/Groups/examples/v1.0/New-MgGroupRejectedSenderByRef.md +++ b/src/Groups/Groups/examples/v1.0/New-MgGroupRejectedSenderByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgGroupRejectedSenderByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/users/alexd@contoso.com" +} +New-MgGroupRejectedSenderByRef -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgGroupRejectedSenderByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/New-MgGroupThread.md b/src/Groups/Groups/examples/v1.0/New-MgGroupThread.md index 093355d11d5..9abf0569b6f 100644 --- a/src/Groups/Groups/examples/v1.0/New-MgGroupThread.md +++ b/src/Groups/Groups/examples/v1.0/New-MgGroupThread.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgGroupThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + Topic = "New Conversation Thread Topic" + Posts = @( + @{ + Body = @{ + ContentType = "html" + Content = "this is body content" + } + NewParticipants = @( + @{ + EmailAddress = @{ + Name = "Alex Darrow" + Address = "alexd@contoso.com" + } + } + ) + } + ) +} +New-MgGroupThread -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Remove-MgGroupConversation.md b/src/Groups/Groups/examples/v1.0/Remove-MgGroupConversation.md index 093355d11d5..8cf3f2c1726 100644 --- a/src/Groups/Groups/examples/v1.0/Remove-MgGroupConversation.md +++ b/src/Groups/Groups/examples/v1.0/Remove-MgGroupConversation.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgGroupConversation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Remove-MgGroupConversation -GroupId $groupId -ConversationId $conversationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgGroupConversation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgGroupConversation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Remove-MgGroupConversation -GroupId $groupId -ConversationId $conversationId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgGroupConversation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Remove-MgGroupFavorite.md b/src/Groups/Groups/examples/v1.0/Remove-MgGroupFavorite.md index 093355d11d5..7c030b1c197 100644 --- a/src/Groups/Groups/examples/v1.0/Remove-MgGroupFavorite.md +++ b/src/Groups/Groups/examples/v1.0/Remove-MgGroupFavorite.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgGroupFavorite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Remove-MgGroupFavorite -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgGroupFavorite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Remove-MgGroupLifecyclePolicy.md b/src/Groups/Groups/examples/v1.0/Remove-MgGroupLifecyclePolicy.md index 093355d11d5..e35851c5eb5 100644 --- a/src/Groups/Groups/examples/v1.0/Remove-MgGroupLifecyclePolicy.md +++ b/src/Groups/Groups/examples/v1.0/Remove-MgGroupLifecyclePolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgGroupLifecyclePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Remove-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgGroupLifecyclePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Remove-MgGroupMemberByRef.md b/src/Groups/Groups/examples/v1.0/Remove-MgGroupMemberByRef.md index 093355d11d5..cdc572481d3 100644 --- a/src/Groups/Groups/examples/v1.0/Remove-MgGroupMemberByRef.md +++ b/src/Groups/Groups/examples/v1.0/Remove-MgGroupMemberByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgGroupMemberByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Remove-MgGroupMemberByRef -GroupId $groupId -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgGroupMemberByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Remove-MgGroupOwnerByRef.md b/src/Groups/Groups/examples/v1.0/Remove-MgGroupOwnerByRef.md index 093355d11d5..ae97b0608e7 100644 --- a/src/Groups/Groups/examples/v1.0/Remove-MgGroupOwnerByRef.md +++ b/src/Groups/Groups/examples/v1.0/Remove-MgGroupOwnerByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgGroupOwnerByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Remove-MgGroupOwnerByRef -GroupId $groupId -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgGroupOwnerByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Remove-MgGroupThread.md b/src/Groups/Groups/examples/v1.0/Remove-MgGroupThread.md index 093355d11d5..3f81cb5b28e 100644 --- a/src/Groups/Groups/examples/v1.0/Remove-MgGroupThread.md +++ b/src/Groups/Groups/examples/v1.0/Remove-MgGroupThread.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgGroupThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Remove-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgGroupThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Remove-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Reset-MgGroupUnseenCount.md b/src/Groups/Groups/examples/v1.0/Reset-MgGroupUnseenCount.md index 093355d11d5..2e75ffdf2f5 100644 --- a/src/Groups/Groups/examples/v1.0/Reset-MgGroupUnseenCount.md +++ b/src/Groups/Groups/examples/v1.0/Reset-MgGroupUnseenCount.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Reset-MgGroupUnseenCount Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +Reset-MgGroupUnseenCount -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Reset-MgGroupUnseenCount Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Set-MgGroupLicense.md b/src/Groups/Groups/examples/v1.0/Set-MgGroupLicense.md index 093355d11d5..a6b7f1f2ac7 100644 --- a/src/Groups/Groups/examples/v1.0/Set-MgGroupLicense.md +++ b/src/Groups/Groups/examples/v1.0/Set-MgGroupLicense.md @@ -1,18 +1,41 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Set-MgGroupLicense Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + AddLicenses = @( + @{ + DisabledPlans = @( + "113feb6c-3fe4-4440-bddc-54d774bf0318" + "14ab5db5-e6c4-4b20-b4bc-13e36fd2227f" + ) + SkuId = "b05e124f-c7cc-45a0-a6aa-8cf78c946968" + } + @{ + DisabledPlans = @( + "a413a9ff-720c-4822-98ef-2f37c2a21f4c" + ) + SkuId = "c7df2760-2c81-4ef7-b578-5b5392b571df" + } + ) + RemoveLicenses = @( + ) +} +Set-MgGroupLicense -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Set-MgGroupLicense Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Set-MgGroupLicense Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + AddLicenses = @( + ) + RemoveLicenses = @( + "c7df2760-2c81-4ef7-b578-5b5392b571df" + "b05e124f-c7cc-45a0-a6aa-8cf78c946968" + ) +} +Set-MgGroupLicense -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Set-MgGroupLicense Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Test-MgGroupProperty.md b/src/Groups/Groups/examples/v1.0/Test-MgGroupProperty.md index 093355d11d5..1ba38d9f927 100644 --- a/src/Groups/Groups/examples/v1.0/Test-MgGroupProperty.md +++ b/src/Groups/Groups/examples/v1.0/Test-MgGroupProperty.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Test-MgGroupProperty Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + DisplayName = "Myprefix_test_mysuffix" + MailNickname = "Myprefix_test_mysuffix" + OnBehalfOfUserId = "onBehalfOfUserId-value" +} +Test-MgGroupProperty -GroupId $groupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Test-MgGroupProperty Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Update-MgGroupLifecyclePolicy.md b/src/Groups/Groups/examples/v1.0/Update-MgGroupLifecyclePolicy.md index 093355d11d5..5c1306ba208 100644 --- a/src/Groups/Groups/examples/v1.0/Update-MgGroupLifecyclePolicy.md +++ b/src/Groups/Groups/examples/v1.0/Update-MgGroupLifecyclePolicy.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgGroupLifecyclePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + GroupLifetimeInDays = 180 + ManagedGroupTypes = "Selected" + AlternateNotificationEmails = "admin@contoso.com" +} +Update-MgGroupLifecyclePolicy -GroupLifecyclePolicyId $groupLifecyclePolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgGroupLifecyclePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Update-MgGroupThread.md b/src/Groups/Groups/examples/v1.0/Update-MgGroupThread.md index 093355d11d5..7fca17fa2f0 100644 --- a/src/Groups/Groups/examples/v1.0/Update-MgGroupThread.md +++ b/src/Groups/Groups/examples/v1.0/Update-MgGroupThread.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgGroupThread Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + OriginalStartTimeZone = "originalStartTimeZone-value" + OriginalEndTimeZone = "originalEndTimeZone-value" + ICalUId = "iCalUId-value" + ReminderMinutesBeforeStart = + IsReminderOn = $true +} +Update-MgGroupThread -GroupId $groupId -ConversationThreadId $conversationThreadId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgGroupThread Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Groups/Groups/examples/v1.0/Update-MgGroupThreadPostExtension.md b/src/Groups/Groups/examples/v1.0/Update-MgGroupThreadPostExtension.md index 093355d11d5..165856050f1 100644 --- a/src/Groups/Groups/examples/v1.0/Update-MgGroupThreadPostExtension.md +++ b/src/Groups/Groups/examples/v1.0/Update-MgGroupThreadPostExtension.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgGroupThreadPostExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Groups +$params = @{ + "@odata.type" = "Microsoft.OutlookServices.OpenTypeExtension" + ExtensionName = "Com.Contoso.Estimate" + CompanyName = "Contoso" + ExpirationDate = "2016-07-30T11:00:00.000Z" + DealValue = + TopPicks = @( + "Employees only" + "Add spouse or guest" + "Add family" + ) +} +Update-MgGroupThreadPostExtension -GroupId $groupId -ConversationThreadId $conversationThreadId -PostId $postId -ExtensionId $extensionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgGroupThreadPostExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDomain.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDomain.md index 093355d11d5..4790401e679 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDomain.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Confirm-MgDomain.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Confirm-MgDomain Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Confirm-MgDomain -DomainId $domainId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Confirm-MgDomain Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactDelta.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactDelta.md index 093355d11d5..db93604d695 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactDelta.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgContactDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgContactDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgContactDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactDirectReport.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactDirectReport.md index 093355d11d5..a67e12d3974 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactDirectReport.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactDirectReport.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgContactDirectReport Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgContactDirectReport -OrgContactId $orgContactId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgContactDirectReport Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactManager.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactManager.md index 093355d11d5..110f1c146c1 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactManager.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactManager.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgContactManager Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgContactManager -OrgContactId $orgContactId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgContactManager Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactMemberOf.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactMemberOf.md index 093355d11d5..48d8ebf9a7e 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactMemberOf.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgContactMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgContactMemberOf -OrgContactId $orgContactId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgContactMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactTransitiveMemberOf.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactTransitiveMemberOf.md index 093355d11d5..a58298f5354 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactTransitiveMemberOf.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContactTransitiveMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgContactTransitiveMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgContactTransitiveMemberOf -OrgContactId $orgContactId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgContactTransitiveMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContract.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContract.md index 093355d11d5..c2d402b792b 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContract.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgContract.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgContract Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgContract -ContractId $contractId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgContract Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgContract Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgContract ``` - -{{ Add description here }} - +This example shows how to use the Get-MgContract Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDevice.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDevice.md index 093355d11d5..e838861d2a7 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDevice.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDevice.md @@ -1,18 +1,49 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDevice -Search "displayName:Android" -CountVariable CountVar -ConsistencyLevel eventual ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDevice -DeviceId $deviceId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgDevice Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDevice -DeviceId $deviceId -Property "id,extensionAttributes" +``` +This example shows how to use the Get-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgDevice Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDevice -Filter "extensionAttributes/extensionAttribute1 eq 'BYOD-Device'" -CountVariable CountVar -ConsistencyLevel eventual +``` +This example shows how to use the Get-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgDevice Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDevice +``` +This example shows how to use the Get-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgDevice Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDevice -Property "id,extensionAttributes" +``` +This example shows how to use the Get-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the Get-MgDevice Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDevice -Filter "startswith(displayName, 'a')" -CountVariable CountVar -Top 1 -Sort "displayName" -ConsistencyLevel eventual +``` +This example shows how to use the Get-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceMemberOf.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceMemberOf.md index 093355d11d5..d83557ee5cb 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceMemberOf.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDeviceMemberOf -DeviceId $deviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceRegisteredOwner.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceRegisteredOwner.md index 093355d11d5..a1180f205f5 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceRegisteredOwner.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceRegisteredOwner.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceRegisteredOwner Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDeviceRegisteredOwner -DeviceId $deviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceRegisteredOwner Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceRegisteredUser.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceRegisteredUser.md index 093355d11d5..c99c9ce8aac 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceRegisteredUser.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceRegisteredUser.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceRegisteredUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDeviceRegisteredUser -DeviceId $deviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceRegisteredUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceTransitiveMemberOf.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceTransitiveMemberOf.md index 093355d11d5..4edc82d6207 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceTransitiveMemberOf.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDeviceTransitiveMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDeviceTransitiveMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDeviceTransitiveMemberOf -DeviceId $deviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDeviceTransitiveMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryAdministrativeUnit.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryAdministrativeUnit.md index 093355d11d5..259c8e98d12 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryAdministrativeUnit.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryAdministrativeUnit.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryAdministrativeUnit Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryAdministrativeUnit -AdministrativeUnitId $administrativeUnitId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDirectoryAdministrativeUnit Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDirectoryAdministrativeUnit Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryAdministrativeUnit ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryAdministrativeUnit Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryAdministrativeUnitMember.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryAdministrativeUnitMember.md index 093355d11d5..476caeabfab 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryAdministrativeUnitMember.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryAdministrativeUnitMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryAdministrativeUnitMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryAdministrativeUnitMember -AdministrativeUnitId $administrativeUnitId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryAdministrativeUnitMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryAdministrativeUnitMemberByRef.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryAdministrativeUnitMemberByRef.md index 093355d11d5..f8311e3be03 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryAdministrativeUnitMemberByRef.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryAdministrativeUnitMemberByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryAdministrativeUnitMemberByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryAdministrativeUnitMemberByRef -AdministrativeUnitId $administrativeUnitId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryAdministrativeUnitMemberByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryAdministrativeUnitScopedRoleMember.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryAdministrativeUnitScopedRoleMember.md index 093355d11d5..e7006a3718e 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryAdministrativeUnitScopedRoleMember.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryAdministrativeUnitScopedRoleMember.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -ScopedRoleMembershipId $scopedRoleMembershipId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryFederationConfiguration.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryFederationConfiguration.md index 093355d11d5..81a1bf6821d 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryFederationConfiguration.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryFederationConfiguration.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryFederationConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryFederationConfiguration -IdentityProviderBaseId $identityProviderBaseId -Filter "domains/any(x: x/id eq 'contoso.com')" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDirectoryFederationConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDirectoryFederationConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryFederationConfiguration -IdentityProviderBaseId $identityProviderBaseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryFederationConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleDelta.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleDelta.md index 093355d11d5..66ae1efd076 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleDelta.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryRoleDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryRoleDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryRoleDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleScopedMember.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleScopedMember.md index 093355d11d5..f1182cc0668 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleScopedMember.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleScopedMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryRoleScopedMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryRoleScopedMember -DirectoryRoleId $directoryRoleId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryRoleScopedMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleTemplate.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleTemplate.md index 093355d11d5..e8e27e057f0 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleTemplate.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDirectoryRoleTemplate.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDirectoryRoleTemplate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryRoleTemplate -DirectoryRoleTemplateId $directoryRoleTemplateId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgDirectoryRoleTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgDirectoryRoleTemplate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDirectoryRoleTemplate ``` - -{{ Add description here }} - +This example shows how to use the Get-MgDirectoryRoleTemplate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDomainNameReference.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDomainNameReference.md index 093355d11d5..64754851c9d 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDomainNameReference.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDomainNameReference.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDomainNameReference Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDomainNameReference -DomainId $domainId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDomainNameReference Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDomainServiceConfigurationRecord.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDomainServiceConfigurationRecord.md index 093355d11d5..09290208592 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDomainServiceConfigurationRecord.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDomainServiceConfigurationRecord.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDomainServiceConfigurationRecord Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDomainServiceConfigurationRecord -DomainId $domainId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDomainServiceConfigurationRecord Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDomainVerificationDnsRecord.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDomainVerificationDnsRecord.md index 093355d11d5..8508acb879e 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDomainVerificationDnsRecord.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgDomainVerificationDnsRecord.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDomainVerificationDnsRecord Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgDomainVerificationDnsRecord -DomainId $domainId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDomainVerificationDnsRecord Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganization.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganization.md index 093355d11d5..bf1a20a58cb 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganization.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganization.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOrganization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganization -OrganizationId $organizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgOrganization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgOrganization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganization ``` - -{{ Add description here }} - +This example shows how to use the Get-MgOrganization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationBranding.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationBranding.md index 093355d11d5..9d542a4611e 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationBranding.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationBranding.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOrganizationBranding Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationBranding -OrganizationId $organizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgOrganizationBranding Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgOrganizationBranding Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationBranding -OrganizationId $organizationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgOrganizationBranding Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgOrganizationBranding Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationBranding -OrganizationId $organizationId +``` +This example shows how to use the Get-MgOrganizationBranding Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationBrandingLocalization.md index 093355d11d5..0572ed0fe94 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationBrandingLocalization.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOrganizationBrandingLocalization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgOrganizationBrandingLocalization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgOrganizationBrandingLocalization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationBrandingLocalization -OrganizationId $organizationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgOrganizationBrandingLocalization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationBrandingLocalizationBannerLogo.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationBrandingLocalizationBannerLogo.md index 093355d11d5..2add861809a 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationBrandingLocalizationBannerLogo.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Get-MgOrganizationBrandingLocalizationBannerLogo.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Get-MgOrganizationBrandingLocalizationBannerLogo -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -OutFile $outFileId +``` +This example shows how to use the Get-MgOrganizationBrandingLocalizationBannerLogo Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Invoke-MgForceDomainDelete.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Invoke-MgForceDomainDelete.md index 093355d11d5..aca2d80b927 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Invoke-MgForceDomainDelete.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Invoke-MgForceDomainDelete.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgForceDomainDelete Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + DisableUserAccounts = $true +} +Invoke-MgForceDomainDelete -DomainId $domainId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgForceDomainDelete Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDevice.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDevice.md index 093355d11d5..6cc559d78b2 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDevice.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDevice.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + AccountEnabled = $false + AlternativeSecurityIds = @( + @{ + Type = 2 + Key = [System.Text.Encoding]::ASCII.GetBytes("base64Y3YxN2E1MWFlYw==") + } + ) + DeviceId = "4c299165-6e8f-4b45-a5ba-c5d250a707ff" + DisplayName = "Test device" + OperatingSystem = "linux" + OperatingSystemVersion = "1" +} +New-MgDevice -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDeviceRegisteredOwnerByRef.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDeviceRegisteredOwnerByRef.md index 093355d11d5..4da7bfd4586 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDeviceRegisteredOwnerByRef.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDeviceRegisteredOwnerByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDeviceRegisteredOwnerByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/{id}" +} +New-MgDeviceRegisteredOwnerByRef -DeviceId $deviceId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDeviceRegisteredOwnerByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDeviceRegisteredUserByRef.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDeviceRegisteredUserByRef.md new file mode 100644 index 00000000000..3fb7b342acf --- /dev/null +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDeviceRegisteredUserByRef.md @@ -0,0 +1,10 @@ +### Example 1: Using the New-MgDeviceRegisteredUserByRef Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/{id}" +} +New-MgDeviceRegisteredUserByRef -DeviceId $deviceId -BodyParameter $params +``` +This example shows how to use the New-MgDeviceRegisteredUserByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryAdministrativeUnit.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryAdministrativeUnit.md index 093355d11d5..c3b2ff8fa98 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryAdministrativeUnit.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryAdministrativeUnit.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDirectoryAdministrativeUnit Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + DisplayName = "Seattle District Technical Schools" + Description = "Seattle district technical schools administration" + Visibility = "HiddenMembership" +} +New-MgDirectoryAdministrativeUnit -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDirectoryAdministrativeUnit Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryAdministrativeUnitMemberByRef.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryAdministrativeUnitMemberByRef.md index 093355d11d5..4c50c2ccc39 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryAdministrativeUnitMemberByRef.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryAdministrativeUnitMemberByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDirectoryAdministrativeUnitMemberByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/groups/{id}" +} +New-MgDirectoryAdministrativeUnitMemberByRef -AdministrativeUnitId $administrativeUnitId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDirectoryAdministrativeUnitMemberByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryAdministrativeUnitScopedRoleMember.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryAdministrativeUnitScopedRoleMember.md index 093355d11d5..5c8a9266800 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryAdministrativeUnitScopedRoleMember.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryAdministrativeUnitScopedRoleMember.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + RoleId = "roleId-value" + RoleMemberInfo = @{ + Id = "id-value" + } +} +New-MgDirectoryAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryFederationConfiguration.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryFederationConfiguration.md index 093355d11d5..96f4e935ab4 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryFederationConfiguration.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryFederationConfiguration.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDirectoryFederationConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + "@odata.type" = "microsoft.graph.samlOrWsFedExternalDomainFederation" + IssuerUri = "https://contoso.com/issuerUri" + DisplayName = "contoso display name" + MetadataExchangeUri = "https://contoso.com/metadataExchangeUri" + PassiveSignInUri = "https://contoso.com/signin" + PreferredAuthenticationProtocol = "wsFed" + Domains = @( + @{ + "@odata.type" = "microsoft.graph.externalDomainName" + Id = "contoso.com" + } + ) + SigningCertificate = "MIIDADCCAeigAwIBAgIQEX41y8r6" +} +New-MgDirectoryFederationConfiguration -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDirectoryFederationConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryRole.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryRole.md index 093355d11d5..14ef0502506 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryRole.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDirectoryRole.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDirectoryRole Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + RoleTemplateId = "fe930be7-5e62-47db-91af-98c3a49a38b1" +} +New-MgDirectoryRole -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDirectoryRole Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDomain.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDomain.md index 093355d11d5..f88d172ca2d 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDomain.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDomain.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgDomain Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + Id = "contoso.com" +} +New-MgDomain -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgDomain Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgOrganizationBrandingLocalization.md index 093355d11d5..c80e7735f90 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgOrganizationBrandingLocalization.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgOrganizationBrandingLocalization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + BackgroundColor = "#00000F" + Id = "fr-FR" + SignInPageText = " " +} +New-MgOrganizationBrandingLocalization -OrganizationId $organizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgOrganizationBrandingLocalization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDevice.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDevice.md index 093355d11d5..f95ac3817a5 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDevice.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDevice.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgDevice -DeviceId $deviceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDeviceRegisteredOwnerByRef.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDeviceRegisteredOwnerByRef.md index 093355d11d5..e39709f5bd4 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDeviceRegisteredOwnerByRef.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDeviceRegisteredOwnerByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDeviceRegisteredOwnerByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgDeviceRegisteredOwnerByRef -DeviceId $deviceId -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDeviceRegisteredOwnerByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryAdministrativeUnit.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryAdministrativeUnit.md index 093355d11d5..f8cf0710b99 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryAdministrativeUnit.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryAdministrativeUnit.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDirectoryAdministrativeUnit Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgDirectoryAdministrativeUnit -AdministrativeUnitId $administrativeUnitId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDirectoryAdministrativeUnit Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryAdministrativeUnitMemberByRef.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryAdministrativeUnitMemberByRef.md index 093355d11d5..b2039e63475 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryAdministrativeUnitMemberByRef.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryAdministrativeUnitMemberByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDirectoryAdministrativeUnitMemberByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgDirectoryAdministrativeUnitMemberByRef -AdministrativeUnitId $administrativeUnitId -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDirectoryAdministrativeUnitMemberByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryAdministrativeUnitScopedRoleMember.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryAdministrativeUnitScopedRoleMember.md index 093355d11d5..a25463ac296 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryAdministrativeUnitScopedRoleMember.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryAdministrativeUnitScopedRoleMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgDirectoryAdministrativeUnitScopedRoleMember -AdministrativeUnitId $administrativeUnitId -ScopedRoleMembershipId $scopedRoleMembershipId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDirectoryAdministrativeUnitScopedRoleMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryDeletedItem.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryDeletedItem.md index 093355d11d5..f78331b425b 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryDeletedItem.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryDeletedItem.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDirectoryDeletedItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgDirectoryDeletedItem -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDirectoryDeletedItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryFederationConfiguration.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryFederationConfiguration.md index 093355d11d5..c0f0946b4b6 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryFederationConfiguration.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryFederationConfiguration.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDirectoryFederationConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgDirectoryFederationConfiguration -IdentityProviderBaseId $identityProviderBaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDirectoryFederationConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryRoleMemberByRef.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryRoleMemberByRef.md index 093355d11d5..31685a3cad6 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryRoleMemberByRef.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDirectoryRoleMemberByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDirectoryRoleMemberByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgDirectoryRoleMemberByRef -DirectoryRoleId $directoryRoleId -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDirectoryRoleMemberByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDomain.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDomain.md index 093355d11d5..9a3adcac02e 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDomain.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgDomain.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgDomain Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgDomain -DomainId $domainId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgDomain Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgOrganizationBrandingLocalization.md index 093355d11d5..65e78f222c8 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Remove-MgOrganizationBrandingLocalization.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgOrganizationBrandingLocalization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Remove-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgOrganizationBrandingLocalization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Restore-MgDirectoryDeletedItem.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Restore-MgDirectoryDeletedItem.md index 093355d11d5..1633d1d41f2 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Restore-MgDirectoryDeletedItem.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Restore-MgDirectoryDeletedItem.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Restore-MgDirectoryDeletedItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +Restore-MgDirectoryDeletedItem -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Restore-MgDirectoryDeletedItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgDevice.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgDevice.md index 093355d11d5..0cdd079c27d 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgDevice.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgDevice.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ +} +Update-MgDevice -DeviceId $deviceId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + AccountEnabled = $false +} +Update-MgDevice -DeviceId $deviceId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgDirectoryAdministrativeUnit.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgDirectoryAdministrativeUnit.md index 093355d11d5..67d7f07d3eb 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgDirectoryAdministrativeUnit.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgDirectoryAdministrativeUnit.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgDirectoryAdministrativeUnit Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + DisplayName = "Greater Seattle District Technical Schools" +} +Update-MgDirectoryAdministrativeUnit -AdministrativeUnitId $administrativeUnitId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgDirectoryAdministrativeUnit Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgDomain.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgDomain.md index 093355d11d5..1ff91394b8f 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgDomain.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgDomain.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgDomain Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + IsDefault = $true + SupportedServices = @( + "Email" + "OfficeCommunicationsOnline" + ) +} +Update-MgDomain -DomainId $domainId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgDomain Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgOrganization.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgOrganization.md index 093355d11d5..5e266c3d37d 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgOrganization.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgOrganization.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgOrganization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + MarketingNotificationEmails = @( + "marketing@contoso.com" + ) + PrivacyProfile = @{ + ContactEmail = "alice@contoso.com" + StatementUrl = "https://contoso.com/privacyStatement" + } + SecurityComplianceNotificationMails = @( + "security@contoso.com" + ) + SecurityComplianceNotificationPhones = @( + "(123) 456-7890" + ) + TechnicalNotificationMails = @( + "tech@contoso.com" + ) +} +Update-MgOrganization -OrganizationId $organizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgOrganization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgOrganizationBranding.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgOrganizationBranding.md index 093355d11d5..a52a4669fef 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgOrganizationBranding.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgOrganizationBranding.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgOrganizationBranding Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + SignInPageText = "Default" + UsernameHintText = "DefaultHint" +} +Update-MgOrganizationBranding -OrganizationId $organizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgOrganizationBranding Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgOrganizationBrandingLocalization.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgOrganizationBrandingLocalization.md index 093355d11d5..9e02549df28 100644 --- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgOrganizationBrandingLocalization.md +++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/Update-MgOrganizationBrandingLocalization.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgOrganizationBrandingLocalization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + BackgroundColor = "#00000F" + SignInPageText = "Welcome to Contoso France" +} +Update-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgOrganizationBrandingLocalization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgOrganizationBrandingLocalization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.DirectoryManagement +$params = @{ + SignInPageText = "Welcome to Contoso France." + UsernameHintText = " " +} +Update-MgOrganizationBrandingLocalization -OrganizationId $organizationId -OrganizationalBrandingLocalizationId $organizationalBrandingLocalizationId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgOrganizationBrandingLocalization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md index 093355d11d5..b47c8495eb0 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAccessPackage.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAccessPackage.md index 093355d11d5..2c598ca7b98 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAccessPackage.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAccessPackage.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementAccessPackage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackage -AccessPackageId $accessPackageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEntitlementManagementAccessPackage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEntitlementManagementAccessPackage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackage -AccessPackageId $accessPackageId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementAccessPackage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgEntitlementManagementAccessPackage Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackage +``` +This example shows how to use the Get-MgEntitlementManagementAccessPackage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement.md index 093355d11d5..68e1cff8a15 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement -AccessPackageId $accessPackageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementAccessPackageApplicablePolicyRequirement Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md index 093355d11d5..e2060b8a45e 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage -ApprovalId $approvalId -ApprovalStageId $approvalStageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage -ApprovalId $approvalId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementAccessPackageAssignmentApprovalStage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAssignment.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAssignment.md index 093355d11d5..43b0683798a 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAssignment.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAssignment.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAssignment -AccessPackageAssignmentId $accessPackageAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEntitlementManagementAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEntitlementManagementAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAssignment -AccessPackageAssignmentId $accessPackageAssignmentId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgEntitlementManagementAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAssignment +``` +This example shows how to use the Get-MgEntitlementManagementAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAssignmentPolicy.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAssignmentPolicy.md index 093355d11d5..63da8678912 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAssignmentPolicy.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAssignmentPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementAssignmentPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAssignmentPolicy -AccessPackageAssignmentPolicyId $accessPackageAssignmentPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEntitlementManagementAssignmentPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEntitlementManagementAssignmentPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAssignmentPolicy ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementAssignmentPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAssignmentRequest.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAssignmentRequest.md index 093355d11d5..c0723aac771 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAssignmentRequest.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementAssignmentRequest.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementAssignmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAssignmentRequest -AccessPackageAssignmentRequestId $accessPackageAssignmentRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEntitlementManagementAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEntitlementManagementAssignmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAssignmentRequest -AccessPackageAssignmentRequestId $accessPackageAssignmentRequestId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgEntitlementManagementAssignmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementAssignmentRequest +``` +This example shows how to use the Get-MgEntitlementManagementAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementCatalog.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementCatalog.md index 093355d11d5..15dca9a8afb 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementCatalog.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementCatalog.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementCatalog Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementCatalog -AccessPackageCatalogId $accessPackageCatalogId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEntitlementManagementCatalog Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEntitlementManagementCatalog Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementCatalog ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementCatalog Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementConnectedOrganization.md index 093355d11d5..10e9971e12e 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementConnectedOrganization.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementConnectedOrganization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgEntitlementManagementConnectedOrganization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgEntitlementManagementConnectedOrganization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementConnectedOrganization ``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementConnectedOrganization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementSetting.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementSetting.md index 093355d11d5..0a604864430 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementSetting.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgEntitlementManagementSetting.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgEntitlementManagementSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgEntitlementManagementSetting ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgEntitlementManagementSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinition.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinition.md index 093355d11d5..c1c3a5bc264 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinition.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinition.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinition -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinition -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinition -Filter "contains(scope/microsoft.graph.accessReviewQueryScope/query, './members')" +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinition -Top 100 -Skip 0 +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstance.md index 093355d11d5..22c45c9e876 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstance.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.md index 093355d11d5..a338bf14029 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md index 093355d11d5..482c00a494f 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md index 093355d11d5..4764bacf290 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md index 093355d11d5..b1567ab4c77 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId +``` +This example shows how to use the Get-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewHistoryDefinition.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewHistoryDefinition.md index 093355d11d5..b34e64f97fe 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewHistoryDefinition.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewHistoryDefinition.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewHistoryDefinition -AccessReviewHistoryDefinitionId $accessReviewHistoryDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewHistoryDefinition ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance.md index 093355d11d5..b87b960b7a0 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance -AccessReviewHistoryDefinitionId $accessReviewHistoryDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAppConsentRequest.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAppConsentRequest.md index 093355d11d5..9d0900dc77f 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAppConsentRequest.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAppConsentRequest.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAppConsentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAppConsentRequest -AppConsentRequestId $appConsentRequestId -Filter "userConsentRequests/any(u:u/status eq 'InProgress')" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityGovernanceAppConsentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityGovernanceAppConsentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAppConsentRequest -AppConsentRequestId $appConsentRequestId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAppConsentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityGovernanceAppConsentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAppConsentRequest +``` +This example shows how to use the Get-MgIdentityGovernanceAppConsentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgIdentityGovernanceAppConsentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAppConsentRequest -Filter "userConsentRequests/any (u:u/status eq 'InProgress')" +``` +This example shows how to use the Get-MgIdentityGovernanceAppConsentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md index 093355d11d5..c8b8d1b5286 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest -AppConsentRequestId $appConsentRequestId -UserConsentRequestId $userConsentRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest -AppConsentRequestId $appConsentRequestId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest -AppConsentRequestId $appConsentRequestId -UserConsentRequestId $userConsentRequestId -Filter " (status eq 'Completed')" +``` +This example shows how to use the Get-MgIdentityGovernanceAppConsentRequestUserConsentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceTermOfUseAgreement.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceTermOfUseAgreement.md index 093355d11d5..1fcf9544f45 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceTermOfUseAgreement.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceTermOfUseAgreement.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceTermOfUseAgreement Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceTermOfUseAgreement -AgreementId $agreementId -ExpandProperty "files" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityGovernanceTermOfUseAgreement Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityGovernanceTermOfUseAgreement Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceTermOfUseAgreement -AgreementId $agreementId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceTermOfUseAgreement Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityGovernanceTermOfUseAgreement Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceTermOfUseAgreement +``` +This example shows how to use the Get-MgIdentityGovernanceTermOfUseAgreement Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgIdentityGovernanceTermOfUseAgreement Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceTermOfUseAgreement -AgreementId $agreementId -ExpandProperty "files" +``` +This example shows how to use the Get-MgIdentityGovernanceTermOfUseAgreement Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceTermOfUseAgreementFile.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceTermOfUseAgreementFile.md index 093355d11d5..fe6826865fb 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceTermOfUseAgreementFile.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgIdentityGovernanceTermOfUseAgreementFile.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityGovernanceTermOfUseAgreementFile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Get-MgIdentityGovernanceTermOfUseAgreementFile -AgreementId $agreementId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityGovernanceTermOfUseAgreementFile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgUserAgreementAcceptance.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgUserAgreementAcceptance.md index 093355d11d5..76614e3db15 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgUserAgreementAcceptance.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Get-MgUserAgreementAcceptance.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAgreementAcceptance Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +# A UPN can also be used as -UserId. +Get-MgUserAgreementAcceptance -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAgreementAcceptance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Invoke-MgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Invoke-MgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation.md index 093355d11d5..00f45c46966 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Invoke-MgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Invoke-MgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Invoke-MgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Invoke-MgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Invoke-MgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision.md index 093355d11d5..dce5a920fad 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Invoke-MgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Invoke-MgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$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 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementAccessPackage.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementAccessPackage.md index 093355d11d5..057b5f79783 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementAccessPackage.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementAccessPackage.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEntitlementManagementAccessPackage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "sales reps" + Description = "outside sales representatives" + IsHidden = $false + Catalog = @{ + Id = "66584aae-98bb-48cc-9458-7bee5d2a6577" + } +} +New-MgEntitlementManagementAccessPackage -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEntitlementManagementAccessPackage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementAssignmentPolicy.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementAssignmentPolicy.md index 093355d11d5..b6b95e1321b 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementAssignmentPolicy.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementAssignmentPolicy.md @@ -1,18 +1,159 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEntitlementManagementAssignmentPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "policy for external access requests" + Description = "policy for users from connected organizations to request access, with two stages of approval." + AllowedTargetScope = "allConfiguredConnectedOrganizationUsers" + SpecificAllowedTargets = @( + ) + Expiration = @{ + Type = "noExpiration" + } + RequestorSettings = @{ + EnableTargetsToSelfAddAccess = $true + EnableTargetsToSelfUpdateAccess = $true + EnableTargetsToSelfRemoveAccess = $true + AllowCustomAssignmentSchedule = $false + EnableOnBehalfRequestorsToAddAccess = $false + EnableOnBehalfRequestorsToUpdateAccess = $false + EnableOnBehalfRequestorsToRemoveAccess = $false + OnBehalfRequestors = @( + ) + } + RequestApprovalSettings = @{ + IsApprovalRequiredForAdd = $true + IsApprovalRequiredForUpdate = $false + Stages = @( + @{ + DurationBeforeAutomaticDenial = "P14D" + IsApproverJustificationRequired = $false + IsEscalationEnabled = $false + DurationBeforeEscalation = "PT0S" + PrimaryApprovers = @( + @{ + "@odata.type" = "#microsoft.graph.internalSponsors" + } + ) + FallbackPrimaryApprovers = @( + @{ + "@odata.type" = "#microsoft.graph.singleUser" + UserId = "7deff43e-1f17-44ef-9e5f-d516b0ba11d4" + } + @{ + "@odata.type" = "#microsoft.graph.groupMembers" + GroupId = "1623f912-5e86-41c2-af47-39dd67582b66" + } + ) + EscalationApprovers = @( + ) + FallbackEscalationApprovers = @( + ) + } + @{ + DurationBeforeAutomaticDenial = "P14D" + IsApproverJustificationRequired = $false + IsEscalationEnabled = $false + DurationBeforeEscalation = "PT0S" + PrimaryApprovers = @( + ) + FallbackPrimaryApprovers = @( + @{ + "@odata.type" = "#microsoft.graph.singleUser" + UserId = "46184453-e63b-4f20-86c2-c557ed5d5df9" + } + @{ + "@odata.type" = "#microsoft.graph.groupMembers" + GroupId = "1623f912-5e86-41c2-af47-39dd67582b66" + } + ) + EscalationApprovers = @( + ) + FallbackEscalationApprovers = @( + ) + } + ) + } + ReviewSettings = @{ + IsEnabled = $true + ExpirationBehavior = "keepAccess" + IsRecommendationEnabled = $true + IsReviewerJustificationRequired = $true + IsSelfReview = $false + Schedule = @{ + StartDateTime = [System.DateTime]::Parse("2022-07-02T06:59:59.998Z") + Expiration = @{ + Duration = "P14D" + Type = "afterDuration" + } + Recurrence = @{ + Pattern = @{ + Type = "absoluteMonthly" + Interval = 3 + Month = 0 + DayOfMonth = 0 + DaysOfWeek = @( + ) + } + Range = @{ + Type = "noEnd" + NumberOfOccurrences = 0 + } + } + } + PrimaryReviewers = @( + @{ + "@odata.type" = "#microsoft.graph.groupMembers" + GroupId = "1623f912-5e86-41c2-af47-39dd67582b66" + } + ) + FallbackReviewers = @( + ) + } + AccessPackage = @{ + Id = "a2e1ca1e-4e56-47d2-9daa-e2ba8d12a82b" + } +} +New-MgEntitlementManagementAssignmentPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgEntitlementManagementAssignmentPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgEntitlementManagementAssignmentPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "New Policy" + Description = "policy for assignment" + AllowedTargetScope = "notSpecified" + SpecificAllowedTargets = @( + ) + Expiration = @{ + EndDateTime = $null + Duration = $null + Type = "noExpiration" + } + RequestorSettings = @{ + EnableTargetsToSelfAddAccess = $false + EnableTargetsToSelfUpdateAccess = $false + EnableTargetsToSelfRemoveAccess = $false + AllowCustomAssignmentSchedule = $true + EnableOnBehalfRequestorsToAddAccess = $false + EnableOnBehalfRequestorsToUpdateAccess = $false + EnableOnBehalfRequestorsToRemoveAccess = $false + OnBehalfRequestors = @( + ) + } + RequestApprovalSettings = @{ + IsApprovalRequiredForAdd = $false + IsApprovalRequiredForUpdate = $false + Stages = @( + ) + } + AccessPackage = @{ + Id = "a2e1ca1e-4e56-47d2-9daa-e2ba8d12a82b" + } +} +New-MgEntitlementManagementAssignmentPolicy -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgEntitlementManagementAssignmentPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementAssignmentRequest.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementAssignmentRequest.md index 093355d11d5..dd3451a81d6 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementAssignmentRequest.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementAssignmentRequest.md @@ -1,18 +1,69 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEntitlementManagementAssignmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + RequestType = "AdminAdd" + Assignment = @{ + TargetId = "46184453-e63b-4f20-86c2-c557ed5d5df9" + AssignmentPolicyId = "2264bf65-76ba-417b-a27d-54d291f0cbc8" + AccessPackageId = "a914b616-e04e-476b-aa37-91038f0b165b" + } +} +New-MgEntitlementManagementAssignmentRequest -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgEntitlementManagementAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgEntitlementManagementAssignmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + RequestType = "AdminAdd" + Assignment = @{ + TargetId = "46184453-e63b-4f20-86c2-c557ed5d5df9" + AssignmentPolicyId = "2264bf65-76ba-417b-a27d-54d291f0cbc8" + AccessPackageId = "a914b616-e04e-476b-aa37-91038f0b165b" + } +} +New-MgEntitlementManagementAssignmentRequest -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgEntitlementManagementAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgEntitlementManagementAssignmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + RequestType = "AdminRemove" + Assignment = @{ + Id = "a6bb6942-3ae1-4259-9908-0133aaee9377" + } +} +New-MgEntitlementManagementAssignmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgEntitlementManagementAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgEntitlementManagementAssignmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + RequestType = "userAdd" + Assignment = @{ + AccessPackageId = "d7be3253-b9c6-4fab-adef-30d30de8da2b" + } +} +New-MgEntitlementManagementAssignmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgEntitlementManagementAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgEntitlementManagementAssignmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + RequestType = "userAdd" + Assignment = @{ + AccessPackageId = "d7be3253-b9c6-4fab-adef-30d30de8da2b" + } +} +New-MgEntitlementManagementAssignmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgEntitlementManagementAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementCatalog.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementCatalog.md index 093355d11d5..9c1b9228cfe 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementCatalog.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementCatalog.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEntitlementManagementCatalog Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "sales" + Description = "for employees working with sales and outside sales partners" + State = "published" + IsExternallyVisible = $true +} +New-MgEntitlementManagementCatalog -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEntitlementManagementCatalog Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementConnectedOrganization.md index 093355d11d5..6615b36b19b 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementConnectedOrganization.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEntitlementManagementConnectedOrganization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Connected organization name" + Description = "Connected organization description" + IdentitySources = @( + @{ + "@odata.type" = "#microsoft.graph.domainIdentitySource" + DomainName = "example.com" + DisplayName = "example.com" + } + ) + State = "proposed" +} +New-MgEntitlementManagementConnectedOrganization -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEntitlementManagementConnectedOrganization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md index 093355d11d5..59042e6ddde 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/users/{id}" +} +New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md index 093355d11d5..d6524b48b42 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/users/{id}" +} +New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgIdentityGovernanceAccessReviewDefinition.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgIdentityGovernanceAccessReviewDefinition.md index 093355d11d5..23590d2c53c 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgIdentityGovernanceAccessReviewDefinition.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgIdentityGovernanceAccessReviewDefinition.md @@ -1,18 +1,237 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Review employee access to LinkedIn" + DescriptionForAdmins = "Review employee access to LinkedIn" + Scope = @{ + "@odata.type" = "#microsoft.graph.principalResourceMembershipsScope" + PrincipalScopes = @( + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + Query = "/users" + QueryType = "MicrosoftGraph" + } + ) + ResourceScopes = @( + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + Query = "/servicePrincipals/bae11f90-7d5d-46ba-9f55-8112b59d92ae" + QueryType = "MicrosoftGraph" + } + ) + } + Reviewers = @( + @{ + Query = "./manager" + QueryType = "MicrosoftGraph" + QueryRoot = "decisions" + } + ) + BackupReviewers = @( + ) + FallbackReviewers = @( + @{ + Query = "/groups/072ac5f4-3f13-4088-ab30-0a276f3e6322/transitiveMembers" + QueryType = "MicrosoftGraph" + } + ) + Settings = @{ + MailNotificationsEnabled = $true + ReminderNotificationsEnabled = $true + JustificationRequiredOnApproval = $true + DefaultDecisionEnabled = $true + DefaultDecision = "Recommendation" + InstanceDurationInDays = 180 + AutoApplyDecisionsEnabled = $true + RecommendationsEnabled = $true + Recurrence = @{ + Pattern = @{ + Type = "absoluteMonthly" + Interval = 6 + DayOfMonth = 0 + } + Range = @{ + Type = "numbered" + StartDate = "2021-05-05" + EndDate = "2022-05-05" + } + } + } +} +New-MgIdentityGovernanceAccessReviewDefinition -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Group Multi-stage Access Review" + DescriptionForAdmins = "New scheduled access review" + DescriptionForReviewers = "If you have any questions, contact jerry@contoso.com" + Scope = @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + Query = "/groups/02f3bafb-448c-487c-88c2-5fd65ce49a41/transitiveMembers" + QueryType = "MicrosoftGraph" + } + StageSettings = @( + @{ + StageId = "1" + DurationInDays = 2 + RecommendationsEnabled = $false + DecisionsThatWillMoveToNextStage = @( + "NotReviewed" + "Approve" + ) + Reviewers = @( + @{ + Query = "/users/398164b1-5196-49dd-ada2-364b49f99b27" + QueryType = "MicrosoftGraph" + } + ) + } + @{ + StageId = "2" + DependsOn = @( + "1" + ) + DurationInDays = 2 + RecommendationsEnabled = $true + Reviewers = @( + @{ + Query = "./manager" + QueryType = "MicrosoftGraph" + QueryRoot = "decisions" + } + ) + FallbackReviewers = @( + @{ + Query = "/groups/072ac5f4-3f13-4088-ab30-0a276f3e6322/transitiveMembers" + QueryType = "MicrosoftGraph" + } + ) + } + ) + Settings = @{ + MailNotificationsEnabled = $true + ReminderNotificationsEnabled = $true + JustificationRequiredOnApproval = $true + DefaultDecisionEnabled = $false + DefaultDecision = "None" + InstanceDurationInDays = 4 + Recurrence = @{ + Pattern = @{ + Type = "weekly" + Interval = 1 + } + Range = @{ + Type = "noEnd" + StartDate = "2020-09-08T12:02:30.667Z" + } + } + DecisionHistoriesForReviewersEnabled = $true + } +} +New-MgIdentityGovernanceAccessReviewDefinition -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Review inactive guests on teams" + DescriptionForAdmins = "Control guest user access to our teams." + DescriptionForReviewers = "Information security is everyone's responsibility. Review our access policy for more." + InstanceEnumerationScope = @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + Query = "/groups?$filter=(groupTypes/any(c:c+eq+'Unified') and resourceProvisioningOptions/Any(x:x eq 'Team')')" + QueryType = "MicrosoftGraph" + } + Scope = @{ + "@odata.type" = "#microsoft.graph.accessReviewInactiveUsersQueryScope" + Query = "./members/microsoft.graph.user/?$filter=(userType eq 'Guest')" + QueryType = "MicrosoftGraph" + InactiveDuration = "P30D" + } + Reviewers = @( + @{ + Query = "./owners" + QueryType = "MicrosoftGraph" + } + ) + FallbackReviewers = @( + @{ + Query = "/users/fc9a2c2b-1ddc-486d-a211-5fe8ca77fa1f" + QueryType = "MicrosoftGraph" + } + ) + Settings = @{ + MailNotificationsEnabled = $true + ReminderNotificationsEnabled = $true + JustificationRequiredOnApproval = $true + RecommendationsEnabled = $true + InstanceDurationInDays = 3 + Recurrence = @{ + Pattern = @{ + Type = "absoluteMonthly" + DayOfMonth = 5 + Interval = 3 + } + Range = @{ + Type = "noEnd" + StartDate = "2020-05-04T00:00:00.000Z" + } + } + DefaultDecisionEnabled = $true + DefaultDecision = "Deny" + AutoApplyDecisionsEnabled = $true + } +} +New-MgIdentityGovernanceAccessReviewDefinition -BodyParameter $params +``` +This example shows how to use the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Test create" + DescriptionForAdmins = "New scheduled access review" + DescriptionForReviewers = "If you have any questions, contact jerry@contoso.com" + Scope = @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + Query = "/groups/02f3bafb-448c-487c-88c2-5fd65ce49a41/transitiveMembers" + QueryType = "MicrosoftGraph" + } + Reviewers = @( + @{ + Query = "/users/398164b1-5196-49dd-ada2-364b49f99b27" + QueryType = "MicrosoftGraph" + } + ) + Settings = @{ + MailNotificationsEnabled = $true + ReminderNotificationsEnabled = $true + JustificationRequiredOnApproval = $true + DefaultDecisionEnabled = $false + DefaultDecision = "None" + InstanceDurationInDays = 1 + RecommendationsEnabled = $true + Recurrence = @{ + Pattern = @{ + Type = "weekly" + Interval = 1 + } + Range = @{ + Type = "noEnd" + StartDate = "2020-09-08T12:02:30.667Z" + } + } + } +} +New-MgIdentityGovernanceAccessReviewDefinition -BodyParameter $params +``` +This example shows how to use the New-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgIdentityGovernanceAccessReviewHistoryDefinition.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgIdentityGovernanceAccessReviewHistoryDefinition.md index 093355d11d5..6b8e7b80cd2 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgIdentityGovernanceAccessReviewHistoryDefinition.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgIdentityGovernanceAccessReviewHistoryDefinition.md @@ -1,18 +1,45 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Last quarter's group reviews April 2021" + Decisions = @( + "approve" + "deny" + "dontKnow" + "notReviewed" + "notNotified" + ) + ScheduleSettings = @{ + ReportRange = "P1M" + Recurrence = @{ + Pattern = @{ + Type = "monthly" + Interval = 1 + } + Range = @{ + Type = "noEnd" + StartDate = "2018-08-03T21:02:30.667Z" + Count = + } + } + } + Scopes = @( + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + QueryType = "MicrosoftGraph" + Query = "/identityGovernance/accessReviews/definitions?$filter=contains(scope/query, 'accessPackageAssignments')" + QueryRoot = $null + } + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + QueryType = "MicrosoftGraph" + Query = "/identityGovernance/accessReviews/definitions?$filter=contains(scope/query, '/groups')" + QueryRoot = $null + } + ) +} +New-MgIdentityGovernanceAccessReviewHistoryDefinition -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityGovernanceAccessReviewHistoryDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri.md index 093355d11d5..b7d0811595d 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +New-MgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri -AccessReviewHistoryDefinitionId $accessReviewHistoryDefinitionId -AccessReviewHistoryInstanceId $accessReviewHistoryInstanceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgIdentityGovernanceTermOfUseAgreement.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgIdentityGovernanceTermOfUseAgreement.md index 093355d11d5..65515ad10fb 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgIdentityGovernanceTermOfUseAgreement.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/New-MgIdentityGovernanceTermOfUseAgreement.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityGovernanceTermOfUseAgreement Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Contoso ToU for guest users" + IsViewingBeforeAcceptanceRequired = $true + Files = @( + @{ + FileName = "TOU.pdf" + Language = "en" + IsDefault = $true + FileData = @{ + Data = [System.Text.Encoding]::ASCII.GetBytes("SGVsbG8gd29ybGQ=//truncated-binary") + } + } + ) +} +New-MgIdentityGovernanceTermOfUseAgreement -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityGovernanceTermOfUseAgreement Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementAccessPackage.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementAccessPackage.md index 093355d11d5..42fb5c27863 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementAccessPackage.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementAccessPackage.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEntitlementManagementAccessPackage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgEntitlementManagementAccessPackage -AccessPackageId $accessPackageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEntitlementManagementAccessPackage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementAssignmentPolicy.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementAssignmentPolicy.md index 093355d11d5..2562cccae98 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementAssignmentPolicy.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementAssignmentPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEntitlementManagementAssignmentPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgEntitlementManagementAssignmentPolicy -AccessPackageAssignmentPolicyId $accessPackageAssignmentPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEntitlementManagementAssignmentPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementAssignmentRequest.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementAssignmentRequest.md index 093355d11d5..ca01cdfc165 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementAssignmentRequest.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementAssignmentRequest.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEntitlementManagementAssignmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgEntitlementManagementAssignmentRequest -AccessPackageAssignmentRequestId $accessPackageAssignmentRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEntitlementManagementAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementCatalog.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementCatalog.md index 093355d11d5..f615ed0a665 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementCatalog.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementCatalog.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEntitlementManagementCatalog Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgEntitlementManagementCatalog -AccessPackageCatalogId $accessPackageCatalogId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEntitlementManagementCatalog Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementConnectedOrganization.md index 093355d11d5..feca4fdd7af 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementConnectedOrganization.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEntitlementManagementConnectedOrganization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEntitlementManagementConnectedOrganization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md index 093355d11d5..b42d7c7f4d3 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEntitlementManagementConnectedOrganizationExternalSponsorByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md index 093355d11d5..33e8ec27a51 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef -ConnectedOrganizationId $connectedOrganizationId -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgEntitlementManagementConnectedOrganizationInternalSponsorByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgIdentityGovernanceAccessReviewDefinition.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgIdentityGovernanceAccessReviewDefinition.md index 093355d11d5..6cbaec7fc58 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgIdentityGovernanceAccessReviewDefinition.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgIdentityGovernanceAccessReviewDefinition.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityGovernanceAccessReviewDefinition Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgIdentityGovernanceAccessReviewDefinition -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityGovernanceAccessReviewDefinition Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgIdentityGovernanceTermOfUseAgreement.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgIdentityGovernanceTermOfUseAgreement.md index 093355d11d5..144a7eca0b4 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgIdentityGovernanceTermOfUseAgreement.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Remove-MgIdentityGovernanceTermOfUseAgreement.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityGovernanceTermOfUseAgreement Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Remove-MgIdentityGovernanceTermOfUseAgreement -AgreementId $agreementId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityGovernanceTermOfUseAgreement Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Reset-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Reset-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md index 093355d11d5..3ef62cfef24 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Reset-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Reset-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Reset-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Reset-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Reset-MgIdentityGovernanceAccessReviewDefinitionInstanceDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Send-MgIdentityGovernanceAccessReviewDefinitionInstanceReminder.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Send-MgIdentityGovernanceAccessReviewDefinitionInstanceReminder.md index 093355d11d5..7ba2e3c82ec 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Send-MgIdentityGovernanceAccessReviewDefinitionInstanceReminder.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Send-MgIdentityGovernanceAccessReviewDefinitionInstanceReminder.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Send-MgIdentityGovernanceAccessReviewDefinitionInstanceReminder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Send-MgIdentityGovernanceAccessReviewDefinitionInstanceReminder -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Send-MgIdentityGovernanceAccessReviewDefinitionInstanceReminder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Stop-MgEntitlementManagementAssignmentRequest.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Stop-MgEntitlementManagementAssignmentRequest.md index 093355d11d5..b3f91a04dd4 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Stop-MgEntitlementManagementAssignmentRequest.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Stop-MgEntitlementManagementAssignmentRequest.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgEntitlementManagementAssignmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Stop-MgEntitlementManagementAssignmentRequest -AccessPackageAssignmentRequestId $accessPackageAssignmentRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgEntitlementManagementAssignmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Stop-MgIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Stop-MgIdentityGovernanceAccessReviewDefinitionInstance.md index 093355d11d5..8609e140da7 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Stop-MgIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Stop-MgIdentityGovernanceAccessReviewDefinitionInstance.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Stop-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Stop-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Stop-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md index 093355d11d5..61dca690e09 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Stop-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Stop-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +Stop-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgEntitlementManagementAccessPackage.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgEntitlementManagementAccessPackage.md index 093355d11d5..dde105e5dba 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgEntitlementManagementAccessPackage.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgEntitlementManagementAccessPackage.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEntitlementManagementAccessPackage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Access Package New Name" +} +Update-MgEntitlementManagementAccessPackage -AccessPackageId $accessPackageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEntitlementManagementAccessPackage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgEntitlementManagementCatalog.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgEntitlementManagementCatalog.md index 093355d11d5..acf610fb403 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgEntitlementManagementCatalog.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgEntitlementManagementCatalog.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEntitlementManagementCatalog Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Catalog One" +} +Update-MgEntitlementManagementCatalog -AccessPackageCatalogId $accessPackageCatalogId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEntitlementManagementCatalog Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgEntitlementManagementConnectedOrganization.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgEntitlementManagementConnectedOrganization.md index 093355d11d5..3ece92d710d 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgEntitlementManagementConnectedOrganization.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgEntitlementManagementConnectedOrganization.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEntitlementManagementConnectedOrganization Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "Connected organization new name" + Description = "Connected organization new description" + State = "configured" +} +Update-MgEntitlementManagementConnectedOrganization -ConnectedOrganizationId $connectedOrganizationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEntitlementManagementConnectedOrganization Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgEntitlementManagementSetting.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgEntitlementManagementSetting.md index 093355d11d5..ad9d0ca1b55 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgEntitlementManagementSetting.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgEntitlementManagementSetting.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgEntitlementManagementSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + ExternalUserLifecycleAction = "None" +} +Update-MgEntitlementManagementSetting -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgEntitlementManagementSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md index 093355d11d5..418a6ea2988 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgIdentityGovernanceAccessReviewDefinitionInstance.md @@ -1,18 +1,47 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + Scope = @{ + "@odata.type" = "#microsoft.graph.principalResourceMembershipsScope" + PrincipalScopes = @( + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + Query = "/v1.0/users" + QueryType = "MicrosoftGraph" + } + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + Query = "/v1.0/groups" + QueryType = "MicrosoftGraph" + } + ) + ResourceScopes = @( + @{ + "@odata.type" = "#microsoft.graph.accessReviewQueryScope" + Query = "/beta/roleManagement/directory/roleDefinitions/9b895d92-2cd3-44c7-9d02-a6ac2d5ea5c3" + QueryType = "MicrosoftGraph" + } + ) + } + Reviewers = @( + @{ + Query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + QueryType = "MicrosoftGraph" + } + ) + FallbackReviewers = @( + @{ + Query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" + QueryType = "MicrosoftGraph" + } + @{ + Query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + QueryType = "MicrosoftGraph" + } + ) +} +Update-MgIdentityGovernanceAccessReviewDefinitionInstance -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstance Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md index 093355d11d5..c8074176ebd 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + "@odata.type" = "#microsoft.graph.accessReviewStage" + Reviewers = @( + @{ + Query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + QueryType = "MicrosoftGraph" + } + ) + FallbackReviewers = @( + @{ + Query = "/users/4562bcc8-c436-4f95-b7c0-4f8ce89dca5e" + QueryType = "MicrosoftGraph" + } + @{ + Query = "/users/1ed8ac56-4827-4733-8f80-86adc2e67db5" + QueryType = "MicrosoftGraph" + } + ) +} +Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md index 093355d11d5..b4985a58038 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.md @@ -1,18 +1,33 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + Decision = "Approve" + Justification = "This person is still on my team" +} +Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + Decision = "Approve" + Justification = "This person is still on my team" +} +Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + Decision = "Approve" + Justification = "This person is still on my team" +} +Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -AccessReviewInstanceId $accessReviewInstanceId -AccessReviewStageId $accessReviewStageId -AccessReviewInstanceDecisionItemId $accessReviewInstanceDecisionItemId -BodyParameter $params +``` +This example shows how to use the Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgIdentityGovernanceTermOfUseAgreement.md b/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgIdentityGovernanceTermOfUseAgreement.md index 093355d11d5..26ef56ffc80 100644 --- a/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgIdentityGovernanceTermOfUseAgreement.md +++ b/src/Identity.Governance/Identity.Governance/examples/v1.0/Update-MgIdentityGovernanceTermOfUseAgreement.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityGovernanceTermOfUseAgreement Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.Governance +$params = @{ + DisplayName = "All Contoso volunteers - Terms of use" + IsViewingBeforeAcceptanceRequired = $true +} +Update-MgIdentityGovernanceTermOfUseAgreement -AgreementId $agreementId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityGovernanceTermOfUseAgreement Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Confirm-MgRiskyUserCompromised.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Confirm-MgRiskyUserCompromised.md index 093355d11d5..d7e4481bb1a 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Confirm-MgRiskyUserCompromised.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Confirm-MgRiskyUserCompromised.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Confirm-MgRiskyUserCompromised Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + UserIds = @( + "29f270bb-4d23-4f68-8a57-dc73dc0d4caf" + "20f91ec9-d140-4d90-9cd9-f618587a1471" + ) +} +Confirm-MgRiskyUserCompromised -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Confirm-MgRiskyUserCompromised Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgDataPolicyOperation.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgDataPolicyOperation.md index 093355d11d5..af06a44cfe9 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgDataPolicyOperation.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgDataPolicyOperation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgDataPolicyOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgDataPolicyOperation -DataPolicyOperationId $dataPolicyOperationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgDataPolicyOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityApiConnector.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityApiConnector.md index 093355d11d5..471582843c2 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityApiConnector.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityApiConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityApiConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityApiConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityApiConnector ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityApiConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlow.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlow.md index 093355d11d5..f080a277fb2 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlow.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlow.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2XUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlow -B2xIdentityUserFlowId $b2xIdentityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityB2XUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityB2XUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlow -ExpandProperty "identityProviders" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2XUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityB2XUserFlow Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlow +``` +This example shows how to use the Get-MgIdentityB2XUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowIdentityProvider.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowIdentityProvider.md index 093355d11d5..4f2ad8123cc 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowIdentityProvider.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowIdentityProvider.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2XUserFlowIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlowIdentityProvider -B2xIdentityUserFlowId $b2xIdentityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2XUserFlowIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowLanguage.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowLanguage.md index 093355d11d5..79d1e1e8e9d 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowLanguage.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowLanguage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2XUserFlowLanguage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlowLanguage -B2xIdentityUserFlowId $b2xIdentityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityB2XUserFlowLanguage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityB2XUserFlowLanguage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlowLanguage -B2xIdentityUserFlowId $b2xIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2XUserFlowLanguage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowLanguageDefaultPageContent.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowLanguageDefaultPageContent.md index 093355d11d5..f64be2d250b 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowLanguageDefaultPageContent.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowLanguageDefaultPageContent.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2XUserFlowLanguageDefaultPageContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlowLanguageDefaultPageContent -B2xIdentityUserFlowId $b2xIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId -UserFlowLanguagePageId $userFlowLanguagePageId -OutFile $outFileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2XUserFlowLanguageDefaultPageContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowLanguageOverridePage.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowLanguageOverridePage.md index 093355d11d5..c8e6cdc6b99 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowLanguageOverridePage.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowLanguageOverridePage.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2XUserFlowLanguageOverridePage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlowLanguageOverridePage -B2xIdentityUserFlowId $b2xIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2XUserFlowLanguageOverridePage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md index 093355d11d5..3b32c80bb11 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -ExpandProperty "userAttribute" +``` +This example shows how to use the Get-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -ExpandProperty "userAttribute" +``` +This example shows how to use the Get-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowUserAttributeAssignmentOrder.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowUserAttributeAssignmentOrder.md index 093355d11d5..1d35fcc444c 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowUserAttributeAssignmentOrder.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityB2XUserFlowUserAttributeAssignmentOrder.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityB2XUserFlowUserAttributeAssignmentOrder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityB2XUserFlowUserAttributeAssignmentOrder -B2xIdentityUserFlowId $b2xIdentityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityB2XUserFlowUserAttributeAssignmentOrder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityProvider.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityProvider.md index 093355d11d5..01b5b539c20 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityProvider.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityProvider.md @@ -1,18 +1,56 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider -IdentityProviderId $identityProviderId +``` +This example shows how to use the Get-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider +``` +This example shows how to use the Get-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider +``` +This example shows how to use the Get-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider -OutFile $outFileId +``` +This example shows how to use the Get-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the Get-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId +``` +This example shows how to use the Get-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 8: Using the Get-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityProvider +``` +This example shows how to use the Get-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityUserFlowAttribute.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityUserFlowAttribute.md index 093355d11d5..559459b4d9a 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgIdentityUserFlowAttribute.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgIdentityUserFlowAttribute Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgIdentityUserFlowAttribute Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgIdentityUserFlowAttribute Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgIdentityUserFlowAttribute ``` - -{{ Add description here }} - +This example shows how to use the Get-MgIdentityUserFlowAttribute Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgInformationProtectionBitlockerRecoveryKey.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgInformationProtectionBitlockerRecoveryKey.md index 093355d11d5..3625ef23dfe 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgInformationProtectionBitlockerRecoveryKey.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgInformationProtectionBitlockerRecoveryKey.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionBitlockerRecoveryKey -BitlockerRecoveryKeyId $bitlockerRecoveryKeyId -Property "key" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionBitlockerRecoveryKey -BitlockerRecoveryKeyId $bitlockerRecoveryKeyId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionBitlockerRecoveryKey -Filter "deviceId eq '1ab40ab2-32a8-4b00-b6b5-ba724e407de9'" +``` +This example shows how to use the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionBitlockerRecoveryKey +``` +This example shows how to use the Get-MgInformationProtectionBitlockerRecoveryKey Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgInformationProtectionThreatAssessmentRequest.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgInformationProtectionThreatAssessmentRequest.md index 093355d11d5..28ea7eda368 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgInformationProtectionThreatAssessmentRequest.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgInformationProtectionThreatAssessmentRequest.md @@ -1,18 +1,42 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId +``` +This example shows how to use the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId -ExpandProperty "results" +``` +This example shows how to use the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionThreatAssessmentRequest +``` +This example shows how to use the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgInformationProtectionThreatAssessmentRequest -ThreatAssessmentRequestId $threatAssessmentRequestId +``` +This example shows how to use the Get-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgOauth2PermissionGrant.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgOauth2PermissionGrant.md index 093355d11d5..6886116e856 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgOauth2PermissionGrant.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgOauth2PermissionGrant.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOauth2PermissionGrant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgOauth2PermissionGrant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgOauth2PermissionGrant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgOauth2PermissionGrant ``` - -{{ Add description here }} - +This example shows how to use the Get-MgOauth2PermissionGrant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgOauth2PermissionGrantDelta.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgOauth2PermissionGrantDelta.md index 093355d11d5..51ba17a10be 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgOauth2PermissionGrantDelta.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgOauth2PermissionGrantDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOauth2PermissionGrantDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgOauth2PermissionGrantDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgOauth2PermissionGrantDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgOrganizationCertificateBasedAuthConfiguration.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgOrganizationCertificateBasedAuthConfiguration.md index 093355d11d5..62dba8d8694 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgOrganizationCertificateBasedAuthConfiguration.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgOrganizationCertificateBasedAuthConfiguration.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgOrganizationCertificateBasedAuthConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgOrganizationCertificateBasedAuthConfiguration -OrganizationId $organizationId -CertificateBasedAuthConfigurationId $certificateBasedAuthConfigurationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgOrganizationCertificateBasedAuthConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgOrganizationCertificateBasedAuthConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgOrganizationCertificateBasedAuthConfiguration -OrganizationId $organizationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgOrganizationCertificateBasedAuthConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyActivityBasedTimeoutPolicy.md index 093355d11d5..c81eb394fd0 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyActivityBasedTimeoutPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyActivityBasedTimeoutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyActivityBasedTimeoutPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyActivityBasedTimeoutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyActivityBasedTimeoutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyActivityBasedTimeoutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyAdminConsentRequestPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyAdminConsentRequestPolicy.md index 093355d11d5..ee06d4621b7 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyAdminConsentRequestPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyAdminConsentRequestPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyAdminConsentRequestPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAdminConsentRequestPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyAdminConsentRequestPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyAuthenticationFlowPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyAuthenticationFlowPolicy.md index 093355d11d5..a13c86a1e80 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyAuthenticationFlowPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyAuthenticationFlowPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyAuthenticationFlowPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAuthenticationFlowPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyAuthenticationFlowPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyAuthenticationMethodPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyAuthenticationMethodPolicy.md index 093355d11d5..75477a41d29 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyAuthenticationMethodPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyAuthenticationMethodPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAuthenticationMethodPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyAuthenticationMethodPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md index 093355d11d5..6fac0127bc1 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId +``` +This example shows how to use the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId +``` +This example shows how to use the Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyClaimMappingPolicy.md index 093355d11d5..c08a9fbb2da 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyClaimMappingPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyClaimMappingPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyClaimMappingPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyClaimMappingPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyClaimMappingPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyClaimMappingPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyCrossTenantAccessPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyCrossTenantAccessPolicy.md index 093355d11d5..1652fc09ccd 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyCrossTenantAccessPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyCrossTenantAccessPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyCrossTenantAccessPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyCrossTenantAccessPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyCrossTenantAccessPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyCrossTenantAccessPolicyDefault.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyCrossTenantAccessPolicyDefault.md index 093355d11d5..7ae532c239b 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyCrossTenantAccessPolicyDefault.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyCrossTenantAccessPolicyDefault.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyCrossTenantAccessPolicyDefault Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyCrossTenantAccessPolicyDefault ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyCrossTenantAccessPolicyDefault Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyCrossTenantAccessPolicyPartner.md index 093355d11d5..33ae6aa3f98 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyCrossTenantAccessPolicyPartner Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyCrossTenantAccessPolicyPartner Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyCrossTenantAccessPolicyPartner ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyFeatureRolloutPolicy.md index 093355d11d5..409f7518584 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyFeatureRolloutPolicy.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyFeatureRolloutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyFeatureRolloutPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyFeatureRolloutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyFeatureRolloutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -ExpandProperty "appliesTo" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyFeatureRolloutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgPolicyFeatureRolloutPolicy Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId +``` +This example shows how to use the Get-MgPolicyFeatureRolloutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyHomeRealmDiscoveryPolicy.md index 093355d11d5..f111110a7fd 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyHomeRealmDiscoveryPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyHomeRealmDiscoveryPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyHomeRealmDiscoveryPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyHomeRealmDiscoveryPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyHomeRealmDiscoveryPolicy -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md index 093355d11d5..d99fd54d041 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyPermissionGrantPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyPermissionGrantPolicy.md index 47d4f358d03..551e1c617ae 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyPermissionGrantPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyPermissionGrantPolicy.md @@ -44,3 +44,4 @@ AdditionalProperties : {[@odata.context, https://graph.microsoft.com/beta/$metad ``` This command retrieves a specified permission grant policy in Azure AD. + diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyPermissionGrantPolicyInclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyPermissionGrantPolicyInclude.md index 67d4881f36d..52e6f0c7986 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyPermissionGrantPolicyInclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyPermissionGrantPolicyInclude.md @@ -18,3 +18,4 @@ AdditionalProperties : {[scopeSensitivityLabels, System.C ``` This command retrieves a specified permission grant policy include configuration in Azure AD. + diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyRoleManagementPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyRoleManagementPolicy.md index 093355d11d5..d35fb00f8eb 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyRoleManagementPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyRoleManagementPolicy.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyRoleManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyRoleManagementPolicy -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -ExpandProperty "effectiveRules,rules" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyRoleManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyRoleManagementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyRoleManagementPolicy -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyRoleManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgPolicyRoleManagementPolicy Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyRoleManagementPolicy -Filter "scopeId eq '/' and scopeType eq 'Directory'" -ExpandProperty "rules" +``` +This example shows how to use the Get-MgPolicyRoleManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgPolicyRoleManagementPolicy Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyRoleManagementPolicy -Filter "scopeId eq '/' and scopeType eq 'DirectoryRole'" +``` +This example shows how to use the Get-MgPolicyRoleManagementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyRoleManagementPolicyAssignment.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyRoleManagementPolicyAssignment.md index 093355d11d5..2c119732c9e 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyRoleManagementPolicyAssignment.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyRoleManagementPolicyAssignment.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyRoleManagementPolicyAssignment -UnifiedRoleManagementPolicyAssignmentId $unifiedRoleManagementPolicyAssignmentId -ExpandProperty "policy(`$expand=rules)" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyRoleManagementPolicyAssignment -UnifiedRoleManagementPolicyAssignmentId $unifiedRoleManagementPolicyAssignmentId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyRoleManagementPolicyAssignment -Filter "scopeId eq '/' and scopeType eq 'DirectoryRole' and roleDefinitionId eq '62e90394-69f5-4237-9190-012177145e10'" -ExpandProperty "policy(`$expand=rules)" +``` +This example shows how to use the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyRoleManagementPolicyAssignment -Filter "scopeId eq '/' and scopeType eq 'Directory'" +``` +This example shows how to use the Get-MgPolicyRoleManagementPolicyAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyRoleManagementPolicyRule.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyRoleManagementPolicyRule.md index 093355d11d5..74a8a80cffd 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyRoleManagementPolicyRule.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyRoleManagementPolicyRule.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyRoleManagementPolicyRule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyRoleManagementPolicyRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyRoleManagementPolicyRule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyRoleManagementPolicyRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyTokenIssuancePolicy.md index 093355d11d5..db347e52326 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyTokenIssuancePolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyTokenIssuancePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyTokenIssuancePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyTokenIssuancePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyTokenIssuancePolicy ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyTokenIssuancePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyTokenLifetimePolicy.md index 093355d11d5..b0732911a74 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyTokenLifetimePolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPolicyTokenLifetimePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyTokenLifetimePolicy ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPolicyTokenLifetimePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPolicyTokenLifetimePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPolicyTokenLifetimePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgRiskDetection.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgRiskDetection.md index 093355d11d5..c02e2543740 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgRiskDetection.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgRiskDetection.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRiskDetection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgRiskDetection -RiskDetectionId $riskDetectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRiskDetection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRiskDetection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgRiskDetection ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRiskDetection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgRiskyUser.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgRiskyUser.md index 093355d11d5..e5e581c00d7 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgRiskyUser.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgRiskyUser.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRiskyUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgRiskyUser -RiskyUserId $riskyUserId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRiskyUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRiskyUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgRiskyUser ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRiskyUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgRiskyUserHistory.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgRiskyUserHistory.md index 093355d11d5..5ed6797c62b 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgRiskyUserHistory.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgRiskyUserHistory.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgRiskyUserHistory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgRiskyUserHistory -RiskyUserId $riskyUserId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgRiskyUserHistory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgRiskyUserHistory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgRiskyUserHistory -RiskyUserId $riskyUserId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgRiskyUserHistory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationEmailMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationEmailMethod.md index 093355d11d5..c6ce2c9abbe 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationEmailMethod.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationEmailMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserAuthenticationEmailMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserAuthenticationEmailMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationEmailMethod -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationEmailMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationFido2Method.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationFido2Method.md index 093355d11d5..03c43f7beb5 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationFido2Method.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationFido2Method.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationFido2Method Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationFido2Method -UserId $userId -Fido2AuthenticationMethodId $fido2AuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationFido2Method Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationMicrosoftAuthenticatorMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationMicrosoftAuthenticatorMethod.md index 093355d11d5..decbc7b38a5 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationMicrosoftAuthenticatorMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationMicrosoftAuthenticatorMethod.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgUserAuthenticationMicrosoftAuthenticatorMethod -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationOperation.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationOperation.md index 093355d11d5..be39c89e922 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationOperation.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationOperation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgUserAuthenticationOperation -UserId $userId -LongRunningOperationId $longRunningOperationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationPasswordMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationPasswordMethod.md index 093355d11d5..cefc8bfa00f 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationPasswordMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationPasswordMethod.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationPasswordMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationPasswordMethod -UserId $userId -PasswordAuthenticationMethodId $passwordAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserAuthenticationPasswordMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserAuthenticationPasswordMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationPasswordMethod -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationPasswordMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationPhoneMethod.md index 093355d11d5..2bc9fa82043 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationPhoneMethod.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationPhoneMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserAuthenticationPhoneMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserAuthenticationPhoneMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationPhoneMethod -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationPhoneMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationSoftwareOathMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationSoftwareOathMethod.md index 093355d11d5..bd08915fec1 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationSoftwareOathMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationSoftwareOathMethod.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationSoftwareOathMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationSoftwareOathMethod -UserId $userId -SoftwareOathAuthenticationMethodId $softwareOathAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserAuthenticationSoftwareOathMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserAuthenticationSoftwareOathMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Get-MgUserAuthenticationSoftwareOathMethod -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationSoftwareOathMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationTemporaryAccessPassMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationTemporaryAccessPassMethod.md index 093355d11d5..7ffe8feb4e0 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationTemporaryAccessPassMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationTemporaryAccessPassMethod.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId -TemporaryAccessPassAuthenticationMethodId $temporaryAccessPassAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationWindowHelloForBusinessMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationWindowHelloForBusinessMethod.md index 093355d11d5..6ec810677a5 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationWindowHelloForBusinessMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgUserAuthenticationWindowHelloForBusinessMethod.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserAuthenticationWindowHelloForBusinessMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgUserAuthenticationWindowHelloForBusinessMethod -UserId $userId -WindowsHelloForBusinessAuthenticationMethodId $windowsHelloForBusinessAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserAuthenticationWindowHelloForBusinessMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserAuthenticationWindowHelloForBusinessMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Get-MgUserAuthenticationWindowHelloForBusinessMethod -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserAuthenticationWindowHelloForBusinessMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Invoke-MgAvailableIdentityProviderType.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Invoke-MgAvailableIdentityProviderType.md index 093355d11d5..6360c5ceb24 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Invoke-MgAvailableIdentityProviderType.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Invoke-MgAvailableIdentityProviderType.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgAvailableIdentityProviderType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Invoke-MgAvailableIdentityProviderType ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Invoke-MgAvailableIdentityProviderType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Invoke-MgAvailableIdentityProviderType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Invoke-MgAvailableIdentityProviderType ``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgAvailableIdentityProviderType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Invoke-MgAvailableIdentityProviderType Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Invoke-MgAvailableIdentityProviderType -OutFile $outFileId +``` +This example shows how to use the Invoke-MgAvailableIdentityProviderType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Invoke-MgDismissRiskyUser.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Invoke-MgDismissRiskyUser.md index 093355d11d5..16bbe303c32 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Invoke-MgDismissRiskyUser.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Invoke-MgDismissRiskyUser.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgDismissRiskyUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + UserIds = @( + "04487ee0-f4f6-4e7f-8999-facc5a30e232" + "13387ee0-f4f6-4e7f-8999-facc5120e345" + ) +} +Invoke-MgDismissRiskyUser -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgDismissRiskyUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Invoke-MgUploadIdentityApiConnectorClientCertificate.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Invoke-MgUploadIdentityApiConnectorClientCertificate.md index 093355d11d5..80281cb67fb 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Invoke-MgUploadIdentityApiConnectorClientCertificate.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Invoke-MgUploadIdentityApiConnectorClientCertificate.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgUploadIdentityApiConnectorClientCertificate Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" + Password = "" +} +Invoke-MgUploadIdentityApiConnectorClientCertificate -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgUploadIdentityApiConnectorClientCertificate Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityApiConnector.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityApiConnector.md index 093355d11d5..5fc7a59036d 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityApiConnector.md @@ -1,18 +1,48 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityApiConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + DisplayName = "Test API" + TargetUrl = "https://someapi.com/api" + AuthenticationConfiguration = @{ + "@odata.type" = "#microsoft.graph.basicAuthentication" + Username = "MyUsername" + Password = "MyPassword" + } +} +New-MgIdentityApiConnector -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgIdentityApiConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgIdentityApiConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + DisplayName = "Test API" + TargetUrl = "https://someotherapi.com/api" + AuthenticationConfiguration = @{ + "@odata.type" = "#microsoft.graph.pkcs12Certificate" + Pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" + Password = "CertificatePassword" + } +} +New-MgIdentityApiConnector -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityApiConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgIdentityApiConnector Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + DisplayName = "Test API" + TargetUrl = "https://someotherapi.com/api" + AuthenticationConfiguration = @{ + "@odata.type" = "#microsoft.graph.pkcs12Certificate" + Pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" + Password = "CertificatePassword" + } +} +New-MgIdentityApiConnector -BodyParameter $params +``` +This example shows how to use the New-MgIdentityApiConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityB2XUserFlow.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityB2XUserFlow.md index 093355d11d5..512cd6e7c15 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityB2XUserFlow.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityB2XUserFlow.md @@ -1,18 +1,51 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityB2XUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Id = "UserFlowWithAPIConnector" + UserFlowType = "signUpOrSignIn" + UserFlowTypeVersion = 1 + ApiConnectorConfiguration = @{ + PostFederationSignup = @{ + "@odata.id" = "https://graph.microsoft.com/v1/identity/apiConnectors/{id}" + } + PostAttributeCollection = @{ + "@odata.id" = "https://graph.microsoft.com/v1/identity/apiConnectors/{id}" + } + } +} +New-MgIdentityB2XUserFlow -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgIdentityB2XUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgIdentityB2XUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Id = "Partner" + UserFlowType = "signUpOrSignIn" + UserFlowTypeVersion = 1 + IdentityProviders = @( + @{ + Id = "Facebook-OAuth" + Type = "Facebook" + Name = "Facebook" + } + ) +} +New-MgIdentityB2XUserFlow -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityB2XUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgIdentityB2XUserFlow Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Id = "Partner" + UserFlowType = "signUpOrSignIn" + UserFlowTypeVersion = 1 +} +New-MgIdentityB2XUserFlow -BodyParameter $params +``` +This example shows how to use the New-MgIdentityB2XUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityB2XUserFlowUserAttributeAssignment.md index 093355d11d5..aca99cdf086 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + IsOptional = $false + RequiresVerification = $false + UserInputType = "TextBox" + DisplayName = "Shoe size" + UserAttributeValues = @( + ) + UserAttribute = @{ + Id = "extension_guid_shoeSize" + } +} +New-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityProvider.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityProvider.md index 093355d11d5..71d8706ad99 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityProvider.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityProvider.md @@ -1,18 +1,29 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "microsoft.graph.appleManagedIdentityProvider" + DisplayName = "Sign in with Apple" + DeveloperId = "UBF8T346G9" + ServiceId = "com.microsoft.rts.b2c.test.client" + KeyId = "99P6D879C4" + CertificateData = "******" +} +New-MgIdentityProvider -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "microsoft.graph.socialIdentityProvider" + DisplayName = "Login with Amazon" + IdentityProviderType = "Amazon" + ClientId = "56433757-cadd-4135-8431-2c9e3fd68ae8" + ClientSecret = "000000000000" +} +New-MgIdentityProvider -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityUserFlowAttribute.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityUserFlowAttribute.md index 093355d11d5..e296bf1fa7f 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgIdentityUserFlowAttribute.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgIdentityUserFlowAttribute Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + DisplayName = "Hobby" + Description = "Your hobby" + DataType = "string" +} +New-MgIdentityUserFlowAttribute -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgIdentityUserFlowAttribute Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgInformationProtectionThreatAssessmentRequest.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgInformationProtectionThreatAssessmentRequest.md index 093355d11d5..5f84e79e607 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgInformationProtectionThreatAssessmentRequest.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgInformationProtectionThreatAssessmentRequest.md @@ -1,18 +1,55 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgInformationProtectionThreatAssessmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.emailFileAssessmentRequest" + RecipientEmail = "tifc@a830edad9050849EQTPWBJZXODQ.onmicrosoft.com" + ExpectedAssessment = "block" + Category = "malware" + ContentData = "UmVjZWl2ZWQ6IGZyb20gTVcyUFIwME1CMDMxNC5uYW1wcmQwMC....." +} +New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgInformationProtectionThreatAssessmentRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.fileAssessmentRequest" + ExpectedAssessment = "block" + Category = "malware" + FileName = "test.txt" + ContentData = "VGhpcyBpcyBhIHRlc3QgZmlsZQ==" +} +New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgInformationProtectionThreatAssessmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.mailAssessmentRequest" + RecipientEmail = "tifc@a830edad9050849EQTPWBJZXODQ.onmicrosoft.com" + ExpectedAssessment = "block" + Category = "spam" + MessageUri = "https://graph.microsoft.com/v1.0/users/c52ce8db-3e4b-4181-93c4-7d6b6bffaf60/messages/AAMkADU3MWUxOTU0LWNlOTEt=" +} +New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgInformationProtectionThreatAssessmentRequest Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.urlAssessmentRequest" + Url = "http://test.com" + ExpectedAssessment = "block" + Category = "phishing" +} +New-MgInformationProtectionThreatAssessmentRequest -BodyParameter $params +``` +This example shows how to use the New-MgInformationProtectionThreatAssessmentRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgOauth2PermissionGrant.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgOauth2PermissionGrant.md index 093355d11d5..e1d8039ddaa 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgOauth2PermissionGrant.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgOauth2PermissionGrant.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgOauth2PermissionGrant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + ClientId = "ef969797-201d-4f6b-960c-e9ed5f31dab5" + ConsentType = "AllPrincipals" + ResourceId = "943603e4-e787-4fe9-93d1-e30f749aae39" + Scope = "DelegatedPermissionGrant.ReadWrite.All" +} +New-MgOauth2PermissionGrant -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgOauth2PermissionGrant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyActivityBasedTimeoutPolicy.md index 093355d11d5..004e0922584 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyActivityBasedTimeoutPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPolicyActivityBasedTimeoutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Definition = @( + "definition-value" + ) + DisplayName = "displayName-value" + IsOrganizationDefault = $true +} +New-MgPolicyActivityBasedTimeoutPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPolicyActivityBasedTimeoutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyClaimMappingPolicy.md index 093355d11d5..02afa593e74 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyClaimMappingPolicy.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPolicyClaimMappingPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Definition = @( + "{"ClaimsMappingPolicy":{"Version":1,"IncludeBasicClaimSet":"true","ClaimsSchema": [{"Source":"user","ID":"userprincipalname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier"},{"Source":"user","ID":"givenname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname"},{"Source":"user","ID":"displayname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},{"Source":"user","ID":"surname","SamlClaimType":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname"},{"Source":"user","ID":"userprincipalname","SamlClaimType":"username"}],"ClaimsTransformation":[{"ID":"CreateTermsOfService","TransformationMethod":"CreateStringClaim","InputParameters": [{"ID":"value","DataType":"string", "Value":"sandbox"}],"OutputClaims":[{"ClaimTypeReferenceId":"TOS","TransformationClaimType":"createdClaim"}]}]}}" + ) + DisplayName = "Test1234" +} +New-MgPolicyClaimMappingPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPolicyClaimMappingPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyCrossTenantAccessPolicyPartner.md index 093355d11d5..08248d42e4e 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,18 +1,32 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPolicyCrossTenantAccessPolicyPartner Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + TenantId = "3d0f5dec-5d3d-455c-8016-e2af1ae4d31a" + B2bDirectConnectOutbound = @{ + UsersAndGroups = @{ + AccessType = "blocked" + Targets = @( + @{ + Target = "6f546279-4da5-4b53-a095-09ea0cef9971" + TargetType = "group" + } + ) + } + } + B2bDirectConnectInbound = @{ + Applications = @{ + AccessType = "allowed" + Targets = @( + @{ + Target = "Office365" + TargetType = "application" + } + ) + } + } +} +New-MgPolicyCrossTenantAccessPolicyPartner -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyFeatureRolloutPolicy.md index 093355d11d5..373de32eaff 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyFeatureRolloutPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPolicyFeatureRolloutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + DisplayName = "PassthroughAuthentication rollout policy" + Description = "PassthroughAuthentication rollout policy" + Feature = "passthroughAuthentication" + IsEnabled = $true + IsAppliedToOrganization = $false +} +New-MgPolicyFeatureRolloutPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPolicyFeatureRolloutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyFeatureRolloutPolicyApplyToByRef.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyFeatureRolloutPolicyApplyToByRef.md index 093355d11d5..76772151534 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyFeatureRolloutPolicyApplyToByRef.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyFeatureRolloutPolicyApplyToByRef.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPolicyFeatureRolloutPolicyApplyToByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/2441b489-4f12-4882-b039-8f6006bd66da" +} +New-MgPolicyFeatureRolloutPolicyApplyToByRef -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPolicyFeatureRolloutPolicyApplyToByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyHomeRealmDiscoveryPolicy.md index 093355d11d5..e1b04fb9256 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyHomeRealmDiscoveryPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPolicyHomeRealmDiscoveryPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Definition = @( + "definition-value" + ) + DisplayName = "displayName-value" + IsOrganizationDefault = $true +} +New-MgPolicyHomeRealmDiscoveryPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyPermissionGrantPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyPermissionGrantPolicy.md index 98fe1794732..6f5c9723b00 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyPermissionGrantPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyPermissionGrantPolicy.md @@ -14,3 +14,4 @@ AdditionalProperties : {[@odata.context, https://graph.microsoft.com/v1.0/$metad ``` This command creates a new permission grant policy in Azure AD. Specific include and exclude configurations can be created using the `New-MgPolicyPermissionGrantPolicyInclude` and `New-MgPolicyPermissionGrantPolicyExclude` cmdlets. + diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyPermissionGrantPolicyExclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyPermissionGrantPolicyExclude.md index 517327b3404..e54279a37b5 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyPermissionGrantPolicyExclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyPermissionGrantPolicyExclude.md @@ -17,3 +17,4 @@ AdditionalProperties : {[@odata.context, https://graph.mi ``` This command creates a new permission grant policy exclude configuration for the specified permission grant policy in Azure AD. + diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyPermissionGrantPolicyInclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyPermissionGrantPolicyInclude.md index 51b8f639950..6418dce3c04 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyPermissionGrantPolicyInclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyPermissionGrantPolicyInclude.md @@ -17,3 +17,4 @@ AdditionalProperties : {[@odata.context, https://graph.mi ``` This command creates a new permission grant policy include configuration for the specified permission grant policy in Azure AD. + diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyTokenIssuancePolicy.md index 093355d11d5..9d7351e87fd 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyTokenIssuancePolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPolicyTokenIssuancePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Definition = @( + "definition-value" + ) + DisplayName = "displayName-value" + IsOrganizationDefault = $true +} +New-MgPolicyTokenIssuancePolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPolicyTokenIssuancePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyTokenLifetimePolicy.md index 093355d11d5..00b365ba89a 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgPolicyTokenLifetimePolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPolicyTokenLifetimePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Definition = @( + "definition-value" + ) + DisplayName = "displayName-value" + IsOrganizationDefault = $true +} +New-MgPolicyTokenLifetimePolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPolicyTokenLifetimePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgUserAuthenticationEmailMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgUserAuthenticationEmailMethod.md index 093355d11d5..71c41f18dc3 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgUserAuthenticationEmailMethod.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserAuthenticationEmailMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + EmailAddress = "kim@contoso.com" +} +New-MgUserAuthenticationEmailMethod -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserAuthenticationEmailMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgUserAuthenticationPhoneMethod.md index 093355d11d5..a4751566f82 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgUserAuthenticationPhoneMethod.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserAuthenticationPhoneMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + PhoneNumber = "+1 2065555555" + PhoneType = "mobile" +} +# A UPN can also be used as -UserId. +New-MgUserAuthenticationPhoneMethod -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserAuthenticationPhoneMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgUserAuthenticationTemporaryAccessPassMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgUserAuthenticationTemporaryAccessPassMethod.md index 093355d11d5..7a823021bde 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgUserAuthenticationTemporaryAccessPassMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/New-MgUserAuthenticationTemporaryAccessPassMethod.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + StartDateTime = [System.DateTime]::Parse("2022-06-05T00:00:00.000Z") + LifetimeInMinutes = 60 + IsUsableOnce = $false +} +New-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityApiConnector.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityApiConnector.md index 093355d11d5..2c391416e36 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityApiConnector.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityApiConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityApiConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityB2XUserFlow.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityB2XUserFlow.md index 093355d11d5..41afb02897f 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityB2XUserFlow.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityB2XUserFlow.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityB2XUserFlow Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgIdentityB2XUserFlow -B2xIdentityUserFlowId $b2xIdentityUserFlowId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityB2XUserFlow Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityB2XUserFlowUserAttributeAssignment.md index 093355d11d5..77c6d93aab9 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityProvider.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityProvider.md index 093355d11d5..e5d0701e143 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityProvider.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityProvider.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityUserFlowAttribute.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityUserFlowAttribute.md index 093355d11d5..4428c56f617 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgIdentityUserFlowAttribute.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgIdentityUserFlowAttribute Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgIdentityUserFlowAttribute Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgOauth2PermissionGrant.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgOauth2PermissionGrant.md index 093355d11d5..9b181d80bb5 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgOauth2PermissionGrant.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgOauth2PermissionGrant.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgOauth2PermissionGrant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgOauth2PermissionGrant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyActivityBasedTimeoutPolicy.md index 093355d11d5..52a82621278 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyActivityBasedTimeoutPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyActivityBasedTimeoutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyActivityBasedTimeoutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md index 093355d11d5..35e83587f02 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId +``` +This example shows how to use the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId +``` +This example shows how to use the Remove-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyClaimMappingPolicy.md index 093355d11d5..bce6459f0ff 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyClaimMappingPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyClaimMappingPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyClaimMappingPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyCrossTenantAccessPolicyPartner.md index 093355d11d5..f1ade290468 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyCrossTenantAccessPolicyPartner Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyFeatureRolloutPolicy.md index 093355d11d5..dadb557f6f5 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyFeatureRolloutPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyFeatureRolloutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyFeatureRolloutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyFeatureRolloutPolicyApplyToByRef.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyFeatureRolloutPolicyApplyToByRef.md index 093355d11d5..16aac6be8c0 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyFeatureRolloutPolicyApplyToByRef.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyFeatureRolloutPolicyApplyToByRef.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyFeatureRolloutPolicyApplyToByRef Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyFeatureRolloutPolicyApplyToByRef -FeatureRolloutPolicyId $featureRolloutPolicyId -DirectoryObjectId $directoryObjectId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyFeatureRolloutPolicyApplyToByRef Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyHomeRealmDiscoveryPolicy.md index 093355d11d5..42c25002d03 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyHomeRealmDiscoveryPolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyHomeRealmDiscoveryPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyHomeRealmDiscoveryPolicy -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyPermissionGrantPolicyExclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyPermissionGrantPolicyExclude.md index 20bef32f0af..26725a5179b 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyPermissionGrantPolicyExclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyPermissionGrantPolicyExclude.md @@ -6,3 +6,4 @@ Remove-MgPolicyPermissionGrantPolicyExclude -PermissionGrantConditionSetId "60ba ``` This command deletes the specified exclude configuration from the specific permission grant policy in Azure AD. + diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyPermissionGrantPolicyInclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyPermissionGrantPolicyInclude.md index b4ac9a24cfd..57638da4499 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyPermissionGrantPolicyInclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyPermissionGrantPolicyInclude.md @@ -6,3 +6,4 @@ Remove-MgPolicyPermissionGrantPolicyInclude -PermissionGrantConditionSetId "084b ``` This command deletes the specified include configuration from the specific permission grant policy in Azure AD. + diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyTokenIssuancePolicy.md index 093355d11d5..c2333972a62 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyTokenIssuancePolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyTokenIssuancePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyTokenIssuancePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyTokenLifetimePolicy.md index 093355d11d5..9a32bcccd62 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyTokenLifetimePolicy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPolicyTokenLifetimePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPolicyTokenLifetimePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationEmailMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationEmailMethod.md index 093355d11d5..c5a2f4ffb16 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationEmailMethod.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserAuthenticationEmailMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserAuthenticationEmailMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationFido2Method.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationFido2Method.md index 093355d11d5..a10bc3e26a0 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationFido2Method.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationFido2Method.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserAuthenticationFido2Method Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgUserAuthenticationFido2Method -UserId $userId -Fido2AuthenticationMethodId $fido2AuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserAuthenticationFido2Method Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod.md index 093355d11d5..8ad03994dda 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod -UserId $userId -MicrosoftAuthenticatorAuthenticationMethodId $microsoftAuthenticatorAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserAuthenticationMicrosoftAuthenticatorMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationPhoneMethod.md index 093355d11d5..7ff17c6323a 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationPhoneMethod.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserAuthenticationPhoneMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +# A UPN can also be used as -UserId. +Remove-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserAuthenticationPhoneMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationSoftwareOathMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationSoftwareOathMethod.md index 093355d11d5..ffcb8a49662 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationSoftwareOathMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationSoftwareOathMethod.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserAuthenticationSoftwareOathMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgUserAuthenticationSoftwareOathMethod -UserId $userId -SoftwareOathAuthenticationMethodId $softwareOathAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserAuthenticationSoftwareOathMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationTemporaryAccessPassMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationTemporaryAccessPassMethod.md index 093355d11d5..f8351df4ef4 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationTemporaryAccessPassMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationTemporaryAccessPassMethod.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgUserAuthenticationTemporaryAccessPassMethod -UserId $userId -TemporaryAccessPassAuthenticationMethodId $temporaryAccessPassAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserAuthenticationTemporaryAccessPassMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationWindowHelloForBusinessMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationWindowHelloForBusinessMethod.md index 093355d11d5..c1e25594be3 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationWindowHelloForBusinessMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgUserAuthenticationWindowHelloForBusinessMethod.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserAuthenticationWindowHelloForBusinessMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Remove-MgUserAuthenticationWindowHelloForBusinessMethod -UserId $userId -WindowsHelloForBusinessAuthenticationMethodId $windowsHelloForBusinessAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserAuthenticationWindowHelloForBusinessMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Reset-MgPolicyCrossTenantAccessPolicyDefaultToSystemDefault.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Reset-MgPolicyCrossTenantAccessPolicyDefaultToSystemDefault.md index 093355d11d5..7347182ffeb 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Reset-MgPolicyCrossTenantAccessPolicyDefaultToSystemDefault.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Reset-MgPolicyCrossTenantAccessPolicyDefaultToSystemDefault.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Reset-MgPolicyCrossTenantAccessPolicyDefaultToSystemDefault Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +Reset-MgPolicyCrossTenantAccessPolicyDefaultToSystemDefault ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Reset-MgPolicyCrossTenantAccessPolicyDefaultToSystemDefault Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Set-MgIdentityB2XUserFlowLanguageOverridePageContent.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Set-MgIdentityB2XUserFlowLanguageOverridePageContent.md index 093355d11d5..3fb652b6ee6 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Set-MgIdentityB2XUserFlowLanguageOverridePageContent.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Set-MgIdentityB2XUserFlowLanguageOverridePageContent.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Set-MgIdentityB2XUserFlowLanguageOverridePageContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + LocalizedStrings = @( + ) +} +Set-MgIdentityB2XUserFlowLanguageOverridePageContent -B2xIdentityUserFlowId $b2xIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId -UserFlowLanguagePageId $userFlowLanguagePageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Set-MgIdentityB2XUserFlowLanguageOverridePageContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Set-MgIdentityB2XUserFlowUserAttributeAssignmentOrder.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Set-MgIdentityB2XUserFlowUserAttributeAssignmentOrder.md index 093355d11d5..2045d8f7c46 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Set-MgIdentityB2XUserFlowUserAttributeAssignmentOrder.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Set-MgIdentityB2XUserFlowUserAttributeAssignmentOrder.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Set-MgIdentityB2XUserFlowUserAttributeAssignmentOrder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + NewAssignmentOrder = @{ + Order = @( + "City" + "extension_GUID_ShoeSize" + ) + } +} +Set-MgIdentityB2XUserFlowUserAttributeAssignmentOrder -B2xIdentityUserFlowId $b2xIdentityUserFlowId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Set-MgIdentityB2XUserFlowUserAttributeAssignmentOrder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgIdentityApiConnector.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgIdentityApiConnector.md index 093355d11d5..f9c4734e6fa 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgIdentityApiConnector.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgIdentityApiConnector.md @@ -1,18 +1,44 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityApiConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + AuthenticationConfiguration = @{ + "@odata.type" = "#microsoft.graph.pkcs12Certificate" + Pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" + Password = "secret" + } +} +Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgIdentityApiConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgIdentityApiConnector Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + DisplayName = "New Test API" + TargetUrl = "https://otherapi.com/api/endpoint" + AuthenticationConfiguration = @{ + "@odata.type" = "microsoft.graph.basicAuthentication" + Username = "" + Password = "" + } +} +Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityApiConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Update-MgIdentityApiConnector Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + AuthenticationConfiguration = @{ + "@odata.type" = "#microsoft.graph.pkcs12Certificate" + Pkcs12Value = "eyJhbGciOiJSU0EtT0FFUCIsImVuYyI6IkEyNTZHQ00ifQ...kDJ04sJShkkgjL9Bm49plA" + Password = "secret" + } +} +Update-MgIdentityApiConnector -IdentityApiConnectorId $identityApiConnectorId -BodyParameter $params +``` +This example shows how to use the Update-MgIdentityApiConnector Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgIdentityB2XUserFlowUserAttributeAssignment.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgIdentityB2XUserFlowUserAttributeAssignment.md index 093355d11d5..40320aa452d 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgIdentityB2XUserFlowUserAttributeAssignment.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgIdentityB2XUserFlowUserAttributeAssignment.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + UserInputType = "textBox" +} +Update-MgIdentityB2XUserFlowUserAttributeAssignment -B2xIdentityUserFlowId $b2xIdentityUserFlowId -IdentityUserFlowAttributeAssignmentId $identityUserFlowAttributeAssignmentId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityB2XUserFlowUserAttributeAssignment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgIdentityProvider.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgIdentityProvider.md index 093355d11d5..21f171b1dc9 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgIdentityProvider.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgIdentityProvider.md @@ -1,18 +1,32 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.socialIdentityProvider" + DisplayName = "Apple" +} +Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgIdentityProvider Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + ClientSecret = "1111111111111" +} +Update-MgIdentityProvider -IdentityProviderId $identityProviderId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Update-MgIdentityProvider Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.socialIdentityProvider" + ClientSecret = "1111111111111" +} +Update-MgIdentityProvider -IdentityProviderBaseId $identityProviderBaseId -BodyParameter $params +``` +This example shows how to use the Update-MgIdentityProvider Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgIdentityUserFlowAttribute.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgIdentityUserFlowAttribute.md index 093355d11d5..a6f4a521f06 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgIdentityUserFlowAttribute.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgIdentityUserFlowAttribute.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgIdentityUserFlowAttribute Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Description = "Your new hobby" +} +Update-MgIdentityUserFlowAttribute -IdentityUserFlowAttributeId $identityUserFlowAttributeId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgIdentityUserFlowAttribute Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgOauth2PermissionGrant.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgOauth2PermissionGrant.md index 093355d11d5..7a1f2d7b0e7 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgOauth2PermissionGrant.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgOauth2PermissionGrant.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgOauth2PermissionGrant Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Scope = "User.ReadBasic.All Group.ReadWrite.All" +} +Update-MgOauth2PermissionGrant -OAuth2PermissionGrantId $oAuth2PermissionGrantId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgOauth2PermissionGrant Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyActivityBasedTimeoutPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyActivityBasedTimeoutPolicy.md index 093355d11d5..f9f4b84afa4 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyActivityBasedTimeoutPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyActivityBasedTimeoutPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyActivityBasedTimeoutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Definition = @( + "definition-value" + ) + DisplayName = "displayName-value" + IsOrganizationDefault = $true +} +Update-MgPolicyActivityBasedTimeoutPolicy -ActivityBasedTimeoutPolicyId $activityBasedTimeoutPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyActivityBasedTimeoutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyAuthenticationFlowPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyAuthenticationFlowPolicy.md index 093355d11d5..578c6acbcea 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyAuthenticationFlowPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyAuthenticationFlowPolicy.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyAuthenticationFlowPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + SelfServiceSignUp = @{ + IsEnabled = $true + } +} +Update-MgPolicyAuthenticationFlowPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyAuthenticationFlowPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyAuthenticationMethodPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyAuthenticationMethodPolicy.md index 093355d11d5..3e3a4653cf7 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyAuthenticationMethodPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyAuthenticationMethodPolicy.md @@ -1,18 +1,34 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyAuthenticationMethodPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.context" = "https://graph.microsoft.com/v1.0/$metadata#authenticationMethodsPolicy" + RegistrationEnforcement = @{ + AuthenticationMethodsRegistrationCampaign = @{ + SnoozeDurationInDays = 1 + State = "enabled" + ExcludeTargets = @( + ) + IncludeTargets = @( + @{ + Id = "3ee3a9de-0a86-4e12-a287-9769accf1ba2" + TargetType = "group" + TargetedAuthenticationMethod = "microsoftAuthenticator" + } + ) + } + } + AuthenticationMethodConfigurations = @( + @{ + "@odata.type" = "#microsoft.graph.fido2AuthenticationMethodConfiguration" + Id = "Fido2" + State = "disabled" + IsSelfServiceRegistrationAllowed = $false + IsAttestationEnforced = $false + } + ) +} +Update-MgPolicyAuthenticationMethodPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyAuthenticationMethodPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md index 093355d11d5..6538a87062c 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.md @@ -1,18 +1,45 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.emailAuthenticationMethodConfiguration" + AllowExternalIdToUseEmailOtp = "enabled" +} +Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.fido2AuthenticationMethodConfiguration" + State = "enabled" + IsAttestationEnforced = "true" +} +Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.microsoftAuthenticatorAuthenticationMethodConfiguration" + State = "String" +} +Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet +```powershell +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.temporaryAccessPassAuthenticationMethodConfiguration" + IsUsableOnce = $true +} +Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId $authenticationMethodConfigurationId -BodyParameter $params +``` +This example shows how to use the Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyClaimMappingPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyClaimMappingPolicy.md index 093355d11d5..cad82458421 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyClaimMappingPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyClaimMappingPolicy.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyClaimMappingPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + DisplayName = "UpdateClaimsPolicy" +} +Update-MgPolicyClaimMappingPolicy -ClaimsMappingPolicyId $claimsMappingPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyClaimMappingPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyCrossTenantAccessPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyCrossTenantAccessPolicy.md index 093355d11d5..90493d420a5 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyCrossTenantAccessPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyCrossTenantAccessPolicy.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyCrossTenantAccessPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + DisplayName = "CrossTenantAccessPolicy" +} +Update-MgPolicyCrossTenantAccessPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyCrossTenantAccessPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyCrossTenantAccessPolicyDefault.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyCrossTenantAccessPolicyDefault.md index 093355d11d5..5f42277105e 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyCrossTenantAccessPolicyDefault.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyCrossTenantAccessPolicyDefault.md @@ -1,18 +1,29 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyCrossTenantAccessPolicyDefault Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + B2bCollaborationOutbound = @{ + UsersAndGroups = @{ + AccessType = "blocked" + Targets = @( + @{ + Target = "0be493dc-cb56-4a53-936f-9cf64410b8b0" + TargetType = "group" + } + ) + } + Applications = @{ + AccessType = "blocked" + Targets = @( + @{ + Target = "AllApplications" + TargetType = "application" + } + ) + } + } +} +Update-MgPolicyCrossTenantAccessPolicyDefault -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyCrossTenantAccessPolicyDefault Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyCrossTenantAccessPolicyPartner.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyCrossTenantAccessPolicyPartner.md index 093355d11d5..2c53523988b 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyCrossTenantAccessPolicyPartner.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyCrossTenantAccessPolicyPartner.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyCrossTenantAccessPolicyPartner Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + InboundTrust = @{ + IsMfaAccepted = $true + IsCompliantDeviceAccepted = $true + IsHybridAzureADJoinedDeviceAccepted = $true + } +} +Update-MgPolicyCrossTenantAccessPolicyPartner -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyCrossTenantAccessPolicyPartner Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyFeatureRolloutPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyFeatureRolloutPolicy.md index 093355d11d5..d3999dd6483 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyFeatureRolloutPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyFeatureRolloutPolicy.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyFeatureRolloutPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + DisplayName = "PasswordHashSync Rollout Policy" + Description = "PasswordHashSync Rollout Policy" + IsEnabled = $true + IsAppliedToOrganization = $false +} +Update-MgPolicyFeatureRolloutPolicy -FeatureRolloutPolicyId $featureRolloutPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyFeatureRolloutPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyHomeRealmDiscoveryPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyHomeRealmDiscoveryPolicy.md index 093355d11d5..c2f7669d545 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyHomeRealmDiscoveryPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyHomeRealmDiscoveryPolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyHomeRealmDiscoveryPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Definition = @( + "definition-value" + ) + DisplayName = "displayName-value" + IsOrganizationDefault = $true +} +Update-MgPolicyHomeRealmDiscoveryPolicy -HomeRealmDiscoveryPolicyId $homeRealmDiscoveryPolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyHomeRealmDiscoveryPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md index 093355d11d5..916fda78477 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + IsEnabled = $false +} +Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyIdentitySecurityDefaultEnforcementPolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyPermissionGrantPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyPermissionGrantPolicy.md index efe44056a86..35a221a2215 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyPermissionGrantPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyPermissionGrantPolicy.md @@ -6,3 +6,4 @@ Update-MgPolicyPermissionGrantPolicy -PermissionGrantPolicyId "testtenant-sample ``` This command replaces the existing values with the provided new values for the specified properties in the specified permission grant policy in Azure AD. + diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyRoleManagementPolicyRule.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyRoleManagementPolicyRule.md index 093355d11d5..bfdc4bdf4c5 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyRoleManagementPolicyRule.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyRoleManagementPolicyRule.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyRoleManagementPolicyRule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + "@odata.type" = "#microsoft.graph.unifiedRoleManagementPolicyExpirationRule" + Id = "Expiration_EndUser_Assignment" + IsExpirationRequired = $true + MaximumDuration = "PT1H45M" + Target = @{ + "@odata.type" = "microsoft.graph.unifiedRoleManagementPolicyRuleTarget" + Caller = "EndUser" + Operations = @( + "All" + ) + Level = "Assignment" + InheritableSettings = @( + ) + EnforcedSettings = @( + ) + } +} +Update-MgPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $unifiedRoleManagementPolicyId -UnifiedRoleManagementPolicyRuleId $unifiedRoleManagementPolicyRuleId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyRoleManagementPolicyRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyTokenIssuancePolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyTokenIssuancePolicy.md index 093355d11d5..991279d9a37 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyTokenIssuancePolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyTokenIssuancePolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyTokenIssuancePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Definition = @( + "definition-value" + ) + DisplayName = "displayName-value" + IsOrganizationDefault = $true +} +Update-MgPolicyTokenIssuancePolicy -TokenIssuancePolicyId $tokenIssuancePolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyTokenIssuancePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyTokenLifetimePolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyTokenLifetimePolicy.md index 093355d11d5..e3c17506ca7 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyTokenLifetimePolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyTokenLifetimePolicy.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPolicyTokenLifetimePolicy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + Definition = @( + "definition-value" + ) + DisplayName = "displayName-value" + IsOrganizationDefault = $true +} +Update-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPolicyTokenLifetimePolicy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgUserAuthenticationEmailMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgUserAuthenticationEmailMethod.md index 093355d11d5..1e91b1f02eb 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgUserAuthenticationEmailMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgUserAuthenticationEmailMethod.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserAuthenticationEmailMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + EmailAddress = "kim@contoso.com" +} +Update-MgUserAuthenticationEmailMethod -UserId $userId -EmailAuthenticationMethodId $emailAuthenticationMethodId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserAuthenticationEmailMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgUserAuthenticationPhoneMethod.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgUserAuthenticationPhoneMethod.md index 093355d11d5..7375b689937 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgUserAuthenticationPhoneMethod.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgUserAuthenticationPhoneMethod.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserAuthenticationPhoneMethod Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Identity.SignIns +$params = @{ + PhoneNumber = "+1 2065555554" + PhoneType = "mobile" +} +# A UPN can also be used as -UserId. +Update-MgUserAuthenticationPhoneMethod -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserAuthenticationPhoneMethod Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/Get-MgUserInferenceClassificationOverride.md b/src/Mail/Mail/examples/v1.0/Get-MgUserInferenceClassificationOverride.md index 093355d11d5..17be1eb8173 100644 --- a/src/Mail/Mail/examples/v1.0/Get-MgUserInferenceClassificationOverride.md +++ b/src/Mail/Mail/examples/v1.0/Get-MgUserInferenceClassificationOverride.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserInferenceClassificationOverride Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserInferenceClassificationOverride -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserInferenceClassificationOverride Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/Get-MgUserMailFolder.md b/src/Mail/Mail/examples/v1.0/Get-MgUserMailFolder.md index 093355d11d5..b2305146281 100644 --- a/src/Mail/Mail/examples/v1.0/Get-MgUserMailFolder.md +++ b/src/Mail/Mail/examples/v1.0/Get-MgUserMailFolder.md @@ -1,18 +1,24 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMailFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserMailFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserMailFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMailFolder -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMailFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgUserMailFolder Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId +``` +This example shows how to use the Get-MgUserMailFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/Get-MgUserMailFolderChildFolder.md b/src/Mail/Mail/examples/v1.0/Get-MgUserMailFolderChildFolder.md index 093355d11d5..9ef9c61937a 100644 --- a/src/Mail/Mail/examples/v1.0/Get-MgUserMailFolderChildFolder.md +++ b/src/Mail/Mail/examples/v1.0/Get-MgUserMailFolderChildFolder.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMailFolderChildFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMailFolderChildFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/Get-MgUserMailFolderMessage.md b/src/Mail/Mail/examples/v1.0/Get-MgUserMailFolderMessage.md index 093355d11d5..f8c1a762842 100644 --- a/src/Mail/Mail/examples/v1.0/Get-MgUserMailFolderMessage.md +++ b/src/Mail/Mail/examples/v1.0/Get-MgUserMailFolderMessage.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMailFolderMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMailFolderMessage -UserId $userId -MailFolderId $mailFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMailFolderMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/Get-MgUserMailFolderMessageRule.md b/src/Mail/Mail/examples/v1.0/Get-MgUserMailFolderMessageRule.md index 093355d11d5..8ba4ec629ff 100644 --- a/src/Mail/Mail/examples/v1.0/Get-MgUserMailFolderMessageRule.md +++ b/src/Mail/Mail/examples/v1.0/Get-MgUserMailFolderMessageRule.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMailFolderMessageRule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserMailFolderMessageRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserMailFolderMessageRule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMailFolderMessageRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/Get-MgUserMessage.md b/src/Mail/Mail/examples/v1.0/Get-MgUserMessage.md index 093355d11d5..7b601cc96f2 100644 --- a/src/Mail/Mail/examples/v1.0/Get-MgUserMessage.md +++ b/src/Mail/Mail/examples/v1.0/Get-MgUserMessage.md @@ -1,18 +1,40 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -MessageId $messageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -MessageId $messageId -Property "internetMessageHeaders" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgUserMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -MessageId $messageId -Property "subject,body,bodyPreview,uniqueBody" +``` +This example shows how to use the Get-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgUserMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -MessageId $messageId +``` +This example shows how to use the Get-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgUserMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessage -UserId $userId -Property "sender,subject" +``` +This example shows how to use the Get-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/Get-MgUserMessageAttachment.md b/src/Mail/Mail/examples/v1.0/Get-MgUserMessageAttachment.md index 093355d11d5..c1854a1f118 100644 --- a/src/Mail/Mail/examples/v1.0/Get-MgUserMessageAttachment.md +++ b/src/Mail/Mail/examples/v1.0/Get-MgUserMessageAttachment.md @@ -1,18 +1,56 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMessageAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserMessageAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId -ExpandProperty "microsoft.graph.itemattachment/item" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgUserMessageAttachment Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId -ExpandProperty "microsoft.graph.itemattachment/item" +``` +This example shows how to use the Get-MgUserMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgUserMessageAttachment Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId +``` +This example shows how to use the Get-MgUserMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgUserMessageAttachment Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId +``` +This example shows how to use the Get-MgUserMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgUserMessageAttachment Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId -AttachmentId $attachmentId +``` +This example shows how to use the Get-MgUserMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the Get-MgUserMessageAttachment Cmdlet +```powershell +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessageAttachment -UserId $userId -MessageId $messageId +``` +This example shows how to use the Get-MgUserMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/Get-MgUserMessageExtension.md b/src/Mail/Mail/examples/v1.0/Get-MgUserMessageExtension.md index 093355d11d5..1e5c230c748 100644 --- a/src/Mail/Mail/examples/v1.0/Get-MgUserMessageExtension.md +++ b/src/Mail/Mail/examples/v1.0/Get-MgUserMessageExtension.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMessageExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Get-MgUserMessageExtension -UserId $userId -MessageId $messageId -ExtensionId $extensionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMessageExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/New-MgUserInferenceClassificationOverride.md b/src/Mail/Mail/examples/v1.0/New-MgUserInferenceClassificationOverride.md index 093355d11d5..f7f8599f03f 100644 --- a/src/Mail/Mail/examples/v1.0/New-MgUserInferenceClassificationOverride.md +++ b/src/Mail/Mail/examples/v1.0/New-MgUserInferenceClassificationOverride.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserInferenceClassificationOverride Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + ClassifyAs = "focused" + SenderEmailAddress = @{ + Name = "Samantha Booth" + Address = "samanthab@adatum.onmicrosoft.com" + } +} +# A UPN can also be used as -UserId. +New-MgUserInferenceClassificationOverride -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserInferenceClassificationOverride Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/New-MgUserMailFolder.md b/src/Mail/Mail/examples/v1.0/New-MgUserMailFolder.md index 093355d11d5..c07c53c18a1 100644 --- a/src/Mail/Mail/examples/v1.0/New-MgUserMailFolder.md +++ b/src/Mail/Mail/examples/v1.0/New-MgUserMailFolder.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMailFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + DisplayName = "Clutter" + IsHidden = $true +} +# A UPN can also be used as -UserId. +New-MgUserMailFolder -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMailFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/New-MgUserMailFolderChildFolder.md b/src/Mail/Mail/examples/v1.0/New-MgUserMailFolderChildFolder.md index 093355d11d5..dc8bdfe7be6 100644 --- a/src/Mail/Mail/examples/v1.0/New-MgUserMailFolderChildFolder.md +++ b/src/Mail/Mail/examples/v1.0/New-MgUserMailFolderChildFolder.md @@ -1,18 +1,29 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMailFolderChildFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + DisplayName = "displayName-value" + IsHidden = $true +} +# A UPN can also be used as -UserId. +New-MgUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgUserMailFolderChildFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgUserMailFolderChildFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + "@odata.type" = "microsoft.graph.mailSearchFolder" + DisplayName = "Weekly digests" + IncludeNestedFolders = $true + SourceFolderIds = @( + "AQMkADYAAAIBDAAAAA==" + ) + FilterQuery = "contains(subject, 'weekly digest')" +} +# A UPN can also be used as -UserId. +New-MgUserMailFolderChildFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMailFolderChildFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/New-MgUserMailFolderMessage.md b/src/Mail/Mail/examples/v1.0/New-MgUserMailFolderMessage.md index 093355d11d5..286a5444e4e 100644 --- a/src/Mail/Mail/examples/v1.0/New-MgUserMailFolderMessage.md +++ b/src/Mail/Mail/examples/v1.0/New-MgUserMailFolderMessage.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMailFolderMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + ReceivedDateTime = [System.DateTime]::Parse("datetime-value") + SentDateTime = [System.DateTime]::Parse("datetime-value") + HasAttachments = $true + Subject = "subject-value" + Body = @{ + ContentType = "" + Content = "content-value" + } + BodyPreview = "bodyPreview-value" +} +# A UPN can also be used as -UserId. +New-MgUserMailFolderMessage -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMailFolderMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/New-MgUserMailFolderMessageRule.md b/src/Mail/Mail/examples/v1.0/New-MgUserMailFolderMessageRule.md index 093355d11d5..9665ec34a31 100644 --- a/src/Mail/Mail/examples/v1.0/New-MgUserMailFolderMessageRule.md +++ b/src/Mail/Mail/examples/v1.0/New-MgUserMailFolderMessageRule.md @@ -1,18 +1,29 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMailFolderMessageRule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + DisplayName = "From partner" + Sequence = 2 + IsEnabled = $true + Conditions = @{ + SenderContains = @( + "adele" + ) + } + Actions = @{ + ForwardTo = @( + @{ + EmailAddress = @{ + Name = "Alex Wilbur" + Address = "AlexW@contoso.onmicrosoft.com" + } + } + ) + StopProcessingRules = $true + } +} +# A UPN can also be used as -UserId. +New-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMailFolderMessageRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/New-MgUserMessage.md b/src/Mail/Mail/examples/v1.0/New-MgUserMessage.md index 093355d11d5..dff97c550a1 100644 --- a/src/Mail/Mail/examples/v1.0/New-MgUserMessage.md +++ b/src/Mail/Mail/examples/v1.0/New-MgUserMessage.md @@ -1,18 +1,55 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + Subject = "Did you see last night's game?" + Importance = "Low" + Body = @{ + ContentType = "HTML" + Content = "They were awesome!" + } + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "AdeleV@contoso.onmicrosoft.com" + } + } + ) +} +# A UPN can also be used as -UserId. +New-MgUserMessage -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + Subject = "9/8/2018: concert" + Body = @{ + ContentType = "HTML" + Content = "The group represents Washington." + } + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "AlexW@contoso.OnMicrosoft.com" + } + } + ) + InternetMessageHeaders = @( + @{ + Name = "x-custom-header-group-name" + Value = "Washington" + } + @{ + Name = "x-custom-header-group-id" + Value = "WA001" + } + ) +} +# A UPN can also be used as -UserId. +New-MgUserMessage -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/New-MgUserMessageAttachment.md b/src/Mail/Mail/examples/v1.0/New-MgUserMessageAttachment.md index 093355d11d5..f50fc1006ad 100644 --- a/src/Mail/Mail/examples/v1.0/New-MgUserMessageAttachment.md +++ b/src/Mail/Mail/examples/v1.0/New-MgUserMessageAttachment.md @@ -1,18 +1,29 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMessageAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + "@odata.type" = "microsoft.graph.fileAttachment" + Name = "name-value" + ContentType = "contentType-value" + IsInline = $false + ContentLocation = "contentLocation-value" + ContentBytes = "base64-contentBytes-value" +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgUserMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgUserMessageAttachment Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + Name = "smile" + ContentBytes = "R0lGODdhEAYEAA7" +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachment -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMessageAttachment Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/Remove-MgUserInferenceClassificationOverride.md b/src/Mail/Mail/examples/v1.0/Remove-MgUserInferenceClassificationOverride.md index 093355d11d5..6be2a44bbba 100644 --- a/src/Mail/Mail/examples/v1.0/Remove-MgUserInferenceClassificationOverride.md +++ b/src/Mail/Mail/examples/v1.0/Remove-MgUserInferenceClassificationOverride.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserInferenceClassificationOverride Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Remove-MgUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserInferenceClassificationOverride Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/Remove-MgUserMailFolder.md b/src/Mail/Mail/examples/v1.0/Remove-MgUserMailFolder.md index 093355d11d5..4d4e4d75664 100644 --- a/src/Mail/Mail/examples/v1.0/Remove-MgUserMailFolder.md +++ b/src/Mail/Mail/examples/v1.0/Remove-MgUserMailFolder.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserMailFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Remove-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserMailFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/Remove-MgUserMailFolderMessageRule.md b/src/Mail/Mail/examples/v1.0/Remove-MgUserMailFolderMessageRule.md index 093355d11d5..5580bf0cae1 100644 --- a/src/Mail/Mail/examples/v1.0/Remove-MgUserMailFolderMessageRule.md +++ b/src/Mail/Mail/examples/v1.0/Remove-MgUserMailFolderMessageRule.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserMailFolderMessageRule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Remove-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserMailFolderMessageRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/Remove-MgUserMessage.md b/src/Mail/Mail/examples/v1.0/Remove-MgUserMessage.md index 093355d11d5..19137c5c0b4 100644 --- a/src/Mail/Mail/examples/v1.0/Remove-MgUserMessage.md +++ b/src/Mail/Mail/examples/v1.0/Remove-MgUserMessage.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Remove-MgUserMessage -UserId $userId -MessageId $messageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Remove-MgUserMessage -UserId $userId -MessageId $messageId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/Remove-MgUserMessageExtension.md b/src/Mail/Mail/examples/v1.0/Remove-MgUserMessageExtension.md index 093355d11d5..0e59fe62b40 100644 --- a/src/Mail/Mail/examples/v1.0/Remove-MgUserMessageExtension.md +++ b/src/Mail/Mail/examples/v1.0/Remove-MgUserMessageExtension.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserMessageExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +# A UPN can also be used as -UserId. +Remove-MgUserMessageExtension -UserId $userId -MessageId $messageId -ExtensionId $extensionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserMessageExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/Update-MgUserInferenceClassificationOverride.md b/src/Mail/Mail/examples/v1.0/Update-MgUserInferenceClassificationOverride.md index 093355d11d5..3d86ddb676b 100644 --- a/src/Mail/Mail/examples/v1.0/Update-MgUserInferenceClassificationOverride.md +++ b/src/Mail/Mail/examples/v1.0/Update-MgUserInferenceClassificationOverride.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserInferenceClassificationOverride Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + ClassifyAs = "focused" +} +# A UPN can also be used as -UserId. +Update-MgUserInferenceClassificationOverride -UserId $userId -InferenceClassificationOverrideId $inferenceClassificationOverrideId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserInferenceClassificationOverride Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/Update-MgUserMailFolder.md b/src/Mail/Mail/examples/v1.0/Update-MgUserMailFolder.md index 093355d11d5..037e7b990a3 100644 --- a/src/Mail/Mail/examples/v1.0/Update-MgUserMailFolder.md +++ b/src/Mail/Mail/examples/v1.0/Update-MgUserMailFolder.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserMailFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + DisplayName = "displayName-value" +} +# A UPN can also be used as -UserId. +Update-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgUserMailFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgUserMailFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + "@odata.type" = "microsoft.graph.mailSearchFolder" + FilterQuery = "contains(subject, 'Analytics')" +} +# A UPN can also be used as -UserId. +Update-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserMailFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/Update-MgUserMailFolderMessageRule.md b/src/Mail/Mail/examples/v1.0/Update-MgUserMailFolderMessageRule.md index 093355d11d5..1892488eb31 100644 --- a/src/Mail/Mail/examples/v1.0/Update-MgUserMailFolderMessageRule.md +++ b/src/Mail/Mail/examples/v1.0/Update-MgUserMailFolderMessageRule.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserMailFolderMessageRule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + DisplayName = "Important from partner" + Actions = @{ + MarkImportance = "high" + } +} +# A UPN can also be used as -UserId. +Update-MgUserMailFolderMessageRule -UserId $userId -MailFolderId $mailFolderId -MessageRuleId $messageRuleId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserMailFolderMessageRule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Mail/Mail/examples/v1.0/Update-MgUserMessage.md b/src/Mail/Mail/examples/v1.0/Update-MgUserMessage.md index 093355d11d5..d2199b93c99 100644 --- a/src/Mail/Mail/examples/v1.0/Update-MgUserMessage.md +++ b/src/Mail/Mail/examples/v1.0/Update-MgUserMessage.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + IsRead = $true +} +# A UPN can also be used as -UserId. +Update-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Mail +$params = @{ + Subject = "subject-value" + Body = @{ + ContentType = "" + Content = "content-value" + } + InferenceClassification = "other" +} +# A UPN can also be used as -UserId. +Update-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteNotebook.md b/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteNotebook.md index 093355d11d5..cf630807ed8 100644 --- a/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteNotebook.md +++ b/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteNotebook.md @@ -1,18 +1,24 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnenoteNotebook Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteNotebook -UserId $userId -NotebookId $notebookId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserOnenoteNotebook Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserOnenoteNotebook Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteNotebook -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnenoteNotebook Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgUserOnenoteNotebook Cmdlet +```powershell +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteNotebook -UserId $userId -NotebookId $notebookId +``` +This example shows how to use the Get-MgUserOnenoteNotebook Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteNotebookSection.md b/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteNotebookSection.md index 093355d11d5..5e24f9cb2ac 100644 --- a/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteNotebookSection.md +++ b/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteNotebookSection.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnenoteNotebookSection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnenoteNotebookSection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteNotebookSectionGroup.md b/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteNotebookSectionGroup.md index 093355d11d5..2b4e4da71f2 100644 --- a/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteNotebookSectionGroup.md +++ b/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteNotebookSectionGroup.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnenoteNotebookSectionGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnenoteNotebookSectionGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteOperation.md b/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteOperation.md index 093355d11d5..d43d2d8d0e2 100644 --- a/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteOperation.md +++ b/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteOperation.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnenoteOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteOperation -UserId $userId -OnenoteOperationId $onenoteOperationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnenoteOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteSection.md b/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteSection.md index 093355d11d5..83d92648f54 100644 --- a/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteSection.md +++ b/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteSection.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnenoteSection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteSection -UserId $userId -OnenoteSectionId $onenoteSectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserOnenoteSection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserOnenoteSection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteSection -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnenoteSection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteSectionGroup.md b/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteSectionGroup.md index 093355d11d5..2aeedfa816e 100644 --- a/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteSectionGroup.md +++ b/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteSectionGroup.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnenoteSectionGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteSectionGroup -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnenoteSectionGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteSectionGroupSection.md b/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteSectionGroupSection.md index 093355d11d5..a234de3df29 100644 --- a/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteSectionGroupSection.md +++ b/src/Notes/Notes/examples/v1.0/Get-MgUserOnenoteSectionGroupSection.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnenoteSectionGroupSection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Get-MgUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnenoteSectionGroupSection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0/New-MgUserOnenoteNotebook.md b/src/Notes/Notes/examples/v1.0/New-MgUserOnenoteNotebook.md index 093355d11d5..36192b3b5fd 100644 --- a/src/Notes/Notes/examples/v1.0/New-MgUserOnenoteNotebook.md +++ b/src/Notes/Notes/examples/v1.0/New-MgUserOnenoteNotebook.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOnenoteNotebook Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +$params = @{ + DisplayName = "My Private notebook" +} +# A UPN can also be used as -UserId. +New-MgUserOnenoteNotebook -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOnenoteNotebook Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0/New-MgUserOnenoteNotebookSection.md b/src/Notes/Notes/examples/v1.0/New-MgUserOnenoteNotebookSection.md index 093355d11d5..838fd4d5258 100644 --- a/src/Notes/Notes/examples/v1.0/New-MgUserOnenoteNotebookSection.md +++ b/src/Notes/Notes/examples/v1.0/New-MgUserOnenoteNotebookSection.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOnenoteNotebookSection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +$params = @{ + DisplayName = "Section name" +} +# A UPN can also be used as -UserId. +New-MgUserOnenoteNotebookSection -UserId $userId -NotebookId $notebookId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOnenoteNotebookSection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0/New-MgUserOnenoteNotebookSectionGroup.md b/src/Notes/Notes/examples/v1.0/New-MgUserOnenoteNotebookSectionGroup.md index 093355d11d5..8fe88b33041 100644 --- a/src/Notes/Notes/examples/v1.0/New-MgUserOnenoteNotebookSectionGroup.md +++ b/src/Notes/Notes/examples/v1.0/New-MgUserOnenoteNotebookSectionGroup.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOnenoteNotebookSectionGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +$params = @{ + DisplayName = "Section group name" +} +# A UPN can also be used as -UserId. +New-MgUserOnenoteNotebookSectionGroup -UserId $userId -NotebookId $notebookId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOnenoteNotebookSectionGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0/New-MgUserOnenoteSectionGroupSection.md b/src/Notes/Notes/examples/v1.0/New-MgUserOnenoteSectionGroupSection.md index 093355d11d5..d481eb0fae0 100644 --- a/src/Notes/Notes/examples/v1.0/New-MgUserOnenoteSectionGroupSection.md +++ b/src/Notes/Notes/examples/v1.0/New-MgUserOnenoteSectionGroupSection.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOnenoteSectionGroupSection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +$params = @{ + DisplayName = "Section name" +} +# A UPN can also be used as -UserId. +New-MgUserOnenoteSectionGroupSection -UserId $userId -SectionGroupId $sectionGroupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOnenoteSectionGroupSection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Notes/Notes/examples/v1.0/Remove-MgUserOnenotePage.md b/src/Notes/Notes/examples/v1.0/Remove-MgUserOnenotePage.md index 093355d11d5..8f9927ca2f5 100644 --- a/src/Notes/Notes/examples/v1.0/Remove-MgUserOnenotePage.md +++ b/src/Notes/Notes/examples/v1.0/Remove-MgUserOnenotePage.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserOnenotePage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Notes +# A UPN can also be used as -UserId. +Remove-MgUserOnenotePage -UserId $userId -OnenotePageId $onenotePageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserOnenotePage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0/Get-MgUserPerson.md b/src/People/People/examples/v1.0/Get-MgUserPerson.md index 093355d11d5..7482d458910 100644 --- a/src/People/People/examples/v1.0/Get-MgUserPerson.md +++ b/src/People/People/examples/v1.0/Get-MgUserPerson.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserPerson Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserPerson -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserPerson Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/People/People/examples/v1.0/Get-MgUserUsedInsight.md b/src/People/People/examples/v1.0/Get-MgUserUsedInsight.md index 093355d11d5..2873a6e603a 100644 --- a/src/People/People/examples/v1.0/Get-MgUserUsedInsight.md +++ b/src/People/People/examples/v1.0/Get-MgUserUsedInsight.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserUsedInsight Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserUsedInsight -UserId $userId -Sort "LastUsed/LastAccessedDateTime desc" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserUsedInsight Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserUsedInsight Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.People +# A UPN can also be used as -UserId. +Get-MgUserUsedInsight -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserUsedInsight Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0/Get-MgUserContact.md b/src/PersonalContacts/PersonalContacts/examples/v1.0/Get-MgUserContact.md index 093355d11d5..badbf3883ab 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0/Get-MgUserContact.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0/Get-MgUserContact.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserContact Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +# A UPN can also be used as -UserId. +Get-MgUserContact -UserId $userId -ContactId $contactId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserContact Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserContact Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +# A UPN can also be used as -UserId. +Get-MgUserContact -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserContact Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0/Get-MgUserContactFolder.md b/src/PersonalContacts/PersonalContacts/examples/v1.0/Get-MgUserContactFolder.md index 093355d11d5..ae1d35eb409 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0/Get-MgUserContactFolder.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0/Get-MgUserContactFolder.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserContactFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +# A UPN can also be used as -UserId. +Get-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserContactFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserContactFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +# A UPN can also be used as -UserId. +Get-MgUserContactFolder -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserContactFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0/Get-MgUserContactFolderChildFolder.md b/src/PersonalContacts/PersonalContacts/examples/v1.0/Get-MgUserContactFolderChildFolder.md index 093355d11d5..a7c97b92d52 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0/Get-MgUserContactFolderChildFolder.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0/Get-MgUserContactFolderChildFolder.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserContactFolderChildFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +# A UPN can also be used as -UserId. +Get-MgUserContactFolderChildFolder -UserId $userId -ContactFolderId $contactFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserContactFolderChildFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0/Get-MgUserContactFolderContact.md b/src/PersonalContacts/PersonalContacts/examples/v1.0/Get-MgUserContactFolderContact.md index 093355d11d5..2ca82b13bc5 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0/Get-MgUserContactFolderContact.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0/Get-MgUserContactFolderContact.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserContactFolderContact Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +# A UPN can also be used as -UserId. +Get-MgUserContactFolderContact -UserId $userId -ContactFolderId $contactFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserContactFolderContact Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0/New-MgUserContact.md b/src/PersonalContacts/PersonalContacts/examples/v1.0/New-MgUserContact.md index 093355d11d5..76d888d29c9 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0/New-MgUserContact.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0/New-MgUserContact.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserContact Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +$params = @{ + GivenName = "Pavel" + Surname = "Bansky" + EmailAddresses = @( + @{ + Address = "pavelb@fabrikam.onmicrosoft.com" + Name = "Pavel Bansky" + } + ) + BusinessPhones = @( + "+1 732 555 0102" + ) +} +# A UPN can also be used as -UserId. +New-MgUserContact -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserContact Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0/New-MgUserContactFolder.md b/src/PersonalContacts/PersonalContacts/examples/v1.0/New-MgUserContactFolder.md index 093355d11d5..4f7b487fed6 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0/New-MgUserContactFolder.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0/New-MgUserContactFolder.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserContactFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +$params = @{ + ParentFolderId = "AQMkADIxYjJiYgEzLTFmNjYALTRjYTMtODA1NC0wZDkxZGNmOTcxNTQALgAAA8RJzXYaLKZPlmn0ge0edZkBADa3qi2IMXRNg6RwQSHe_F8AAAIBDgAAAA==" + DisplayName = "Important contacts" +} +# A UPN can also be used as -UserId. +New-MgUserContactFolder -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserContactFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0/New-MgUserContactFolderChildFolder.md b/src/PersonalContacts/PersonalContacts/examples/v1.0/New-MgUserContactFolderChildFolder.md index 093355d11d5..9fee34e1685 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0/New-MgUserContactFolderChildFolder.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0/New-MgUserContactFolderChildFolder.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserContactFolderChildFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +$params = @{ + DisplayName = "Family" +} +# A UPN can also be used as -UserId. +New-MgUserContactFolderChildFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserContactFolderChildFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0/New-MgUserContactFolderContact.md b/src/PersonalContacts/PersonalContacts/examples/v1.0/New-MgUserContactFolderContact.md index 093355d11d5..86615c2292f 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0/New-MgUserContactFolderContact.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0/New-MgUserContactFolderContact.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserContactFolderContact Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +$params = @{ + ParentFolderId = "parentFolderId-value" + Birthday = [System.DateTime]::Parse("datetime-value") + FileAs = "fileAs-value" + DisplayName = "displayName-value" + GivenName = "givenName-value" + Initials = "initials-value" +} +# A UPN can also be used as -UserId. +New-MgUserContactFolderContact -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserContactFolderContact Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0/Remove-MgUserContact.md b/src/PersonalContacts/PersonalContacts/examples/v1.0/Remove-MgUserContact.md index 093355d11d5..2cfe18df0c1 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0/Remove-MgUserContact.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0/Remove-MgUserContact.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserContact Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +# A UPN can also be used as -UserId. +Remove-MgUserContact -UserId $userId -ContactId $contactId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserContact Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0/Remove-MgUserContactFolder.md b/src/PersonalContacts/PersonalContacts/examples/v1.0/Remove-MgUserContactFolder.md index 093355d11d5..44f4ebfd984 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0/Remove-MgUserContactFolder.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0/Remove-MgUserContactFolder.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserContactFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +# A UPN can also be used as -UserId. +Remove-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserContactFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0/Update-MgUserContact.md b/src/PersonalContacts/PersonalContacts/examples/v1.0/Update-MgUserContact.md index 093355d11d5..3c1721011a0 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0/Update-MgUserContact.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0/Update-MgUserContact.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserContact Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +$params = @{ + HomeAddress = @{ + Street = "123 Some street" + City = "Seattle" + State = "WA" + PostalCode = "98121" + } + Birthday = [System.DateTime]::Parse("1974-07-22") +} +# A UPN can also be used as -UserId. +Update-MgUserContact -UserId $userId -ContactId $contactId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserContact Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/PersonalContacts/PersonalContacts/examples/v1.0/Update-MgUserContactFolder.md b/src/PersonalContacts/PersonalContacts/examples/v1.0/Update-MgUserContactFolder.md index 093355d11d5..ea993d87800 100644 --- a/src/PersonalContacts/PersonalContacts/examples/v1.0/Update-MgUserContactFolder.md +++ b/src/PersonalContacts/PersonalContacts/examples/v1.0/Update-MgUserContactFolder.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserContactFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.PersonalContacts +$params = @{ + ParentFolderId = "parentFolderId-value" + DisplayName = "displayName-value" +} +# A UPN can also be used as -UserId. +Update-MgUserContactFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserContactFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Get-MgGroupPlannerPlan.md b/src/Planner/Planner/examples/v1.0/Get-MgGroupPlannerPlan.md index 093355d11d5..25eb954e105 100644 --- a/src/Planner/Planner/examples/v1.0/Get-MgGroupPlannerPlan.md +++ b/src/Planner/Planner/examples/v1.0/Get-MgGroupPlannerPlan.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgGroupPlannerPlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgGroupPlannerPlan -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgGroupPlannerPlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Get-MgPlanner.md b/src/Planner/Planner/examples/v1.0/Get-MgPlanner.md index 093355d11d5..5e88ba0e8a2 100644 --- a/src/Planner/Planner/examples/v1.0/Get-MgPlanner.md +++ b/src/Planner/Planner/examples/v1.0/Get-MgPlanner.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlanner Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlanner ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlanner Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Get-MgPlannerBucket.md b/src/Planner/Planner/examples/v1.0/Get-MgPlannerBucket.md index 093355d11d5..527e0665d1a 100644 --- a/src/Planner/Planner/examples/v1.0/Get-MgPlannerBucket.md +++ b/src/Planner/Planner/examples/v1.0/Get-MgPlannerBucket.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerBucket Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerBucket ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPlannerBucket Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPlannerBucket Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerBucket -PlannerBucketId $plannerBucketId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerBucket Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Get-MgPlannerBucketTask.md b/src/Planner/Planner/examples/v1.0/Get-MgPlannerBucketTask.md index 093355d11d5..7428815cc14 100644 --- a/src/Planner/Planner/examples/v1.0/Get-MgPlannerBucketTask.md +++ b/src/Planner/Planner/examples/v1.0/Get-MgPlannerBucketTask.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerBucketTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerBucketTask -PlannerBucketId $plannerBucketId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerBucketTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Get-MgPlannerPlan.md b/src/Planner/Planner/examples/v1.0/Get-MgPlannerPlan.md index 093355d11d5..c85fd490932 100644 --- a/src/Planner/Planner/examples/v1.0/Get-MgPlannerPlan.md +++ b/src/Planner/Planner/examples/v1.0/Get-MgPlannerPlan.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerPlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerPlan -PlannerPlanId $plannerPlanId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPlannerPlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPlannerPlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerPlan ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerPlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Get-MgPlannerPlanBucket.md b/src/Planner/Planner/examples/v1.0/Get-MgPlannerPlanBucket.md index 093355d11d5..8c5cd966d3b 100644 --- a/src/Planner/Planner/examples/v1.0/Get-MgPlannerPlanBucket.md +++ b/src/Planner/Planner/examples/v1.0/Get-MgPlannerPlanBucket.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerPlanBucket Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerPlanBucket -PlannerPlanId $plannerPlanId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerPlanBucket Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Get-MgPlannerPlanDetail.md b/src/Planner/Planner/examples/v1.0/Get-MgPlannerPlanDetail.md index 093355d11d5..3ef38714af1 100644 --- a/src/Planner/Planner/examples/v1.0/Get-MgPlannerPlanDetail.md +++ b/src/Planner/Planner/examples/v1.0/Get-MgPlannerPlanDetail.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerPlanDetail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerPlanDetail -PlannerPlanId $plannerPlanId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerPlanDetail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Get-MgPlannerPlanTask.md b/src/Planner/Planner/examples/v1.0/Get-MgPlannerPlanTask.md index 093355d11d5..6f9debbe198 100644 --- a/src/Planner/Planner/examples/v1.0/Get-MgPlannerPlanTask.md +++ b/src/Planner/Planner/examples/v1.0/Get-MgPlannerPlanTask.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerPlanTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerPlanTask -PlannerPlanId $plannerPlanId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerPlanTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Get-MgPlannerTask.md b/src/Planner/Planner/examples/v1.0/Get-MgPlannerTask.md index 093355d11d5..b77b84390d9 100644 --- a/src/Planner/Planner/examples/v1.0/Get-MgPlannerTask.md +++ b/src/Planner/Planner/examples/v1.0/Get-MgPlannerTask.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerTask -PlannerTaskId $plannerTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgPlannerTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgPlannerTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerTask ``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Get-MgPlannerTaskAssignedToTaskBoardFormat.md b/src/Planner/Planner/examples/v1.0/Get-MgPlannerTaskAssignedToTaskBoardFormat.md index 093355d11d5..9c5f0fea3bc 100644 --- a/src/Planner/Planner/examples/v1.0/Get-MgPlannerTaskAssignedToTaskBoardFormat.md +++ b/src/Planner/Planner/examples/v1.0/Get-MgPlannerTaskAssignedToTaskBoardFormat.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerTaskAssignedToTaskBoardFormat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerTaskAssignedToTaskBoardFormat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Get-MgPlannerTaskBucketTaskBoardFormat.md b/src/Planner/Planner/examples/v1.0/Get-MgPlannerTaskBucketTaskBoardFormat.md index 093355d11d5..33d6a38f832 100644 --- a/src/Planner/Planner/examples/v1.0/Get-MgPlannerTaskBucketTaskBoardFormat.md +++ b/src/Planner/Planner/examples/v1.0/Get-MgPlannerTaskBucketTaskBoardFormat.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerTaskBucketTaskBoardFormat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerTaskBucketTaskBoardFormat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Get-MgPlannerTaskDetail.md b/src/Planner/Planner/examples/v1.0/Get-MgPlannerTaskDetail.md index 093355d11d5..3723f3299b1 100644 --- a/src/Planner/Planner/examples/v1.0/Get-MgPlannerTaskDetail.md +++ b/src/Planner/Planner/examples/v1.0/Get-MgPlannerTaskDetail.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerTaskDetail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerTaskDetail -PlannerTaskId $plannerTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerTaskDetail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Get-MgPlannerTaskProgressTaskBoardFormat.md b/src/Planner/Planner/examples/v1.0/Get-MgPlannerTaskProgressTaskBoardFormat.md index 093355d11d5..a8925d1e73b 100644 --- a/src/Planner/Planner/examples/v1.0/Get-MgPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/Planner/examples/v1.0/Get-MgPlannerTaskProgressTaskBoardFormat.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgPlannerTaskProgressTaskBoardFormat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Get-MgPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgPlannerTaskProgressTaskBoardFormat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Get-MgUserPlannerPlan.md b/src/Planner/Planner/examples/v1.0/Get-MgUserPlannerPlan.md index 093355d11d5..9bdde25910d 100644 --- a/src/Planner/Planner/examples/v1.0/Get-MgUserPlannerPlan.md +++ b/src/Planner/Planner/examples/v1.0/Get-MgUserPlannerPlan.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserPlannerPlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +# A UPN can also be used as -UserId. +Get-MgUserPlannerPlan -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserPlannerPlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Get-MgUserPlannerTask.md b/src/Planner/Planner/examples/v1.0/Get-MgUserPlannerTask.md index 093355d11d5..4a3c8888dca 100644 --- a/src/Planner/Planner/examples/v1.0/Get-MgUserPlannerTask.md +++ b/src/Planner/Planner/examples/v1.0/Get-MgUserPlannerTask.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserPlannerTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +# A UPN can also be used as -UserId. +Get-MgUserPlannerTask -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserPlannerTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/New-MgPlannerBucket.md b/src/Planner/Planner/examples/v1.0/New-MgPlannerBucket.md index 093355d11d5..92e6b457ff3 100644 --- a/src/Planner/Planner/examples/v1.0/New-MgPlannerBucket.md +++ b/src/Planner/Planner/examples/v1.0/New-MgPlannerBucket.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPlannerBucket Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + Name = "Advertising" + PlanId = "xqQg5FS2LkCp935s-FIFm2QAFkHM" + OrderHint = " !" +} +New-MgPlannerBucket -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPlannerBucket Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/New-MgPlannerPlan.md b/src/Planner/Planner/examples/v1.0/New-MgPlannerPlan.md index 093355d11d5..d4a02df2e39 100644 --- a/src/Planner/Planner/examples/v1.0/New-MgPlannerPlan.md +++ b/src/Planner/Planner/examples/v1.0/New-MgPlannerPlan.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPlannerPlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + Owner = "ebf3b108-5234-4e22-b93d-656d7dae5874" + Title = "title-value" +} +New-MgPlannerPlan -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPlannerPlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/New-MgPlannerTask.md b/src/Planner/Planner/examples/v1.0/New-MgPlannerTask.md index 093355d11d5..3cf42b6362b 100644 --- a/src/Planner/Planner/examples/v1.0/New-MgPlannerTask.md +++ b/src/Planner/Planner/examples/v1.0/New-MgPlannerTask.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgPlannerTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + PlanId = "xqQg5FS2LkCp935s-FIFm2QAFkHM" + BucketId = "hsOf2dhOJkqyYYZEtdzDe2QAIUCR" + Title = "Update client list" + Assignments = @{ + "Fbab97d0-4932-4511-b675-204639209557" = @{ + "@odata.type" = "#microsoft.graph.plannerAssignment" + OrderHint = " !" + } + } +} +New-MgPlannerTask -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgPlannerTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Remove-MgPlannerBucket.md b/src/Planner/Planner/examples/v1.0/Remove-MgPlannerBucket.md index 093355d11d5..ef48c848a6f 100644 --- a/src/Planner/Planner/examples/v1.0/Remove-MgPlannerBucket.md +++ b/src/Planner/Planner/examples/v1.0/Remove-MgPlannerBucket.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPlannerBucket Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Remove-MgPlannerBucket -PlannerBucketId $plannerBucketId-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPlannerBucket Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Remove-MgPlannerPlan.md b/src/Planner/Planner/examples/v1.0/Remove-MgPlannerPlan.md index 093355d11d5..68a7b2eea17 100644 --- a/src/Planner/Planner/examples/v1.0/Remove-MgPlannerPlan.md +++ b/src/Planner/Planner/examples/v1.0/Remove-MgPlannerPlan.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPlannerPlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Remove-MgPlannerPlan -PlannerPlanId $plannerPlanId-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPlannerPlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Remove-MgPlannerTask.md b/src/Planner/Planner/examples/v1.0/Remove-MgPlannerTask.md index 093355d11d5..bbeb881e87c 100644 --- a/src/Planner/Planner/examples/v1.0/Remove-MgPlannerTask.md +++ b/src/Planner/Planner/examples/v1.0/Remove-MgPlannerTask.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgPlannerTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +Remove-MgPlannerTask -PlannerTaskId $plannerTaskId-If-Match W/"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc=" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgPlannerTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Update-MgPlannerBucket.md b/src/Planner/Planner/examples/v1.0/Update-MgPlannerBucket.md index 093355d11d5..3ed2845eac4 100644 --- a/src/Planner/Planner/examples/v1.0/Update-MgPlannerBucket.md +++ b/src/Planner/Planner/examples/v1.0/Update-MgPlannerBucket.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPlannerBucket Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + Name = "Development" +} +Update-MgPlannerBucket -PlannerBucketId $plannerBucketId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPlannerBucket Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Update-MgPlannerPlan.md b/src/Planner/Planner/examples/v1.0/Update-MgPlannerPlan.md index 093355d11d5..f85255752f9 100644 --- a/src/Planner/Planner/examples/v1.0/Update-MgPlannerPlan.md +++ b/src/Planner/Planner/examples/v1.0/Update-MgPlannerPlan.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPlannerPlan Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + Title = "title-value" +} +Update-MgPlannerPlan -PlannerPlanId $plannerPlanId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPlannerPlan Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Update-MgPlannerPlanDetail.md b/src/Planner/Planner/examples/v1.0/Update-MgPlannerPlanDetail.md index 093355d11d5..7e24eb55fd6 100644 --- a/src/Planner/Planner/examples/v1.0/Update-MgPlannerPlanDetail.md +++ b/src/Planner/Planner/examples/v1.0/Update-MgPlannerPlanDetail.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPlannerPlanDetail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + SharedWith = @{ + "6463a5ce-2119-4198-9f2a-628761df4a62" = $true + "D95e6152-f683-4d78-9ff5-67ad180fea4a" = $false + } + CategoryDescriptions = @{ + Category1 = "Indoors" + Category3 = $null + } +} +Update-MgPlannerPlanDetail -PlannerPlanId $plannerPlanId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPlannerPlanDetail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Update-MgPlannerTask.md b/src/Planner/Planner/examples/v1.0/Update-MgPlannerTask.md index 093355d11d5..d6f22d3562a 100644 --- a/src/Planner/Planner/examples/v1.0/Update-MgPlannerTask.md +++ b/src/Planner/Planner/examples/v1.0/Update-MgPlannerTask.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPlannerTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + Assignments = @{ + "Fbab97d0-4932-4511-b675-204639209557" = @{ + "@odata.type" = "#microsoft.graph.plannerAssignment" + OrderHint = "N9917 U2883!" + } + } + AppliedCategories = @{ + Category3 = $true + Category4 = $false + } +} +Update-MgPlannerTask -PlannerTaskId $plannerTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPlannerTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Update-MgPlannerTaskAssignedToTaskBoardFormat.md b/src/Planner/Planner/examples/v1.0/Update-MgPlannerTaskAssignedToTaskBoardFormat.md index 093355d11d5..59425a6026f 100644 --- a/src/Planner/Planner/examples/v1.0/Update-MgPlannerTaskAssignedToTaskBoardFormat.md +++ b/src/Planner/Planner/examples/v1.0/Update-MgPlannerTaskAssignedToTaskBoardFormat.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPlannerTaskAssignedToTaskBoardFormat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + OrderHintsByAssignee = @{ + "Aaa27244-1db4-476a-a5cb-004607466324" = "8566473P 957764Jk!" + } +} +Update-MgPlannerTaskAssignedToTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPlannerTaskAssignedToTaskBoardFormat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Update-MgPlannerTaskBucketTaskBoardFormat.md b/src/Planner/Planner/examples/v1.0/Update-MgPlannerTaskBucketTaskBoardFormat.md index 093355d11d5..b94eeb1278a 100644 --- a/src/Planner/Planner/examples/v1.0/Update-MgPlannerTaskBucketTaskBoardFormat.md +++ b/src/Planner/Planner/examples/v1.0/Update-MgPlannerTaskBucketTaskBoardFormat.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPlannerTaskBucketTaskBoardFormat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + OrderHint = "A6673H Ejkl!" +} +Update-MgPlannerTaskBucketTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPlannerTaskBucketTaskBoardFormat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Update-MgPlannerTaskDetail.md b/src/Planner/Planner/examples/v1.0/Update-MgPlannerTaskDetail.md index 093355d11d5..d16d0bc58c5 100644 --- a/src/Planner/Planner/examples/v1.0/Update-MgPlannerTaskDetail.md +++ b/src/Planner/Planner/examples/v1.0/Update-MgPlannerTaskDetail.md @@ -1,18 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPlannerTaskDetail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + PreviewType = "noPreview" + References = @{ + "Http%3A//developer%2Emicrosoft%2Ecom" = @{ + "@odata.type" = "microsoft.graph.plannerExternalReference" + Alias = "Documentation" + PreviewPriority = " !" + Type = "Other" + } + "Https%3A//developer%2Emicrosoft%2Ecom/en-us/graph/graph-explorer" = @{ + "@odata.type" = "microsoft.graph.plannerExternalReference" + PreviewPriority = " !!" + } + "Http%3A//www%2Ebing%2Ecom" = $null + } + Checklist = @{ + "95e27074-6c4a-447a-aa24-9d718a0b86fa" = @{ + "@odata.type" = "microsoft.graph.plannerChecklistItem" + Title = "Update task details" + IsChecked = $true + } + "D280ed1a-9f6b-4f9c-a962-fb4d00dc50ff" = @{ + "@odata.type" = "microsoft.graph.plannerChecklistItem" + IsChecked = $true + } + "A93c93c5-10a6-4167-9551-8bafa09967a7" = $null + } +} +Update-MgPlannerTaskDetail -PlannerTaskId $plannerTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPlannerTaskDetail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Planner/Planner/examples/v1.0/Update-MgPlannerTaskProgressTaskBoardFormat.md b/src/Planner/Planner/examples/v1.0/Update-MgPlannerTaskProgressTaskBoardFormat.md index 093355d11d5..4a456eeb232 100644 --- a/src/Planner/Planner/examples/v1.0/Update-MgPlannerTaskProgressTaskBoardFormat.md +++ b/src/Planner/Planner/examples/v1.0/Update-MgPlannerTaskProgressTaskBoardFormat.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgPlannerTaskProgressTaskBoardFormat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Planner +$params = @{ + OrderHint = "A6673H Ejkl!" +} +Update-MgPlannerTaskProgressTaskBoardFormat -PlannerTaskId $plannerTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgPlannerTaskProgressTaskBoardFormat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0/Get-MgAuditLogDirectoryAudit.md b/src/Reports/Reports/examples/v1.0/Get-MgAuditLogDirectoryAudit.md index 093355d11d5..475994ea767 100644 --- a/src/Reports/Reports/examples/v1.0/Get-MgAuditLogDirectoryAudit.md +++ b/src/Reports/Reports/examples/v1.0/Get-MgAuditLogDirectoryAudit.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAuditLogDirectoryAudit Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgAuditLogDirectoryAudit -DirectoryAuditId $directoryAuditId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgAuditLogDirectoryAudit Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgAuditLogDirectoryAudit Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgAuditLogDirectoryAudit ``` - -{{ Add description here }} - +This example shows how to use the Get-MgAuditLogDirectoryAudit Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0/Get-MgAuditLogProvisioning.md b/src/Reports/Reports/examples/v1.0/Get-MgAuditLogProvisioning.md index 093355d11d5..976e96bb3c1 100644 --- a/src/Reports/Reports/examples/v1.0/Get-MgAuditLogProvisioning.md +++ b/src/Reports/Reports/examples/v1.0/Get-MgAuditLogProvisioning.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAuditLogProvisioning Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgAuditLogProvisioning ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgAuditLogProvisioning Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgAuditLogProvisioning Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgAuditLogProvisioning ``` - -{{ Add description here }} - +This example shows how to use the Get-MgAuditLogProvisioning Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0/Get-MgAuditLogSignIn.md b/src/Reports/Reports/examples/v1.0/Get-MgAuditLogSignIn.md index 093355d11d5..6e6ffdfd8df 100644 --- a/src/Reports/Reports/examples/v1.0/Get-MgAuditLogSignIn.md +++ b/src/Reports/Reports/examples/v1.0/Get-MgAuditLogSignIn.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAuditLogSignIn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgAuditLogSignIn -SignInId $signInId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgAuditLogSignIn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgAuditLogSignIn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgAuditLogSignIn -Filter "startsWith(appDisplayName,'Graph')" -Top 10 ``` - -{{ Add description here }} - +This example shows how to use the Get-MgAuditLogSignIn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgAuditLogSignIn Cmdlet +```powershell +Import-Module Microsoft.Graph.Reports +Get-MgAuditLogSignIn +``` +This example shows how to use the Get-MgAuditLogSignIn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0/Get-MgReportDailyPrintUsageByPrinter.md b/src/Reports/Reports/examples/v1.0/Get-MgReportDailyPrintUsageByPrinter.md index 093355d11d5..38e18d2a5ee 100644 --- a/src/Reports/Reports/examples/v1.0/Get-MgReportDailyPrintUsageByPrinter.md +++ b/src/Reports/Reports/examples/v1.0/Get-MgReportDailyPrintUsageByPrinter.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgReportDailyPrintUsageByPrinter Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportDailyPrintUsageByPrinter -PrintUsageByPrinterId $printUsageByPrinterId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgReportDailyPrintUsageByPrinter Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgReportDailyPrintUsageByPrinter Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportDailyPrintUsageByPrinter ``` - -{{ Add description here }} - +This example shows how to use the Get-MgReportDailyPrintUsageByPrinter Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0/Get-MgReportDailyPrintUsageByUser.md b/src/Reports/Reports/examples/v1.0/Get-MgReportDailyPrintUsageByUser.md index 093355d11d5..0bbe5bd12c8 100644 --- a/src/Reports/Reports/examples/v1.0/Get-MgReportDailyPrintUsageByUser.md +++ b/src/Reports/Reports/examples/v1.0/Get-MgReportDailyPrintUsageByUser.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgReportDailyPrintUsageByUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportDailyPrintUsageByUser -PrintUsageByUserId $printUsageByUserId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgReportDailyPrintUsageByUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgReportDailyPrintUsageByUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportDailyPrintUsageByUser ``` - -{{ Add description here }} - +This example shows how to use the Get-MgReportDailyPrintUsageByUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0/Get-MgReportMonthlyPrintUsageByPrinter.md b/src/Reports/Reports/examples/v1.0/Get-MgReportMonthlyPrintUsageByPrinter.md index 093355d11d5..9a5e0224bd5 100644 --- a/src/Reports/Reports/examples/v1.0/Get-MgReportMonthlyPrintUsageByPrinter.md +++ b/src/Reports/Reports/examples/v1.0/Get-MgReportMonthlyPrintUsageByPrinter.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgReportMonthlyPrintUsageByPrinter Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportMonthlyPrintUsageByPrinter ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgReportMonthlyPrintUsageByPrinter Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Reports/Reports/examples/v1.0/Get-MgReportMonthlyPrintUsageByUser.md b/src/Reports/Reports/examples/v1.0/Get-MgReportMonthlyPrintUsageByUser.md index 093355d11d5..bf4e7d533ca 100644 --- a/src/Reports/Reports/examples/v1.0/Get-MgReportMonthlyPrintUsageByUser.md +++ b/src/Reports/Reports/examples/v1.0/Get-MgReportMonthlyPrintUsageByUser.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgReportMonthlyPrintUsageByUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Reports +Get-MgReportMonthlyPrintUsageByUser ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgReportMonthlyPrintUsageByUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/SchemaExtensions/SchemaExtensions/examples/v1.0/Get-MgSchemaExtension.md b/src/SchemaExtensions/SchemaExtensions/examples/v1.0/Get-MgSchemaExtension.md index 093355d11d5..463677ebfe3 100644 --- a/src/SchemaExtensions/SchemaExtensions/examples/v1.0/Get-MgSchemaExtension.md +++ b/src/SchemaExtensions/SchemaExtensions/examples/v1.0/Get-MgSchemaExtension.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSchemaExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.SchemaExtensions +Get-MgSchemaExtension -SchemaExtensionId $schemaExtensionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSchemaExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSchemaExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.SchemaExtensions +Get-MgSchemaExtension -Filter "id eq 'graphlearn_test'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSchemaExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/SchemaExtensions/SchemaExtensions/examples/v1.0/New-MgSchemaExtension.md b/src/SchemaExtensions/SchemaExtensions/examples/v1.0/New-MgSchemaExtension.md index 093355d11d5..369d52f1ca4 100644 --- a/src/SchemaExtensions/SchemaExtensions/examples/v1.0/New-MgSchemaExtension.md +++ b/src/SchemaExtensions/SchemaExtensions/examples/v1.0/New-MgSchemaExtension.md @@ -1,18 +1,85 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSchemaExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.SchemaExtensions +$params = @{ + Id = "graphlearn_courses" + Description = "Graph Learn training courses extensions" + TargetTypes = @( + "Group" + ) + Properties = @( + @{ + Name = "courseId" + Type = "Integer" + } + @{ + Name = "courseName" + Type = "String" + } + @{ + Name = "courseType" + Type = "String" + } + ) +} +New-MgSchemaExtension -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgSchemaExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgSchemaExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.SchemaExtensions +$params = @{ + Id = "courses" + Description = "Graph Learn training courses extensions" + TargetTypes = @( + "Group" + ) + Properties = @( + @{ + Name = "courseId" + Type = "Integer" + } + @{ + Name = "courseName" + Type = "String" + } + @{ + Name = "courseType" + Type = "String" + } + ) +} +New-MgSchemaExtension -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgSchemaExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgSchemaExtension Cmdlet +```powershell +Import-Module Microsoft.Graph.SchemaExtensions +$params = @{ + Id = "courses" + Description = "Graph Learn training courses extensions" + TargetTypes = @( + "Group" + ) + Owner = "50897f70-a455-4adf-87bc-4cf17091d5ac" + Properties = @( + @{ + Name = "courseId" + Type = "Integer" + } + @{ + Name = "courseName" + Type = "String" + } + @{ + Name = "courseType" + Type = "String" + } + ) +} +New-MgSchemaExtension -BodyParameter $params +``` +This example shows how to use the New-MgSchemaExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/SchemaExtensions/SchemaExtensions/examples/v1.0/Remove-MgSchemaExtension.md b/src/SchemaExtensions/SchemaExtensions/examples/v1.0/Remove-MgSchemaExtension.md index 093355d11d5..5fbf9f8da95 100644 --- a/src/SchemaExtensions/SchemaExtensions/examples/v1.0/Remove-MgSchemaExtension.md +++ b/src/SchemaExtensions/SchemaExtensions/examples/v1.0/Remove-MgSchemaExtension.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSchemaExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.SchemaExtensions +Remove-MgSchemaExtension -SchemaExtensionId $schemaExtensionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSchemaExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/SchemaExtensions/SchemaExtensions/examples/v1.0/Update-MgSchemaExtension.md b/src/SchemaExtensions/SchemaExtensions/examples/v1.0/Update-MgSchemaExtension.md index 093355d11d5..961a8eb0e44 100644 --- a/src/SchemaExtensions/SchemaExtensions/examples/v1.0/Update-MgSchemaExtension.md +++ b/src/SchemaExtensions/SchemaExtensions/examples/v1.0/Update-MgSchemaExtension.md @@ -1,18 +1,56 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSchemaExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.SchemaExtensions +$params = @{ + Owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" + Properties = @( + @{ + Name = "courseId" + Type = "Integer" + } + @{ + Name = "courseName" + Type = "String" + } + @{ + Name = "courseType" + Type = "String" + } + @{ + Name = "courseSupervisors" + Type = "String" + } + ) +} +Update-MgSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgSchemaExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgSchemaExtension Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.SchemaExtensions +$params = @{ + Owner = "ef4cb9a8-97c3-4ca7-854b-5cb5ced376fa" + Properties = @( + @{ + Name = "courseId" + Type = "Integer" + } + @{ + Name = "courseName" + Type = "String" + } + @{ + Name = "courseType" + Type = "String" + } + @{ + Name = "courseSupervisors" + Type = "String" + } + ) +} +Update-MgSchemaExtension -SchemaExtensionId $schemaExtensionId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgSchemaExtension Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0/Get-MgExternalConnection.md b/src/Search/Search/examples/v1.0/Get-MgExternalConnection.md index 093355d11d5..1ed6e2eb7e7 100644 --- a/src/Search/Search/examples/v1.0/Get-MgExternalConnection.md +++ b/src/Search/Search/examples/v1.0/Get-MgExternalConnection.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgExternalConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgExternalConnection -ExternalConnectionId $externalConnectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgExternalConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgExternalConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgExternalConnection ``` - -{{ Add description here }} - +This example shows how to use the Get-MgExternalConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0/Get-MgExternalConnectionGroup.md b/src/Search/Search/examples/v1.0/Get-MgExternalConnectionGroup.md index 093355d11d5..f60b7dde06c 100644 --- a/src/Search/Search/examples/v1.0/Get-MgExternalConnectionGroup.md +++ b/src/Search/Search/examples/v1.0/Get-MgExternalConnectionGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgExternalConnectionGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgExternalConnectionGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0/Get-MgExternalConnectionItem.md b/src/Search/Search/examples/v1.0/Get-MgExternalConnectionItem.md index 093355d11d5..b3620a72024 100644 --- a/src/Search/Search/examples/v1.0/Get-MgExternalConnectionItem.md +++ b/src/Search/Search/examples/v1.0/Get-MgExternalConnectionItem.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgExternalConnectionItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgExternalConnectionItem -ExternalConnectionId $externalConnectionId -ExternalItemId $externalItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgExternalConnectionItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0/Get-MgExternalConnectionOperation.md b/src/Search/Search/examples/v1.0/Get-MgExternalConnectionOperation.md index 093355d11d5..8e09194b1fe 100644 --- a/src/Search/Search/examples/v1.0/Get-MgExternalConnectionOperation.md +++ b/src/Search/Search/examples/v1.0/Get-MgExternalConnectionOperation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgExternalConnectionOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgExternalConnectionOperation -ExternalConnectionId $externalConnectionId -ConnectionOperationId $connectionOperationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgExternalConnectionOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0/Get-MgExternalConnectionSchema.md b/src/Search/Search/examples/v1.0/Get-MgExternalConnectionSchema.md index 093355d11d5..66d1dc5d0aa 100644 --- a/src/Search/Search/examples/v1.0/Get-MgExternalConnectionSchema.md +++ b/src/Search/Search/examples/v1.0/Get-MgExternalConnectionSchema.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgExternalConnectionSchema Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Get-MgExternalConnectionSchema -ExternalConnectionId $externalConnectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgExternalConnectionSchema Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0/New-MgExternalConnection.md b/src/Search/Search/examples/v1.0/New-MgExternalConnection.md index 093355d11d5..a0247c4c1d9 100644 --- a/src/Search/Search/examples/v1.0/New-MgExternalConnection.md +++ b/src/Search/Search/examples/v1.0/New-MgExternalConnection.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgExternalConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + Id = "contosohr" + Name = "Contoso HR" + Description = "Connection to index Contoso HR system" +} +New-MgExternalConnection -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgExternalConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0/New-MgExternalConnectionGroup.md b/src/Search/Search/examples/v1.0/New-MgExternalConnectionGroup.md index 093355d11d5..2128cf13651 100644 --- a/src/Search/Search/examples/v1.0/New-MgExternalConnectionGroup.md +++ b/src/Search/Search/examples/v1.0/New-MgExternalConnectionGroup.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgExternalConnectionGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + Id = "31bea3d537902000" + DisplayName = "Contoso Marketing" + Description = "The product marketing team" +} +New-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgExternalConnectionGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0/New-MgExternalConnectionGroupMember.md b/src/Search/Search/examples/v1.0/New-MgExternalConnectionGroupMember.md index 093355d11d5..49bf7f2ae40 100644 --- a/src/Search/Search/examples/v1.0/New-MgExternalConnectionGroupMember.md +++ b/src/Search/Search/examples/v1.0/New-MgExternalConnectionGroupMember.md @@ -1,18 +1,33 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgExternalConnectionGroupMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + Id = "e5477431-1038-484e-bf69-1dfedb97a110" + Type = "group" +} +New-MgExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgExternalConnectionGroupMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgExternalConnectionGroupMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + Id = "e811976d-83df-4cbd-8b9b-5215b18aa874" + Type = "user" +} +New-MgExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgExternalConnectionGroupMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgExternalConnectionGroupMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Search +$params = @{ + Id = "1431b9c38ee647f6a" + Type = "externalGroup" +} +New-MgExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params +``` +This example shows how to use the New-MgExternalConnectionGroupMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0/Remove-MgExternalConnection.md b/src/Search/Search/examples/v1.0/Remove-MgExternalConnection.md index 093355d11d5..8cba0fa7fa1 100644 --- a/src/Search/Search/examples/v1.0/Remove-MgExternalConnection.md +++ b/src/Search/Search/examples/v1.0/Remove-MgExternalConnection.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgExternalConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Remove-MgExternalConnection -ExternalConnectionId $externalConnectionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgExternalConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0/Remove-MgExternalConnectionGroup.md b/src/Search/Search/examples/v1.0/Remove-MgExternalConnectionGroup.md index 093355d11d5..594a7d0bcee 100644 --- a/src/Search/Search/examples/v1.0/Remove-MgExternalConnectionGroup.md +++ b/src/Search/Search/examples/v1.0/Remove-MgExternalConnectionGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgExternalConnectionGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Remove-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgExternalConnectionGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0/Remove-MgExternalConnectionGroupMember.md b/src/Search/Search/examples/v1.0/Remove-MgExternalConnectionGroupMember.md index 093355d11d5..c7b3afefb9e 100644 --- a/src/Search/Search/examples/v1.0/Remove-MgExternalConnectionGroupMember.md +++ b/src/Search/Search/examples/v1.0/Remove-MgExternalConnectionGroupMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgExternalConnectionGroupMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Remove-MgExternalConnectionGroupMember -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -IdentityId $identityId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgExternalConnectionGroupMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0/Remove-MgExternalConnectionItem.md b/src/Search/Search/examples/v1.0/Remove-MgExternalConnectionItem.md index 093355d11d5..42ba2ec9a58 100644 --- a/src/Search/Search/examples/v1.0/Remove-MgExternalConnectionItem.md +++ b/src/Search/Search/examples/v1.0/Remove-MgExternalConnectionItem.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgExternalConnectionItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +Remove-MgExternalConnectionItem -ExternalConnectionId $externalConnectionId -ExternalItemId $externalItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgExternalConnectionItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0/Update-MgExternalConnection.md b/src/Search/Search/examples/v1.0/Update-MgExternalConnection.md index 093355d11d5..95ba5a033aa 100644 --- a/src/Search/Search/examples/v1.0/Update-MgExternalConnection.md +++ b/src/Search/Search/examples/v1.0/Update-MgExternalConnection.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgExternalConnection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + Name = "Contoso HR Service Tickets" + Description = "Connection to index HR service tickets" +} +Update-MgExternalConnection -ExternalConnectionId $externalConnectionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgExternalConnection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0/Update-MgExternalConnectionGroup.md b/src/Search/Search/examples/v1.0/Update-MgExternalConnectionGroup.md index 093355d11d5..a3f8bbc234e 100644 --- a/src/Search/Search/examples/v1.0/Update-MgExternalConnectionGroup.md +++ b/src/Search/Search/examples/v1.0/Update-MgExternalConnectionGroup.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgExternalConnectionGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + DisplayName = "Contoso Marketing" + Description = "The product marketing team" +} +Update-MgExternalConnectionGroup -ExternalConnectionId $externalConnectionId -ExternalGroupId $externalGroupId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgExternalConnectionGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Search/Search/examples/v1.0/Update-MgExternalConnectionItem.md b/src/Search/Search/examples/v1.0/Update-MgExternalConnectionItem.md index 093355d11d5..794b988a6e2 100644 --- a/src/Search/Search/examples/v1.0/Update-MgExternalConnectionItem.md +++ b/src/Search/Search/examples/v1.0/Update-MgExternalConnectionItem.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgExternalConnectionItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Search +$params = @{ + Acl = @( + @{ + Type = "everyone" + Value = "67a141d8-cf4e-4528-ba07-bed21bfacd2d" + AccessType = "grant" + } + ) +} +Update-MgExternalConnectionItem -ExternalConnectionId $externalConnectionId -ExternalItemId $externalItemId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgExternalConnectionItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Add-MgSecurityCaseEdiscoveryCaseCustodianHold.md b/src/Security/Security/examples/v1.0/Add-MgSecurityCaseEdiscoveryCaseCustodianHold.md index 093355d11d5..1c44fc280a2 100644 --- a/src/Security/Security/examples/v1.0/Add-MgSecurityCaseEdiscoveryCaseCustodianHold.md +++ b/src/Security/Security/examples/v1.0/Add-MgSecurityCaseEdiscoveryCaseCustodianHold.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgSecurityCaseEdiscoveryCaseCustodianHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Add-MgSecurityCaseEdiscoveryCaseCustodianHold -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Add-MgSecurityCaseEdiscoveryCaseCustodianHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Add-MgSecurityCaseEdiscoveryCaseCustodianHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Add-MgSecurityCaseEdiscoveryCaseCustodianHold -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - +This example shows how to use the Add-MgSecurityCaseEdiscoveryCaseCustodianHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.md b/src/Security/Security/examples/v1.0/Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.md index 093355d11d5..e3baa654bbe 100644 --- a/src/Security/Security/examples/v1.0/Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.md +++ b/src/Security/Security/examples/v1.0/Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryNoncustodialDataSourceId $ediscoveryNoncustodialDataSourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryNoncustodialDataSourceId $ediscoveryNoncustodialDataSourceId ``` - -{{ Add description here }} - +This example shows how to use the Add-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Add-MgSecurityCaseEdiscoveryCaseReviewSetQueryTag.md b/src/Security/Security/examples/v1.0/Add-MgSecurityCaseEdiscoveryCaseReviewSetQueryTag.md index 093355d11d5..b6e1f76e52c 100644 --- a/src/Security/Security/examples/v1.0/Add-MgSecurityCaseEdiscoveryCaseReviewSetQueryTag.md +++ b/src/Security/Security/examples/v1.0/Add-MgSecurityCaseEdiscoveryCaseReviewSetQueryTag.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgSecurityCaseEdiscoveryCaseReviewSetQueryTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + TagsToAdd = @( + @{ + Id = "d3d99dc704a74801b792b3e1e722aa0d" + } + ) +} +Add-MgSecurityCaseEdiscoveryCaseReviewSetQueryTag -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgSecurityCaseEdiscoveryCaseReviewSetQueryTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Add-MgSecurityCaseEdiscoveryCaseReviewSetToReviewSet.md b/src/Security/Security/examples/v1.0/Add-MgSecurityCaseEdiscoveryCaseReviewSetToReviewSet.md index 093355d11d5..aa7cfa45bc7 100644 --- a/src/Security/Security/examples/v1.0/Add-MgSecurityCaseEdiscoveryCaseReviewSetToReviewSet.md +++ b/src/Security/Security/examples/v1.0/Add-MgSecurityCaseEdiscoveryCaseReviewSetToReviewSet.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgSecurityCaseEdiscoveryCaseReviewSetToReviewSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Search = @{ + Id = "c17e91d6-6bc0-4ecb-b388-269ea3d4ffb7" + } + AdditionalDataOptions = "linkedFiles" +} +Add-MgSecurityCaseEdiscoveryCaseReviewSetToReviewSet -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgSecurityCaseEdiscoveryCaseReviewSetToReviewSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Close-MgSecurityCaseEdiscoveryCase.md b/src/Security/Security/examples/v1.0/Close-MgSecurityCaseEdiscoveryCase.md index 093355d11d5..5ffb1c9ec9a 100644 --- a/src/Security/Security/examples/v1.0/Close-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/Security/examples/v1.0/Close-MgSecurityCaseEdiscoveryCase.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Close-MgSecurityCaseEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Close-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Close-MgSecurityCaseEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecurityAlert.md b/src/Security/Security/examples/v1.0/Get-MgSecurityAlert.md index 093355d11d5..e6e1a8cfc20 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecurityAlert.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecurityAlert.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityAlert Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityAlert -AlertId $alertId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityAlert Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityAlert Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityAlert ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityAlert Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCase.md b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCase.md index 093355d11d5..3d9541dd0b2 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCase.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCase ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodian.md b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodian.md index 093355d11d5..343b7051d3a 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodian.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md index 093355d11d5..9c5674f5b13 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md index 093355d11d5..a9425b42824 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md index 093355d11d5..69b31909c64 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource.md b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource.md index 093355d11d5..11d59b1d65f 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseCustodianUserSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md index 093355d11d5..38e8ed9a58c 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource -EdiscoveryCaseId $ediscoveryCaseId -ExpandProperty "dataSource" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource -EdiscoveryCaseId $ediscoveryCaseId -ExpandProperty "dataSource" -OutFile $outFileId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet +```powershell +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryNoncustodialDataSourceId $ediscoveryNoncustodialDataSourceId -ExpandProperty "dataSource" +``` +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseOperation.md b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseOperation.md index 093355d11d5..c743c44a57a 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseOperation.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseOperation.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseOperation -EdiscoveryCaseId $ediscoveryCaseId -CaseOperationId $caseOperationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseOperation -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseReviewSet.md b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseReviewSet.md index 093355d11d5..7533ab2d84c 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseReviewSet.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseReviewSet.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseReviewSet -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseReviewSet -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md index 093355d11d5..6b2dba5fe8e 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearch.md b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearch.md index 093355d11d5..bea4e904d74 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearch.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseSearch Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseSearch Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource.md b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource.md index 093355d11d5..96e59da1742 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -OutFile $outFileId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearchAdditionalSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource.md b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource.md index 093355d11d5..80b8003a105 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearchCustodianSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md index 093355d11d5..3aa80af3e2d 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource.md b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource.md index 093355d11d5..96a866a7172 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSearchNoncustodialSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSetting.md b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSetting.md index 093355d11d5..0d925d1c95b 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSetting.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseSetting.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseTag.md b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseTag.md index 093355d11d5..c9c0e0f6731 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseTag.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecurityCaseEdiscoveryCaseTag.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecurityCaseEdiscoveryCaseTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecurityCaseEdiscoveryCaseTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewTagId $ediscoveryReviewTagId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecurityCaseEdiscoveryCaseTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecuritySecureScore.md b/src/Security/Security/examples/v1.0/Get-MgSecuritySecureScore.md index 093355d11d5..cb722b4ea79 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecuritySecureScore.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecuritySecureScore.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecuritySecureScore Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecuritySecureScore -SecureScoreId $secureScoreId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecuritySecureScore Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecuritySecureScore Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecuritySecureScore -Top 1 ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecuritySecureScore Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Get-MgSecuritySecureScoreControlProfile.md b/src/Security/Security/examples/v1.0/Get-MgSecuritySecureScoreControlProfile.md index 093355d11d5..689af4a4aa7 100644 --- a/src/Security/Security/examples/v1.0/Get-MgSecuritySecureScoreControlProfile.md +++ b/src/Security/Security/examples/v1.0/Get-MgSecuritySecureScoreControlProfile.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSecuritySecureScoreControlProfile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSecuritySecureScoreControlProfile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSecuritySecureScoreControlProfile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Get-MgSecuritySecureScoreControlProfile ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSecuritySecureScoreControlProfile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Initialize-MgSecurityCaseEdiscoveryCaseCustodian.md b/src/Security/Security/examples/v1.0/Initialize-MgSecurityCaseEdiscoveryCaseCustodian.md index 093355d11d5..ba8abb2fd68 100644 --- a/src/Security/Security/examples/v1.0/Initialize-MgSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/Security/examples/v1.0/Initialize-MgSecurityCaseEdiscoveryCaseCustodian.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Initialize-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Initialize-MgSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Initialize-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy.md b/src/Security/Security/examples/v1.0/Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy.md index 093355d11d5..0507d216070 100644 --- a/src/Security/Security/examples/v1.0/Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy.md +++ b/src/Security/Security/examples/v1.0/Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Invoke-MgEstimateSecurityCaseEdiscoveryCaseSearchStatistics.md b/src/Security/Security/examples/v1.0/Invoke-MgEstimateSecurityCaseEdiscoveryCaseSearchStatistics.md index 093355d11d5..13dbba9cdee 100644 --- a/src/Security/Security/examples/v1.0/Invoke-MgEstimateSecurityCaseEdiscoveryCaseSearchStatistics.md +++ b/src/Security/Security/examples/v1.0/Invoke-MgEstimateSecurityCaseEdiscoveryCaseSearchStatistics.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgEstimateSecurityCaseEdiscoveryCaseSearchStatistics Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Invoke-MgEstimateSecurityCaseEdiscoveryCaseSearchStatistics -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgEstimateSecurityCaseEdiscoveryCaseSearchStatistics Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Invoke-MgReopenSecurityCaseEdiscoveryCase.md b/src/Security/Security/examples/v1.0/Invoke-MgReopenSecurityCaseEdiscoveryCase.md index 093355d11d5..2e23f482516 100644 --- a/src/Security/Security/examples/v1.0/Invoke-MgReopenSecurityCaseEdiscoveryCase.md +++ b/src/Security/Security/examples/v1.0/Invoke-MgReopenSecurityCaseEdiscoveryCase.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReopenSecurityCaseEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Invoke-MgReopenSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReopenSecurityCaseEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCase.md b/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCase.md index 093355d11d5..8d48d254019 100644 --- a/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCase.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + DisplayName = "CONTOSO LITIGATION-005" + Description = "Project Bazooka" + ExternalId = "324516" +} +New-MgSecurityCaseEdiscoveryCase -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseCustodian.md b/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseCustodian.md index 093355d11d5..ded74992aeb 100644 --- a/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseCustodian.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Email = "AdeleV@contoso.com" +} +New-MgSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md b/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md index 093355d11d5..d65cb5ded4d 100644 --- a/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md +++ b/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Site = @{ + WebUrl = "https://m365x809305.sharepoint.com/sites/Retail" + } +} +New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodianSiteSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md b/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md index 093355d11d5..f92b550b31a 100644 --- a/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md +++ b/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.md @@ -1,18 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + Group = @{ + Mail = "SOCTeam@M365x809305.onmicrosoft.com" + } + IncludedSources = "mailbox, site" +} +New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + "Group@odata.bind" = "https://graph.microsoft.com/v1.0/groups/93f90172-fe05-43ea-83cf-ff785a40d610" + IncludedSources = "mailbox" +} +New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet +```powershell +Import-Module Microsoft.Graph.Security +$params = @{ + "Group@odata.bind" = "https://graph.microsoft.com/v1.0/groups/93f90172-fe05-43ea-83cf-ff785a40d610" + IncludedSources = "mailbox" +} +New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params +``` +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md b/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md index 093355d11d5..a8e4d85bf21 100644 --- a/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md +++ b/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + DataSource = @{ + "@odata.type" = "microsoft.graph.security.siteSource" + } +} +New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseReviewSet.md b/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseReviewSet.md index 093355d11d5..3e35fb4657f 100644 --- a/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseReviewSet.md +++ b/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseReviewSet.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + DisplayName = "My review set 2" +} +New-MgSecurityCaseEdiscoveryCaseReviewSet -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseReviewSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md index 093355d11d5..881672dd475 100644 --- a/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + DisplayName = "My Query 1" + ContentQuery = "(Author="edison")" +} +New-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseSearch.md b/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseSearch.md index 093355d11d5..43a5392a8df 100644 --- a/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/Security/examples/v1.0/New-MgSecurityCaseEdiscoveryCaseSearch.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSecurityCaseEdiscoveryCaseSearch Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + DisplayName = "My search 2" + Description = "My first search" + ContentQuery = "(Author="edison")" + "CustodianSources@odata.bind" = @( + "https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/custodians/0053a61a3b6c42738f7606791716a22a/userSources/43434642-3137-3138-3432-374142313639" + "https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/custodians/0053a61a3b6c42738f7606791716a22a/siteSources/169718e3-a8df-449d-bef4-ee09fe1ddc5d" + "https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases('b0073e4e-4184-41c6-9eb7-8c8cc3e2288b')/custodians('0053a61a3b6c42738f7606791716a22a')/unifiedGroupSources('32e14fa4-3106-4bd2-a245-34bf0c718a7e')" + ) + "NoncustodialSources@odata.bind" = @( + "https://graph.microsoft.com/v1.0/security/cases/ediscoveryCases/b0073e4e-4184-41c6-9eb7-8c8cc3e2288b/noncustodialdatasources/35393639323133394345384344303043" + ) +} +New-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Publish-MgSecurityCaseEdiscoveryCaseCustodian.md b/src/Security/Security/examples/v1.0/Publish-MgSecurityCaseEdiscoveryCaseCustodian.md index 093355d11d5..db8b130356a 100644 --- a/src/Security/Security/examples/v1.0/Publish-MgSecurityCaseEdiscoveryCaseCustodian.md +++ b/src/Security/Security/examples/v1.0/Publish-MgSecurityCaseEdiscoveryCaseCustodian.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Publish-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Publish-MgSecurityCaseEdiscoveryCaseCustodian -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Publish-MgSecurityCaseEdiscoveryCaseCustodian Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Publish-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md b/src/Security/Security/examples/v1.0/Publish-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md index 093355d11d5..cb8353eab9a 100644 --- a/src/Security/Security/examples/v1.0/Publish-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md +++ b/src/Security/Security/examples/v1.0/Publish-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Publish-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Publish-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryNoncustodialDataSourceId $ediscoveryNoncustodialDataSourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Publish-MgSecurityCaseEdiscoveryCaseNoncustodialDataSource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCase.md b/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCase.md index 093355d11d5..4f94cc69fb8 100644 --- a/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCase.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityCaseEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityCaseEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseCustodianHold.md b/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseCustodianHold.md index 093355d11d5..ef2a5bd0316 100644 --- a/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseCustodianHold.md +++ b/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseCustodianHold.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityCaseEdiscoveryCaseCustodianHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityCaseEdiscoveryCaseCustodianHold -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseCustodianHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.md b/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.md index 093355d11d5..ca20510ea87 100644 --- a/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.md +++ b/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryNoncustodialDataSourceId $ediscoveryNoncustodialDataSourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryNoncustodialDataSourceId $ediscoveryNoncustodialDataSourceId ``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md index 093355d11d5..1cd6012b1b4 100644 --- a/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseSearch.md b/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseSearch.md index 093355d11d5..bc15c9d5bc1 100644 --- a/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseSearch.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityCaseEdiscoveryCaseSearch Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseTag.md b/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseTag.md index 093355d11d5..25b221923d5 100644 --- a/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseTag.md +++ b/src/Security/Security/examples/v1.0/Remove-MgSecurityCaseEdiscoveryCaseTag.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSecurityCaseEdiscoveryCaseTag Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Remove-MgSecurityCaseEdiscoveryCaseTag -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewTagId $ediscoveryReviewTagId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSecurityCaseEdiscoveryCaseTag Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Reset-MgSecurityCaseEdiscoveryCaseSettingToDefault.md b/src/Security/Security/examples/v1.0/Reset-MgSecurityCaseEdiscoveryCaseSettingToDefault.md index 093355d11d5..1fd692c1732 100644 --- a/src/Security/Security/examples/v1.0/Reset-MgSecurityCaseEdiscoveryCaseSettingToDefault.md +++ b/src/Security/Security/examples/v1.0/Reset-MgSecurityCaseEdiscoveryCaseSettingToDefault.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Reset-MgSecurityCaseEdiscoveryCaseSettingToDefault Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Reset-MgSecurityCaseEdiscoveryCaseSettingToDefault -EdiscoveryCaseId $ediscoveryCaseId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Reset-MgSecurityCaseEdiscoveryCaseSettingToDefault Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Update-MgSecurityAlert.md b/src/Security/Security/examples/v1.0/Update-MgSecurityAlert.md index 093355d11d5..f96730d858b 100644 --- a/src/Security/Security/examples/v1.0/Update-MgSecurityAlert.md +++ b/src/Security/Security/examples/v1.0/Update-MgSecurityAlert.md @@ -1,18 +1,46 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityAlert Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + AssignedTo = "String" + ClosedDateTime = [System.DateTime]::Parse("String (timestamp)") + Comments = @( + "String" + ) + Feedback = "@odata.type: microsoft.graph.alertFeedback" + Status = "@odata.type: microsoft.graph.alertStatus" + Tags = @( + "String" + ) + VendorInformation = @{ + Provider = "String" + Vendor = "String" + } +} +Update-MgSecurityAlert -AlertId $alertId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgSecurityAlert Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgSecurityAlert Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + AssignedTo = "String" + ClosedDateTime = [System.DateTime]::Parse("String (timestamp)") + Comments = @( + "String" + ) + Feedback = "@odata.type: microsoft.graph.alertFeedback" + Status = "@odata.type: microsoft.graph.alertStatus" + Tags = @( + "String" + ) + VendorInformation = @{ + Provider = "String" + Vendor = "String" + } +} +Update-MgSecurityAlert -AlertId $alertId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityAlert Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCase.md b/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCase.md index 093355d11d5..8b8e49cf037 100644 --- a/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCase.md +++ b/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCase.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityCaseEdiscoveryCase Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + DisplayName = "My Case 1 - Renamed" + Description = "Updated description" +} +Update-MgSecurityCaseEdiscoveryCase -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityCaseEdiscoveryCase Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseCustodianIndex.md b/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseCustodianIndex.md index 093355d11d5..a0d1c1d1518 100644 --- a/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseCustodianIndex.md +++ b/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseCustodianIndex.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityCaseEdiscoveryCaseCustodianIndex Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Update-MgSecurityCaseEdiscoveryCaseCustodianIndex -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseCustodianIndex Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceIndex.md b/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceIndex.md index 093355d11d5..25f9a7f767b 100644 --- a/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceIndex.md +++ b/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceIndex.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceIndex Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +Update-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceIndex -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryNoncustodialDataSourceId $ediscoveryNoncustodialDataSourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseNoncustodialDataSourceIndex Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md b/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md index 093355d11d5..a145c5f8494 100644 --- a/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md +++ b/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + DisplayName = "My Query 1 (update)" + ContentQuery = "(Author="edisons")" +} +Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryReviewSetId $ediscoveryReviewSetId -EdiscoveryReviewSetQueryId $ediscoveryReviewSetQueryId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseReviewSetQuery Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseSearch.md b/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseSearch.md index 093355d11d5..0f357fb2d80 100644 --- a/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseSearch.md +++ b/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseSearch.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityCaseEdiscoveryCaseSearch Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + DisplayName = "Teams search" +} +Update-MgSecurityCaseEdiscoveryCaseSearch -EdiscoveryCaseId $ediscoveryCaseId -EdiscoverySearchId $ediscoverySearchId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseSearch Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseSetting.md b/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseSetting.md index 093355d11d5..6bb7f565180 100644 --- a/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseSetting.md +++ b/src/Security/Security/examples/v1.0/Update-MgSecurityCaseEdiscoveryCaseSetting.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecurityCaseEdiscoveryCaseSetting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + "@odata.type" = "#microsoft.graph.security.ediscoveryCaseSettings" + RedundancyDetection = @{ + "@odata.type" = "microsoft.graph.security.redundancyDetectionSettings" + } + TopicModeling = @{ + "@odata.type" = "microsoft.graph.security.topicModelingSettings" + } + Ocr = @{ + "@odata.type" = "microsoft.graph.security.ocrSettings" + } +} +Update-MgSecurityCaseEdiscoveryCaseSetting -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecurityCaseEdiscoveryCaseSetting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Security/Security/examples/v1.0/Update-MgSecuritySecureScoreControlProfile.md b/src/Security/Security/examples/v1.0/Update-MgSecuritySecureScoreControlProfile.md index 093355d11d5..3ee33f799b8 100644 --- a/src/Security/Security/examples/v1.0/Update-MgSecuritySecureScoreControlProfile.md +++ b/src/Security/Security/examples/v1.0/Update-MgSecuritySecureScoreControlProfile.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSecuritySecureScoreControlProfile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + AssignedTo = "" + Comment = "control is reviewed" + State = "Reviewed" + VendorInformation = @{ + Provider = "SecureScore" + ProviderVersion = $null + SubProvider = $null + Vendor = "Microsoft" + } +} +Update-MgSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Update-MgSecuritySecureScoreControlProfile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Update-MgSecuritySecureScoreControlProfile Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Security +$params = @{ + AssignedTo = "" + Comment = "control is reviewed" + State = "Reviewed" + VendorInformation = @{ + Provider = "SecureScore" + ProviderVersion = $null + SubProvider = $null + Vendor = "Microsoft" + } +} +Update-MgSecuritySecureScoreControlProfile -SecureScoreControlProfileId $secureScoreControlProfileId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Update-MgSecuritySecureScoreControlProfile Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Add-MgSiteListContentTypeCopy.md b/src/Sites/Sites/examples/v1.0/Add-MgSiteListContentTypeCopy.md index 093355d11d5..e97b7e16de3 100644 --- a/src/Sites/Sites/examples/v1.0/Add-MgSiteListContentTypeCopy.md +++ b/src/Sites/Sites/examples/v1.0/Add-MgSiteListContentTypeCopy.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgSiteListContentTypeCopy Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + ContentType = "https://graph.microsoft.com/v1.0/sites/{site-id}/contentTypes/0x0101" +} +Add-MgSiteListContentTypeCopy -SiteId $siteId -ListId $listId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Add-MgSiteListContentTypeCopy Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Add-MgSiteListContentTypeCopyFromContentTypeHub.md b/src/Sites/Sites/examples/v1.0/Add-MgSiteListContentTypeCopyFromContentTypeHub.md index 093355d11d5..ae45a5e322a 100644 --- a/src/Sites/Sites/examples/v1.0/Add-MgSiteListContentTypeCopyFromContentTypeHub.md +++ b/src/Sites/Sites/examples/v1.0/Add-MgSiteListContentTypeCopyFromContentTypeHub.md @@ -1,18 +1,30 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgSiteListContentTypeCopyFromContentTypeHub Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + ContentTypeId = "0x0101" +} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Add-MgSiteListContentTypeCopyFromContentTypeHub Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Add-MgSiteListContentTypeCopyFromContentTypeHub Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + ContentTypeId = "0x0101" +} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Add-MgSiteListContentTypeCopyFromContentTypeHub Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Add-MgSiteListContentTypeCopyFromContentTypeHub Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +$params = @{ + ContentTypeId = "0x0101" +} +Add-MgSiteListContentTypeCopyFromContentTypeHub -SiteId $siteId -ListId $listId -BodyParameter $params +``` +This example shows how to use the Add-MgSiteListContentTypeCopyFromContentTypeHub Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Copy-MgSiteContentTypeToDefaultContentLocation.md b/src/Sites/Sites/examples/v1.0/Copy-MgSiteContentTypeToDefaultContentLocation.md index 093355d11d5..89c2c33ead5 100644 --- a/src/Sites/Sites/examples/v1.0/Copy-MgSiteContentTypeToDefaultContentLocation.md +++ b/src/Sites/Sites/examples/v1.0/Copy-MgSiteContentTypeToDefaultContentLocation.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Copy-MgSiteContentTypeToDefaultContentLocation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + SourceFile = @{ + SharepointIds = @{ + ListId = "e2ecf63b-b0fd-48f7-a54a-d8c15479e3b0" + ListItemId = "2" + } + } + DestinationFileName = "newname.txt" +} +Copy-MgSiteContentTypeToDefaultContentLocation -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Copy-MgSiteContentTypeToDefaultContentLocation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSite.md b/src/Sites/Sites/examples/v1.0/Get-MgSite.md index 093355d11d5..d06a8565629 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSite.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSite.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSite -SiteId $siteId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSite -Search "{query}" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgSite Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +Get-MgSite -Search "{query}" -OutFile $outFileId +``` +This example shows how to use the Get-MgSite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteColumn.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteColumn.md index 093355d11d5..8aa3eaeb358 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteColumn.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteColumn.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteColumn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteColumn -SiteId $siteId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteColumn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteContentType.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteContentType.md index 093355d11d5..b628661025a 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteContentType.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteContentType.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteContentType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteContentType -SiteId $siteId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSiteContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSiteContentType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteContentType -SiteId $siteId -OutFile $outFileId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgSiteContentType Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +Get-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId +``` +This example shows how to use the Get-MgSiteContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteContentTypeColumn.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteContentTypeColumn.md index 093355d11d5..5fac8bfbf93 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteContentTypeColumn.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteContentTypeColumn.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteContentTypeColumn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -ColumnDefinitionId $columnDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSiteContentTypeColumn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSiteContentTypeColumn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteContentTypeColumn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteDefaultDrive.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteDefaultDrive.md index 093355d11d5..c7215430c65 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteDefaultDrive.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteDefaultDrive.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteDefaultDrive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteDefaultDrive -SiteId $siteId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteDefaultDrive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteDrive.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteDrive.md index 093355d11d5..d866195ee41 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteDrive.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteDrive.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteDrive Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteDrive -SiteId $siteId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteDrive Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteList.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteList.md index 093355d11d5..ce9d9e98c3e 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteList.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteList.md @@ -1,18 +1,42 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteList Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteList -SiteId $siteId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSiteList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSiteList Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteList -SiteId $siteId -ListId $listId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgSiteList Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +Get-MgSiteList -SiteId $siteId -ListId $listId +``` +This example shows how to use the Get-MgSiteList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgSiteList Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +Get-MgSiteList -SiteId $siteId -ListId $listId -Property "id,name,lastModifiedDateTime" -ExpandProperty "columns(select=name,description),items)" +``` +This example shows how to use the Get-MgSiteList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgSiteList Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +Get-MgSiteList -SiteId $siteId -ListId $listId +``` +This example shows how to use the Get-MgSiteList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the Get-MgSiteList Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +Get-MgSiteList -SiteId $siteId -ListId $listId +``` +This example shows how to use the Get-MgSiteList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteListColumn.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteListColumn.md index 093355d11d5..21ad68064b3 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteListColumn.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteListColumn.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteListColumn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteListColumn -SiteId $siteId -ListId $listId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteListColumn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteListContentType.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteListContentType.md index 093355d11d5..707302fc487 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteListContentType.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteListContentType.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteListContentType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteListContentType -SiteId $siteId -ListId $listId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteListContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteListContentTypeCompatibleHubContentType.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteListContentTypeCompatibleHubContentType.md index 093355d11d5..e7bbf581224 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteListContentTypeCompatibleHubContentType.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteListContentTypeCompatibleHubContentType.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteListContentTypeCompatibleHubContentType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteListContentTypeCompatibleHubContentType -SiteId $siteId -ListId $listId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteListContentTypeCompatibleHubContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteListItem.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteListItem.md index 093355d11d5..e5814197197 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteListItem.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteListItem.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteListItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteListItem -SiteId $siteId -ListId $listId -ListItemId $listItemId -ExpandProperty "fields" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteListItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteListItemDocumentSetVersion.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteListItemDocumentSetVersion.md index 093355d11d5..c0a41576121 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteListItemDocumentSetVersion.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteListItemDocumentSetVersion.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteListItemDocumentSetVersion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSiteListItemDocumentSetVersion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSiteListItemDocumentSetVersion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteListItemDocumentSetVersion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteListItemVersion.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteListItemVersion.md index 093355d11d5..3f5c7aaedd1 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteListItemVersion.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteListItemVersion.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteListItemVersion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSiteListItemVersion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSiteListItemVersion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -ListItemVersionId $listItemVersionId -ExpandProperty "fields" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteListItemVersion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSitePermission.md b/src/Sites/Sites/examples/v1.0/Get-MgSitePermission.md index 093355d11d5..a81d9eb2f3a 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSitePermission.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSitePermission.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSitePermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSitePermission -SiteId $siteId -PermissionId $permissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSitePermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSitePermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSitePermission -SiteId $siteId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSitePermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStore.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStore.md index 093355d11d5..5dc284c5bab 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStore.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStore.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteTermStore Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteTermStore -SiteId $siteId -OutFile $outFileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteTermStore Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreGroup.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreGroup.md index 093355d11d5..a3eedaf9fdf 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreGroup.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreGroup.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteTermStoreGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteTermStoreGroup -SiteId $siteId -OutFile $outFileId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgSiteTermStoreGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgSiteTermStoreGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteTermStoreGroup -SiteId $siteId -GroupId $groupId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteTermStoreGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgSiteTermStoreGroup Cmdlet +```powershell +Import-Module Microsoft.Graph.Sites +Get-MgSiteTermStoreGroup -SiteId $siteId -GroupId $groupId -Property "*,parentSiteId" +``` +This example shows how to use the Get-MgSiteTermStoreGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreGroupSet.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreGroupSet.md index 093355d11d5..2f1a43dee16 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreGroupSet.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreGroupSet.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteTermStoreGroupSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteTermStoreGroupSet -SiteId $siteId -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteTermStoreGroupSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreGroupSetTerm.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreGroupSetTerm.md index 093355d11d5..9a610109fce 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreGroupSetTerm.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreGroupSetTerm.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteTermStoreGroupSetTerm Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteTermStoreGroupSetTerm -SiteId $siteId -GroupId $groupId -SetId $setId -TermId $termId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteTermStoreGroupSetTerm Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreSet.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreSet.md index 093355d11d5..27e4b693762 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreSet.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreSet.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteTermStoreSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteTermStoreSet -SiteId $siteId -SetId $setId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteTermStoreSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreSetChild.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreSetChild.md index 093355d11d5..c40c71470a9 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreSetChild.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreSetChild.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteTermStoreSetChild Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteTermStoreSetChild -SiteId $siteId -SetId $setId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteTermStoreSetChild Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreSetRelation.md b/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreSetRelation.md index 093355d11d5..9ec6d9d35ef 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreSetRelation.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSiteTermStoreSetRelation.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSiteTermStoreSetRelation Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSiteTermStoreSetRelation -SiteId $siteId -SetId $setId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSiteTermStoreSetRelation Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgSubSite.md b/src/Sites/Sites/examples/v1.0/Get-MgSubSite.md index 093355d11d5..63b4711da7c 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgSubSite.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgSubSite.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgSubSite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Get-MgSubSite -SiteId $siteId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgSubSite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Get-MgUserFollowedSite.md b/src/Sites/Sites/examples/v1.0/Get-MgUserFollowedSite.md index 093355d11d5..e389c2ac152 100644 --- a/src/Sites/Sites/examples/v1.0/Get-MgUserFollowedSite.md +++ b/src/Sites/Sites/examples/v1.0/Get-MgUserFollowedSite.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserFollowedSite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +# A UPN can also be used as -UserId. +Get-MgUserFollowedSite -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserFollowedSite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Join-MgSiteContentTypeWithHubSite.md b/src/Sites/Sites/examples/v1.0/Join-MgSiteContentTypeWithHubSite.md index 093355d11d5..1f88c9eae4d 100644 --- a/src/Sites/Sites/examples/v1.0/Join-MgSiteContentTypeWithHubSite.md +++ b/src/Sites/Sites/examples/v1.0/Join-MgSiteContentTypeWithHubSite.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Join-MgSiteContentTypeWithHubSite Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + HubSiteUrls = @( + "https://graph.microsoft.com/v1.0/sites/{site-id}" + ) + PropagateToExistingLists = $false +} +Join-MgSiteContentTypeWithHubSite -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Join-MgSiteContentTypeWithHubSite Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/New-MgSiteColumn.md b/src/Sites/Sites/examples/v1.0/New-MgSiteColumn.md index 093355d11d5..e89d734a213 100644 --- a/src/Sites/Sites/examples/v1.0/New-MgSiteColumn.md +++ b/src/Sites/Sites/examples/v1.0/New-MgSiteColumn.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSiteColumn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Description = "test" + EnforceUniqueValues = $false + Hidden = $false + Indexed = $false + Name = "Title" + Text = @{ + AllowMultipleLines = $false + AppendChangesToExistingText = $false + LinesForEditing = 0 + MaxLength = 255 + } +} +New-MgSiteColumn -SiteId $siteId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSiteColumn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/New-MgSiteContentType.md b/src/Sites/Sites/examples/v1.0/New-MgSiteContentType.md index 093355d11d5..27f532b11fa 100644 --- a/src/Sites/Sites/examples/v1.0/New-MgSiteContentType.md +++ b/src/Sites/Sites/examples/v1.0/New-MgSiteContentType.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSiteContentType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Name = "docSet" + Description = "custom docset" + Base = @{ + Name = "Document Set" + Id = "0x0120D520" + } + Group = "Document Set Content Types" +} +New-MgSiteContentType -SiteId $siteId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSiteContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/New-MgSiteContentTypeColumn.md b/src/Sites/Sites/examples/v1.0/New-MgSiteContentTypeColumn.md index 093355d11d5..ce1951bff30 100644 --- a/src/Sites/Sites/examples/v1.0/New-MgSiteContentTypeColumn.md +++ b/src/Sites/Sites/examples/v1.0/New-MgSiteContentTypeColumn.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSiteContentTypeColumn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + "SourceColumn@odata.bind" = "https://graph.microsoft.com/v1.0/sites/root/columns/99ddcf45-e2f7-4f17-82b0-6fba34445103" +} +New-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSiteContentTypeColumn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/New-MgSiteList.md b/src/Sites/Sites/examples/v1.0/New-MgSiteList.md index 093355d11d5..66083c9b800 100644 --- a/src/Sites/Sites/examples/v1.0/New-MgSiteList.md +++ b/src/Sites/Sites/examples/v1.0/New-MgSiteList.md @@ -1,18 +1,25 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSiteList Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + DisplayName = "Books" + Columns = @( + @{ + Name = "Author" + Text = @{ + } + } + @{ + Name = "PageCount" + Number = @{ + } + } + ) + List = @{ + Template = "genericList" + } +} +New-MgSiteList -SiteId $siteId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSiteList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/New-MgSiteListColumn.md b/src/Sites/Sites/examples/v1.0/New-MgSiteListColumn.md index 093355d11d5..499765fcb5e 100644 --- a/src/Sites/Sites/examples/v1.0/New-MgSiteListColumn.md +++ b/src/Sites/Sites/examples/v1.0/New-MgSiteListColumn.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSiteListColumn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Description = "test" + EnforceUniqueValues = $false + Hidden = $false + Indexed = $false + Name = "Title" + Text = @{ + AllowMultipleLines = $false + AppendChangesToExistingText = $false + LinesForEditing = 0 + MaxLength = 255 + } +} +New-MgSiteListColumn -SiteId $siteId -ListId $listId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSiteListColumn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/New-MgSiteListItem.md b/src/Sites/Sites/examples/v1.0/New-MgSiteListItem.md index 093355d11d5..2b5c2b22fcf 100644 --- a/src/Sites/Sites/examples/v1.0/New-MgSiteListItem.md +++ b/src/Sites/Sites/examples/v1.0/New-MgSiteListItem.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSiteListItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Fields = @{ + Title = "Widget" + Color = "Purple" + Weight = + } +} +New-MgSiteListItem -SiteId $siteId -ListId $listId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSiteListItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/New-MgSiteListItemDocumentSetVersion.md b/src/Sites/Sites/examples/v1.0/New-MgSiteListItemDocumentSetVersion.md index 093355d11d5..a94e05f8e23 100644 --- a/src/Sites/Sites/examples/v1.0/New-MgSiteListItemDocumentSetVersion.md +++ b/src/Sites/Sites/examples/v1.0/New-MgSiteListItemDocumentSetVersion.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSiteListItemDocumentSetVersion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Comment = "v1" + ShouldCaptureMinorVersion = $false +} +New-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSiteListItemDocumentSetVersion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/New-MgSitePermission.md b/src/Sites/Sites/examples/v1.0/New-MgSitePermission.md index 093355d11d5..363e7ee368f 100644 --- a/src/Sites/Sites/examples/v1.0/New-MgSitePermission.md +++ b/src/Sites/Sites/examples/v1.0/New-MgSitePermission.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSitePermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Roles = @( + "write" + ) + GrantedToIdentities = @( + @{ + Application = @{ + Id = "89ea5c94-7736-4e25-95ad-3fa95f62b66e" + DisplayName = "Contoso Time Manager App" + } + } + ) +} +New-MgSitePermission -SiteId $siteId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSitePermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/New-MgSiteTermStoreGroup.md b/src/Sites/Sites/examples/v1.0/New-MgSiteTermStoreGroup.md index 093355d11d5..09006f89d26 100644 --- a/src/Sites/Sites/examples/v1.0/New-MgSiteTermStoreGroup.md +++ b/src/Sites/Sites/examples/v1.0/New-MgSiteTermStoreGroup.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSiteTermStoreGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + DisplayName = "myGroup" +} +New-MgSiteTermStoreGroup -SiteId $siteId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSiteTermStoreGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/New-MgSiteTermStoreSetChild.md b/src/Sites/Sites/examples/v1.0/New-MgSiteTermStoreSetChild.md index 093355d11d5..36a8e7d271c 100644 --- a/src/Sites/Sites/examples/v1.0/New-MgSiteTermStoreSetChild.md +++ b/src/Sites/Sites/examples/v1.0/New-MgSiteTermStoreSetChild.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgSiteTermStoreSetChild Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Labels = @( + @{ + LanguageTag = "en-US" + Name = "Car" + IsDefault = $true + } + ) +} +New-MgSiteTermStoreSetChild -SiteId $siteId -SetId $setId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgSiteTermStoreSetChild Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Publish-MgSiteContentType.md b/src/Sites/Sites/examples/v1.0/Publish-MgSiteContentType.md index 093355d11d5..a49d972730c 100644 --- a/src/Sites/Sites/examples/v1.0/Publish-MgSiteContentType.md +++ b/src/Sites/Sites/examples/v1.0/Publish-MgSiteContentType.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Publish-MgSiteContentType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Publish-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Publish-MgSiteContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Remove-MgSiteContentType.md b/src/Sites/Sites/examples/v1.0/Remove-MgSiteContentType.md index 093355d11d5..bbbb9224a1f 100644 --- a/src/Sites/Sites/examples/v1.0/Remove-MgSiteContentType.md +++ b/src/Sites/Sites/examples/v1.0/Remove-MgSiteContentType.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSiteContentType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Remove-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSiteContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Remove-MgSiteContentTypeColumn.md b/src/Sites/Sites/examples/v1.0/Remove-MgSiteContentTypeColumn.md index 093355d11d5..2bb8fe25e24 100644 --- a/src/Sites/Sites/examples/v1.0/Remove-MgSiteContentTypeColumn.md +++ b/src/Sites/Sites/examples/v1.0/Remove-MgSiteContentTypeColumn.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSiteContentTypeColumn Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Remove-MgSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -ColumnDefinitionId $columnDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSiteContentTypeColumn Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Remove-MgSiteListItem.md b/src/Sites/Sites/examples/v1.0/Remove-MgSiteListItem.md index 093355d11d5..7abc69f7410 100644 --- a/src/Sites/Sites/examples/v1.0/Remove-MgSiteListItem.md +++ b/src/Sites/Sites/examples/v1.0/Remove-MgSiteListItem.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSiteListItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Remove-MgSiteListItem -SiteId $siteId -ListId $listId -ListItemId $listItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSiteListItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Remove-MgSiteListItemDocumentSetVersion.md b/src/Sites/Sites/examples/v1.0/Remove-MgSiteListItemDocumentSetVersion.md index 093355d11d5..699d5742c71 100644 --- a/src/Sites/Sites/examples/v1.0/Remove-MgSiteListItemDocumentSetVersion.md +++ b/src/Sites/Sites/examples/v1.0/Remove-MgSiteListItemDocumentSetVersion.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSiteListItemDocumentSetVersion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Remove-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSiteListItemDocumentSetVersion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Remove-MgSitePermission.md b/src/Sites/Sites/examples/v1.0/Remove-MgSitePermission.md index 093355d11d5..87f483f71df 100644 --- a/src/Sites/Sites/examples/v1.0/Remove-MgSitePermission.md +++ b/src/Sites/Sites/examples/v1.0/Remove-MgSitePermission.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSitePermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Remove-MgSitePermission -SiteId $siteId -PermissionId $permissionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSitePermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Remove-MgSiteTermStoreGroup.md b/src/Sites/Sites/examples/v1.0/Remove-MgSiteTermStoreGroup.md index 093355d11d5..b8b7c3405cf 100644 --- a/src/Sites/Sites/examples/v1.0/Remove-MgSiteTermStoreGroup.md +++ b/src/Sites/Sites/examples/v1.0/Remove-MgSiteTermStoreGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSiteTermStoreGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Remove-MgSiteTermStoreGroup -SiteId $siteId -GroupId $groupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSiteTermStoreGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Remove-MgSiteTermStoreSet.md b/src/Sites/Sites/examples/v1.0/Remove-MgSiteTermStoreSet.md index 093355d11d5..6c0382684fe 100644 --- a/src/Sites/Sites/examples/v1.0/Remove-MgSiteTermStoreSet.md +++ b/src/Sites/Sites/examples/v1.0/Remove-MgSiteTermStoreSet.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSiteTermStoreSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Remove-MgSiteTermStoreSet -SiteId $siteId -SetId $setId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSiteTermStoreSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Remove-MgSiteTermStoreSetTerm.md b/src/Sites/Sites/examples/v1.0/Remove-MgSiteTermStoreSetTerm.md index 093355d11d5..bed5734bc55 100644 --- a/src/Sites/Sites/examples/v1.0/Remove-MgSiteTermStoreSetTerm.md +++ b/src/Sites/Sites/examples/v1.0/Remove-MgSiteTermStoreSetTerm.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgSiteTermStoreSetTerm Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Remove-MgSiteTermStoreSetTerm -SiteId $siteId -SetId $setId -TermId $termId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgSiteTermStoreSetTerm Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Restore-MgSiteListItemDocumentSetVersion.md b/src/Sites/Sites/examples/v1.0/Restore-MgSiteListItemDocumentSetVersion.md index 093355d11d5..5b3f69954de 100644 --- a/src/Sites/Sites/examples/v1.0/Restore-MgSiteListItemDocumentSetVersion.md +++ b/src/Sites/Sites/examples/v1.0/Restore-MgSiteListItemDocumentSetVersion.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Restore-MgSiteListItemDocumentSetVersion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemDocumentSetVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -DocumentSetVersionId $documentSetVersionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Restore-MgSiteListItemDocumentSetVersion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Restore-MgSiteListItemVersion.md b/src/Sites/Sites/examples/v1.0/Restore-MgSiteListItemVersion.md index 093355d11d5..891779c0c8f 100644 --- a/src/Sites/Sites/examples/v1.0/Restore-MgSiteListItemVersion.md +++ b/src/Sites/Sites/examples/v1.0/Restore-MgSiteListItemVersion.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Restore-MgSiteListItemVersion Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Restore-MgSiteListItemVersion -SiteId $siteId -ListId $listId -ListItemId $listItemId -ListItemVersionId $listItemVersionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Restore-MgSiteListItemVersion Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Test-MgSiteContentTypePublished.md b/src/Sites/Sites/examples/v1.0/Test-MgSiteContentTypePublished.md index 093355d11d5..b3c39701bfd 100644 --- a/src/Sites/Sites/examples/v1.0/Test-MgSiteContentTypePublished.md +++ b/src/Sites/Sites/examples/v1.0/Test-MgSiteContentTypePublished.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Test-MgSiteContentTypePublished Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Test-MgSiteContentTypePublished -SiteId $siteId -ContentTypeId $contentTypeId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Test-MgSiteContentTypePublished Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Unpublish-MgSiteContentType.md b/src/Sites/Sites/examples/v1.0/Unpublish-MgSiteContentType.md index 093355d11d5..aef59ec8ca2 100644 --- a/src/Sites/Sites/examples/v1.0/Unpublish-MgSiteContentType.md +++ b/src/Sites/Sites/examples/v1.0/Unpublish-MgSiteContentType.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Unpublish-MgSiteContentType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +Unpublish-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Unpublish-MgSiteContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Update-MgSiteContentType.md b/src/Sites/Sites/examples/v1.0/Update-MgSiteContentType.md index 093355d11d5..3b10d9efe98 100644 --- a/src/Sites/Sites/examples/v1.0/Update-MgSiteContentType.md +++ b/src/Sites/Sites/examples/v1.0/Update-MgSiteContentType.md @@ -1,18 +1,49 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSiteContentType Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Name = "updatedCt" + DocumentSet = @{ + ShouldPrefixNameToFile = $true + AllowedContentTypes = @( + @{ + Id = "0x0101" + Name = "Document" + } + ) + DefaultContents = @( + @{ + FileName = "a.txt" + ContentType = @{ + Id = "0x0101" + } + } + @{ + FileName = "b.txt" + ContentType = @{ + Id = "0x0101" + } + } + ) + SharedColumns = @( + @{ + Name = "Description" + Id = "cbb92da4-fd46-4c7d-af6c-3128c2a5576e" + } + @{ + Name = "Address" + Id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" + } + ) + WelcomePageColumns = @( + @{ + Name = "Address" + Id = "fc2e188e-ba91-48c9-9dd3-16431afddd50" + } + ) + } +} +Update-MgSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSiteContentType Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Update-MgSiteListItemField.md b/src/Sites/Sites/examples/v1.0/Update-MgSiteListItemField.md index 093355d11d5..04f565c666f 100644 --- a/src/Sites/Sites/examples/v1.0/Update-MgSiteListItemField.md +++ b/src/Sites/Sites/examples/v1.0/Update-MgSiteListItemField.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSiteListItemField Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Color = "Fuchsia" + Quantity = +} +Update-MgSiteListItemField -SiteId $siteId -ListId $listId -ListItemId $listItemId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSiteListItemField Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Update-MgSitePermission.md b/src/Sites/Sites/examples/v1.0/Update-MgSitePermission.md index 093355d11d5..9990ad6d08e 100644 --- a/src/Sites/Sites/examples/v1.0/Update-MgSitePermission.md +++ b/src/Sites/Sites/examples/v1.0/Update-MgSitePermission.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSitePermission Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Roles = @( + "read" + ) +} +Update-MgSitePermission -SiteId $siteId -PermissionId $permissionId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSitePermission Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Update-MgSiteTermStore.md b/src/Sites/Sites/examples/v1.0/Update-MgSiteTermStore.md index 093355d11d5..fd55c698022 100644 --- a/src/Sites/Sites/examples/v1.0/Update-MgSiteTermStore.md +++ b/src/Sites/Sites/examples/v1.0/Update-MgSiteTermStore.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSiteTermStore Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + DefaultLanguageTag = "en-US" +} +Update-MgSiteTermStore -SiteId $siteId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSiteTermStore Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Update-MgSiteTermStoreSet.md b/src/Sites/Sites/examples/v1.0/Update-MgSiteTermStoreSet.md index 093355d11d5..486653b947a 100644 --- a/src/Sites/Sites/examples/v1.0/Update-MgSiteTermStoreSet.md +++ b/src/Sites/Sites/examples/v1.0/Update-MgSiteTermStoreSet.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSiteTermStoreSet Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Description = "mySet" +} +Update-MgSiteTermStoreSet -SiteId $siteId -SetId $setId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSiteTermStoreSet Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Sites/Sites/examples/v1.0/Update-MgSiteTermStoreSetTerm.md b/src/Sites/Sites/examples/v1.0/Update-MgSiteTermStoreSetTerm.md index 093355d11d5..09d8a5fb541 100644 --- a/src/Sites/Sites/examples/v1.0/Update-MgSiteTermStoreSetTerm.md +++ b/src/Sites/Sites/examples/v1.0/Update-MgSiteTermStoreSetTerm.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgSiteTermStoreSetTerm Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Sites +$params = @{ + Labels = @( + @{ + Name = "changedLabel" + LanguageTag = "en-US" + IsDefault = $true + } + ) +} +Update-MgSiteTermStoreSetTerm -SiteId $siteId -SetId $setId -TermId $termId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgSiteTermStoreSetTerm Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Add-MgTeamMember.md b/src/Teams/Teams/examples/v1.0/Add-MgTeamMember.md index 093355d11d5..6f859aea166 100644 --- a/src/Teams/Teams/examples/v1.0/Add-MgTeamMember.md +++ b/src/Teams/Teams/examples/v1.0/Add-MgTeamMember.md @@ -1,18 +1,72 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Add-MgTeamMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$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 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Add-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Add-MgTeamMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$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 ``` - -{{ Add description here }} - +This example shows how to use the Add-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Add-MgTeamMember Cmdlet +```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-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Complete-MgTeamChannelMigration.md b/src/Teams/Teams/examples/v1.0/Complete-MgTeamChannelMigration.md index 093355d11d5..9c4dafda6ab 100644 --- a/src/Teams/Teams/examples/v1.0/Complete-MgTeamChannelMigration.md +++ b/src/Teams/Teams/examples/v1.0/Complete-MgTeamChannelMigration.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Complete-MgTeamChannelMigration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Complete-MgTeamChannelMigration -TeamId $teamId -ChannelId $channelId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Complete-MgTeamChannelMigration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Complete-MgTeamMigration.md b/src/Teams/Teams/examples/v1.0/Complete-MgTeamMigration.md index 093355d11d5..795dcfe6125 100644 --- a/src/Teams/Teams/examples/v1.0/Complete-MgTeamMigration.md +++ b/src/Teams/Teams/examples/v1.0/Complete-MgTeamMigration.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Complete-MgTeamMigration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Complete-MgTeamMigration -TeamId $teamId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Complete-MgTeamMigration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Copy-MgTeam.md b/src/Teams/Teams/examples/v1.0/Copy-MgTeam.md index 093355d11d5..968077d9544 100644 --- a/src/Teams/Teams/examples/v1.0/Copy-MgTeam.md +++ b/src/Teams/Teams/examples/v1.0/Copy-MgTeam.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Copy-MgTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "Library Assist" + Description = "Self help community for library" + MailNickname = "libassist" + PartsToClone = "apps,tabs,settings,channels,members" + Visibility = "public" +} +Copy-MgTeam -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Copy-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgAppCatalogTeamApp.md b/src/Teams/Teams/examples/v1.0/Get-MgAppCatalogTeamApp.md index 093355d11d5..f561d263263 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgAppCatalogTeamApp.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgAppCatalogTeamApp.md @@ -1,18 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAppCatalogTeamApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamApp -Filter "externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgAppCatalogTeamApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgAppCatalogTeamApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamApp -Filter "id eq 'b1c5353a-7aca-41b3-830f-27d5218fe0e5'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgAppCatalogTeamApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgAppCatalogTeamApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamApp -ExpandProperty "appDefinitions(`$expand=bot)" -Filter "appDefinitions/any(a:a/bot ne null)" +``` +This example shows how to use the Get-MgAppCatalogTeamApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgAppCatalogTeamApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamApp -Filter "id eq '876df28f-2e78-423b-94a5-44181bd0e225'" -ExpandProperty "appDefinitions" +``` +This example shows how to use the Get-MgAppCatalogTeamApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgAppCatalogTeamApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamApp -Filter "distributionMethod eq 'organization'" +``` +This example shows how to use the Get-MgAppCatalogTeamApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgAppCatalogTeamAppDefinitionBot.md b/src/Teams/Teams/examples/v1.0/Get-MgAppCatalogTeamAppDefinitionBot.md index 093355d11d5..b824ccbf164 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgAppCatalogTeamAppDefinitionBot.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgAppCatalogTeamAppDefinitionBot.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgAppCatalogTeamAppDefinitionBot Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgAppCatalogTeamAppDefinitionBot -TeamsAppId $teamsAppId -TeamsAppDefinitionId $teamsAppDefinitionId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgAppCatalogTeamAppDefinitionBot Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgChat.md b/src/Teams/Teams/examples/v1.0/Get-MgChat.md index 093355d11d5..7aba3b16c0c 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgChat.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgChat.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgChat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChat -ChatId $chatId -ExpandProperty "members" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgChat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChat -ChatId $chatId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgChat Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgChat -ChatId $chatId +``` +This example shows how to use the Get-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgChat Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgChat -Sort "lastMessagePreview/createdDateTime desc" +``` +This example shows how to use the Get-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgChatInstalledApp.md b/src/Teams/Teams/examples/v1.0/Get-MgChatInstalledApp.md index 093355d11d5..494295a7604 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgChatInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgChatInstalledApp.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgChatInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatInstalledApp -ChatId $chatId -TeamsAppInstallationId $teamsAppInstallationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgChatInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgChatInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatInstalledApp -ChatId $chatId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgChatInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgChatInstalledApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgChatInstalledApp -ChatId $chatId -ExpandProperty "teamsAppDefinition(`$expand=bot)" +``` +This example shows how to use the Get-MgChatInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgChatInstalledApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgChatInstalledApp -ChatId $chatId +``` +This example shows how to use the Get-MgChatInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgChatMember.md b/src/Teams/Teams/examples/v1.0/Get-MgChatMember.md index 093355d11d5..d1744db6365 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgChatMember.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgChatMember.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgChatMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatMember -ChatId $chatId -ConversationMemberId $conversationMemberId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgChatMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgChatMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatMember -ChatId $chatId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgChatMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgChatMessage.md b/src/Teams/Teams/examples/v1.0/Get-MgChatMessage.md index 093355d11d5..abe16ce95cd 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgChatMessage.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgChatMessage.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgChatMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatMessage -ChatId $chatId -Top 2 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgChatMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgChatMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatMessage -ChatId $chatId -ChatMessageId $chatMessageId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgChatMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgChatMessageHostedContent.md b/src/Teams/Teams/examples/v1.0/Get-MgChatMessageHostedContent.md index 093355d11d5..7758bbb64e0 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgChatMessageHostedContent.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgChatMessageHostedContent.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgChatMessageHostedContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId -ChatMessageHostedContentId $chatMessageHostedContentId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgChatMessageHostedContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgChatMessageHostedContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatMessageHostedContent -ChatId $chatId -ChatMessageId $chatMessageId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgChatMessageHostedContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgChatTab.md b/src/Teams/Teams/examples/v1.0/Get-MgChatTab.md index 093355d11d5..7f0e9194507 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgChatTab.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgChatTab.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgChatTab Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -ExpandProperty "teamsApp" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgChatTab Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgChatTab Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgChatTab -ChatId $chatId -ExpandProperty "teamsApp" -Filter "teamsApp/id eq 'com.microsoft.teamspace.tab.web'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgChatTab Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgChatTab Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgChatTab -ChatId $chatId -ExpandProperty "teamsApp" +``` +This example shows how to use the Get-MgChatTab Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeam.md b/src/Teams/Teams/examples/v1.0/Get-MgTeam.md index 093355d11d5..c5775d5c57f 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeam.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeam.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeam -TeamId $teamId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannel.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannel.md index 093355d11d5..d14da61da70 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannel.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannel.md @@ -1,18 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannel -TeamId $teamId -ChannelId $channelId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamChannel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannel -TeamId $teamId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgTeamChannel Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannel -TeamId $teamId -Filter "membershipType eq 'shared'" +``` +This example shows how to use the Get-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgTeamChannel Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannel -TeamId $teamId +``` +This example shows how to use the Get-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgTeamChannel Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannel -TeamId $teamId -Filter "membershipType eq 'private'" +``` +This example shows how to use the Get-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelFileFolder.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelFileFolder.md index 093355d11d5..3a0a9e0f4e1 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelFileFolder.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelFileFolder.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannelFileFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelFileFolder -TeamId $teamId -ChannelId $channelId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannelFileFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMember.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMember.md index 093355d11d5..5cace31bf2d 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMember.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMember.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannelMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -ConversationMemberId $conversationMemberId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamChannelMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMessage.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMessage.md index 093355d11d5..87b3587b2d6 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMessage.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMessage.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannelMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelMessage -TeamId $teamId -Filter "lastModifiedDateTime gt 2019-11-01T00:00:00Z and lastModifiedDateTime lt 2021-11-01T00:00:00Z" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamChannelMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgTeamChannelMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -Top 3 +``` +This example shows how to use the Get-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMessageHostedContent.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMessageHostedContent.md index 093355d11d5..e9e6185b450 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMessageHostedContent.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMessageHostedContent.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannelMessageHostedContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelMessageHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannelMessageHostedContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMessageReply.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMessageReply.md index 093355d11d5..bacc45a32ae 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMessageReply.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMessageReply.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannelMessageReply Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannelMessageReply Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMessageReplyHostedContent.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMessageReplyHostedContent.md index 093355d11d5..f876d7a2d53 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMessageReplyHostedContent.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelMessageReplyHostedContent.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannelMessageReplyHostedContent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelMessageReplyHostedContent -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -ChatMessageId1 $chatMessageId1 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannelMessageReplyHostedContent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelSharedWithTeam.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelSharedWithTeam.md index 093355d11d5..5d2198e61df 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelSharedWithTeam.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelSharedWithTeam.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannelSharedWithTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamChannelSharedWithTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamChannelSharedWithTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannelSharedWithTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelSharedWithTeamAllowedMember.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelSharedWithTeamAllowedMember.md index 093355d11d5..0926580fe35 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelSharedWithTeamAllowedMember.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelSharedWithTeamAllowedMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannelSharedWithTeamAllowedMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelSharedWithTeamAllowedMember -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannelSharedWithTeamAllowedMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelTab.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelTab.md index 093355d11d5..d004d32e819 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelTab.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamChannelTab.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamChannelTab Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamChannelTab Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamChannelTab Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamChannelTab -TeamId $teamId -ChannelId $channelId -ExpandProperty "teamsApp" -Filter "teamsApp/id eq 'com.microsoft.teamspace.tab.planner'" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamChannelTab Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamIncomingChannel.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamIncomingChannel.md index 093355d11d5..89fe35c9364 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamIncomingChannel.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamIncomingChannel.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamIncomingChannel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamIncomingChannel -TeamId $teamId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamIncomingChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamInstalledApp.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamInstalledApp.md index 093355d11d5..2b8be82e065 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamInstalledApp.md @@ -1,18 +1,35 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId -ExpandProperty "teamsAppDefinition" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgTeamInstalledApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamInstalledApp -TeamId $teamId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" +``` +This example shows how to use the Get-MgTeamInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgTeamInstalledApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamInstalledApp -TeamId $teamId +``` +This example shows how to use the Get-MgTeamInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Get-MgTeamInstalledApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamInstalledApp -TeamId $teamId -ExpandProperty "teamsAppDefinition" +``` +This example shows how to use the Get-MgTeamInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamMember.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamMember.md index 093355d11d5..ba822ca71cd 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamMember.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamMember.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamMember -TeamId $teamId -Filter "(microsoft.graph.aadUserConversationMember/userId eq '73761f06-2ac9-469c-9f10-279a8cc267f9')" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamMember -TeamId $teamId -Filter "(microsoft.graph.aadUserConversationMember/displayName eq 'Harry Johnson' or microsoft.graph.aadUserConversationMember/email eq 'admin@M365x987948.OnMicrosoft.com')" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgTeamMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamMember -TeamId $teamId +``` +This example shows how to use the Get-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgTeamMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId +``` +This example shows how to use the Get-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamPrimaryChannel.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamPrimaryChannel.md index 093355d11d5..64ad86680d5 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamPrimaryChannel.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamPrimaryChannel.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamPrimaryChannel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamPrimaryChannel -TeamId $teamId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamPrimaryChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamSchedule.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamSchedule.md index 093355d11d5..5233393eb90 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamSchedule.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamSchedule.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamSchedule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamSchedule -TeamId $teamId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamSchedule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleOfferShiftRequest.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleOfferShiftRequest.md index 093355d11d5..4201e583e31 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleOfferShiftRequest.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleOfferShiftRequest.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleOfferShiftRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleOfferShiftRequest -TeamId $teamId -OfferShiftRequestId $offerShiftRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleOfferShiftRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleOfferShiftRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleOfferShiftRequest -TeamId $teamId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleOfferShiftRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleOpenShift.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleOpenShift.md index 093355d11d5..c171548a5af 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleOpenShift.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleOpenShift.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleOpenShift Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleOpenShift Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleOpenShift Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleOpenShift -TeamId $teamId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleOpenShift Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleOpenShiftChangeRequest.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleOpenShiftChangeRequest.md index 093355d11d5..5f9c485ee64 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleOpenShiftChangeRequest.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleOpenShiftChangeRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleOpenShiftChangeRequest -TeamId $teamId -OpenShiftChangeRequestId $openShiftChangeRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleOpenShiftChangeRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleOpenShiftChangeRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleOpenShiftChangeRequest -TeamId $teamId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleOpenShiftChangeRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleSchedulingGroup.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleSchedulingGroup.md index 093355d11d5..9aa3e33a34d 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleSchedulingGroup.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleSchedulingGroup.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleSchedulingGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleSchedulingGroup -TeamId $teamId -SchedulingGroupId $schedulingGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleSchedulingGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleSchedulingGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleSchedulingGroup -TeamId $teamId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleSchedulingGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleShift.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleShift.md index 093355d11d5..5856cd5487a 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleShift.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleShift.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleShift Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleShift -TeamId $teamId -Filter "sharedShift/startDateTime ge 2019-03-11T00:00:00.000Z and sharedShift/endDateTime le 2019-03-18T00:00:00.000Z and draftShift/startDateTime ge 2019-03-11T00:00:00.000Z and draftShift/endDateTime le 2019-03-18T00:00:00.000Z" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleShift Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleShift Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleShift -TeamId $teamId -ShiftId $shiftId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleShift Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleSwapShiftChangeRequest.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleSwapShiftChangeRequest.md index 093355d11d5..426030f97e3 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleSwapShiftChangeRequest.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleSwapShiftChangeRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleSwapShiftChangeRequest -TeamId $teamId -SwapShiftsChangeRequestId $swapShiftsChangeRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleSwapShiftChangeRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleSwapShiftChangeRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleSwapShiftChangeRequest -TeamId $teamId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleSwapShiftChangeRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleTimeOff.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleTimeOff.md index 093355d11d5..c68ca73e003 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleTimeOff.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleTimeOff.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleTimeOff Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleTimeOff -TeamId $teamId -Filter "sharedTimeOff/startDateTime ge 2019-03-11T00:00:00.000Z and sharedTimeOff/endDateTime le 2019-03-18T00:00:00.000Z and draftTimeOff/startDateTime ge 2019-03-11T00:00:00.000Z and draftTimeOff/endDateTime le 2019-03-18T00:00:00.000Z" ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleTimeOff Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleTimeOff Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleTimeOff -TeamId $teamId -TimeOffId $timeOffId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleTimeOff Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleTimeOffReason.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleTimeOffReason.md index 093355d11d5..0d3610ebf81 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleTimeOffReason.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleTimeOffReason.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleTimeOffReason Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleTimeOffReason -TeamId $teamId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleTimeOffReason Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleTimeOffReason Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleTimeOffReason -TeamId $teamId -TimeOffReasonId $timeOffReasonId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleTimeOffReason Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleTimeOffRequest.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleTimeOffRequest.md index 093355d11d5..64509cad0c8 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleTimeOffRequest.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamScheduleTimeOffRequest.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamScheduleTimeOffRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleTimeOffRequest -TeamId $teamId -TimeOffRequestId $timeOffRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamScheduleTimeOffRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamScheduleTimeOffRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamScheduleTimeOffRequest -TeamId $teamId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamScheduleTimeOffRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgTeamworkWorkforceIntegration.md b/src/Teams/Teams/examples/v1.0/Get-MgTeamworkWorkforceIntegration.md index 093355d11d5..c68b8ea2fb2 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgTeamworkWorkforceIntegration.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgTeamworkWorkforceIntegration.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgTeamworkWorkforceIntegration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgTeamworkWorkforceIntegration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgTeamworkWorkforceIntegration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgTeamworkWorkforceIntegration ``` - -{{ Add description here }} - +This example shows how to use the Get-MgTeamworkWorkforceIntegration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgUserChat.md b/src/Teams/Teams/examples/v1.0/Get-MgUserChat.md index 093355d11d5..b9ae90daa5c 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgUserChat.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgUserChat.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserChat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgUserChat -UserId $userId -ChatId $chatId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserChat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgUserChat -UserId $userId -ExpandProperty "members" ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgUserChat Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgUserChat -UserId $userId +``` +This example shows how to use the Get-MgUserChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgUserChatMember.md b/src/Teams/Teams/examples/v1.0/Get-MgUserChatMember.md index 093355d11d5..17c02b1a7bc 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgUserChatMember.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgUserChatMember.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserChatMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +# A UPN can also be used as -UserId. +Get-MgUserChatMember -UserId $userId -ChatId $chatId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserChatMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgUserJoinedTeam.md b/src/Teams/Teams/examples/v1.0/Get-MgUserJoinedTeam.md index 093355d11d5..9abe90500f2 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgUserJoinedTeam.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgUserJoinedTeam.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserJoinedTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +# A UPN can also be used as -UserId. +Get-MgUserJoinedTeam -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserJoinedTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgUserTeamworkAssociatedTeam.md b/src/Teams/Teams/examples/v1.0/Get-MgUserTeamworkAssociatedTeam.md index 093355d11d5..7e79ecbc9df 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgUserTeamworkAssociatedTeam.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgUserTeamworkAssociatedTeam.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTeamworkAssociatedTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +# A UPN can also be used as -UserId. +Get-MgUserTeamworkAssociatedTeam -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTeamworkAssociatedTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgUserTeamworkInstalledApp.md b/src/Teams/Teams/examples/v1.0/Get-MgUserTeamworkInstalledApp.md index 093355d11d5..622f8cedbc9 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgUserTeamworkInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgUserTeamworkInstalledApp.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTeamworkInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgUserTeamworkInstalledApp -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserTeamworkInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserTeamworkInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgUserTeamworkInstalledApp -UserId $userId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTeamworkInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Get-MgUserTeamworkInstalledApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgUserTeamworkInstalledApp -UserId $userId -ExpandProperty "teamsApp,teamsAppDefinition" -Filter "teamsApp/externalId eq 'cf1ba4c7-f94e-4d80-ba90-5594b641a8ee'" +``` +This example shows how to use the Get-MgUserTeamworkInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Get-MgUserTeamworkInstalledApp Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +Get-MgUserTeamworkInstalledApp -UserId $userId -ExpandProperty "teamsAppDefinition" +``` +This example shows how to use the Get-MgUserTeamworkInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Get-MgUserTeamworkInstalledAppChat.md b/src/Teams/Teams/examples/v1.0/Get-MgUserTeamworkInstalledAppChat.md index 093355d11d5..8a1104237c5 100644 --- a/src/Teams/Teams/examples/v1.0/Get-MgUserTeamworkInstalledAppChat.md +++ b/src/Teams/Teams/examples/v1.0/Get-MgUserTeamworkInstalledAppChat.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTeamworkInstalledAppChat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Get-MgUserTeamworkInstalledAppChat -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTeamworkInstalledAppChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Invoke-MgArchiveTeam.md b/src/Teams/Teams/examples/v1.0/Invoke-MgArchiveTeam.md index 093355d11d5..ab6c0a80cc9 100644 --- a/src/Teams/Teams/examples/v1.0/Invoke-MgArchiveTeam.md +++ b/src/Teams/Teams/examples/v1.0/Invoke-MgArchiveTeam.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgArchiveTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Invoke-MgArchiveTeam -TeamId $teamId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgArchiveTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Invoke-MgShareTeamSchedule.md b/src/Teams/Teams/examples/v1.0/Invoke-MgShareTeamSchedule.md index 093355d11d5..c0df618453e 100644 --- a/src/Teams/Teams/examples/v1.0/Invoke-MgShareTeamSchedule.md +++ b/src/Teams/Teams/examples/v1.0/Invoke-MgShareTeamSchedule.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgShareTeamSchedule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + NotifyTeam = $true + StartDateTime = [System.DateTime]::Parse("2018-10-08T00:00:00.000Z") + EndDateTime = [System.DateTime]::Parse("2018-10-15T00:00:00.000Z") +} +Invoke-MgShareTeamSchedule -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgShareTeamSchedule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Invoke-MgUnarchiveTeam.md b/src/Teams/Teams/examples/v1.0/Invoke-MgUnarchiveTeam.md index 093355d11d5..f914c8b2ff3 100644 --- a/src/Teams/Teams/examples/v1.0/Invoke-MgUnarchiveTeam.md +++ b/src/Teams/Teams/examples/v1.0/Invoke-MgUnarchiveTeam.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgUnarchiveTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Invoke-MgUnarchiveTeam -TeamId $teamId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgUnarchiveTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgAppCatalogTeamApp.md b/src/Teams/Teams/examples/v1.0/New-MgAppCatalogTeamApp.md index 093355d11d5..ef5f8789a92 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgAppCatalogTeamApp.md +++ b/src/Teams/Teams/examples/v1.0/New-MgAppCatalogTeamApp.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgAppCatalogTeamApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +New-MgAppCatalogTeamApp -Requiresreview true ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgAppCatalogTeamApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgChat.md b/src/Teams/Teams/examples/v1.0/New-MgChat.md index 093355d11d5..37c4169c6c9 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgChat.md +++ b/src/Teams/Teams/examples/v1.0/New-MgChat.md @@ -1,18 +1,181 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgChat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + ChatType = "group" + Topic = "Group chat title" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')" + } + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')" + } + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "guest" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8ba98gf6-7fc2-4eb2-c7f2-aef9f21fd98g')" + } + ) +} +New-MgChat -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgChat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + ChatType = "group" + Topic = "Group chat title" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')" + } + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')" + } + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "guest" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8ba98gf6-7fc2-4eb2-c7f2-aef9f21fd98g')" + } + ) +} +New-MgChat -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgChat Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + ChatType = "group" + Topic = "Group chat title" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8c0a1a67-50ce-4114-bb6c-da9c5dbcf6ca')" + } + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('82fe7758-5bb3-4f0d-a43f-e555fd399c6f')" + } + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('3626a173-f2bc-4883-bcf7-01514c3bfb82')" + } + ) +} +New-MgChat -BodyParameter $params +``` +This example shows how to use the New-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgChat Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + ChatType = "oneOnOne" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" + } + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('82af01c5-f7cc-4a2e-a728-3a5df21afd9d')" + TenantId = "4dc1fe35-8ac6-4f0d-904a-7ebcd364bea1" + } + ) +} +New-MgChat -BodyParameter $params +``` +This example shows how to use the New-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgChat Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + ChatType = "oneOnOne" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" + } + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('82af01c5-f7cc-4a2e-a728-3a5df21afd9d')" + } + ) +} +New-MgChat -BodyParameter $params +``` +This example shows how to use the New-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the New-MgChat Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + ChatType = "oneOnOne" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "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')" + } + ) +} +New-MgChat -BodyParameter $params +``` +This example shows how to use the New-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgChatInstalledApp.md b/src/Teams/Teams/examples/v1.0/New-MgChatInstalledApp.md index 093355d11d5..b6dd816d25f 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgChatInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0/New-MgChatInstalledApp.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgChatInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" +} +New-MgChatInstalledApp -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgChatInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgChatMember.md b/src/Teams/Teams/examples/v1.0/New-MgChatMember.md index 093355d11d5..8c6924e5762 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgChatMember.md +++ b/src/Teams/Teams/examples/v1.0/New-MgChatMember.md @@ -1,18 +1,59 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgChatMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users/jacob@contoso.com" + VisibleHistoryStartDateTime = [System.DateTime]::Parse("2019-04-18T23:51:43.255Z") + Roles = @( + "owner" + ) +} +New-MgChatMember -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgChatMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgChatMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + VisibleHistoryStartDateTime = [System.DateTime]::Parse("0001-01-01T00:00:00Z") + Roles = @( + "owner" + ) +} +New-MgChatMember -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgChatMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgChatMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + Roles = @( + "owner" + ) +} +New-MgChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgChatMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgChatMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" + VisibleHistoryStartDateTime = [System.DateTime]::Parse("2019-04-18T23:51:43.255Z") + Roles = @( + "owner" + ) +} +New-MgChatMember -ChatId $chatId -BodyParameter $params +``` +This example shows how to use the New-MgChatMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgChatMessage.md b/src/Teams/Teams/examples/v1.0/New-MgChatMessage.md index 093355d11d5..b63d3653478 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgChatMessage.md +++ b/src/Teams/Teams/examples/v1.0/New-MgChatMessage.md @@ -1,18 +1,36 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgChatMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + ContentType = "html" + Content = "
+
+
+
+
" + } + HostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + ContentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcyrN9ucwF9jwiXmhjYB0Sc06so66ieaoKYB+Zs/N91sYl9nwiXmhjgA4ZddCmNE9VMNs3OI1fN/+0jEJKsqKNATpk1EHb0DxVgWyfYBlJ0/knRiElWdHGAB0y6qBd6BOhQti+aDv/xCikJCvaGKBDRh20K5xaaJ5qIKi96TL/xCikJCvaGKBDRh20D5xiaJ4qM9TcdJ1/YhRSkhVtDNAhow6aguapMrFa45KWPvNPjEJKsqKNATpk1EFT0TyVM6vxuisFulJISVa0MUCHjDpoSjgF0UXKiVlNMf90YV5jDwopyYo2BuiQUQdNDaciuswiEatl6vknRiElWdHGAB0y6qBejrHXl+ashh7zT4xCSrKijQE6ZNRBPeEjci1T6MDq1vYayz4UUpIVbQzQIaMO6k3zVC1YrTD/lHsfKaQkK9oYoENGHTQHzVM1YDXC/BOukWQ19KSQkqxoY4AOGXXQnHQnyCWsNri1b475J0YhJVnRxgAdMuqgueGjdM1TLbB65Jx/YhRSkhVtDNAhow46BMxTTf5yGqvBEPNPjEJKsqKNATpk1EGHglObA2wb27hx40bnSXl7bKcjuq6PW2Tvvc3tfb0ppCQr2higQ0YddGid56ksLM6am6b1Udn8sZumVeDg9+eP63wZkL1nzD+xWgxFISVZ0cYAHTLqoCVoPU+FkDCzuVZBFT22cVDh9+a/Hx7bOqjsfaa6vUpKCinJijYG6JBRBy1F49sTIxwWgiJoFFT2O+yxa4MKP5//XvzYRkFl7w3zT96Xt3SlkJKsaGOADhl10JJgjmblbV8QClFILFoZVPazVY9dGlRon/+cPQ5WBpW9p7639/WmkJKsaGOADhl10BLRr9FCGEThwNCgsrYmj90RVPj/eTv7/UU0qOy9pLi9rzeFlGRFGwN0yKiDlgrbuR0YCIEoFFa5Lajsv9s8djuo8O/5/7PfY7aDCttuSpx/YhRSkhVtDNAhow5asq15Kgz+KAya2Aoq0+WxCKY75v9mP18FwdTn66WGoJCSrGhjgA4ZddCiPf300x9cv379f0kYFOub3/zm/7D3UrDkIXXz4393hzlrLk3IBaNrVBugjQE6ZNRBi7exsTG7du0aDYTSnDlzhr6HwiULKRukIZxmE4bAUlitQBsDdMiog1ahhqCqNKCgd0jZoFQ47aSwWoI2BuiQUQetRslBVXFAQeeQskGocFpPYRWhjQE6ZNRBq1JiUFUeUNA6pGzQKZzaU1jN0cYAHTLqoNUpKahGEFDQOKRskCmc+pt8WNHGAB0y6qBVKiGoRhJQsDakbFApnNKbbFjRxgAdMuqg1RoyqEYUULA0pGwQDRlOGMRdXDfs+UqFbZ5UWNHGAB0y6qBVu3LlCg0Rb2xbKrYjpGzQDBlOeN1eX95hjz9sFFaFoo0BOmTUQaumkEpiO6RskFQdTjF7PoVVgWhjgA4ZddCqKaSSwKAYVTjF7PkVVgWhjQE6ZNRBq6aQ6ufpo/8xe/1f/uG9aHDk4h5OMXs9hVUBaGNgHVMhlQDblpognC4f+DgbEDlkD6eYvb7CakC0MbAOqpBKgG1LDaYeTjHbHoXVAGhjYB1VIZUA25aSKZxWs+1TWGWEgrM3JJJb8eEUs+2tMayqo5CSoVUXTjHbfoWVn0sKKRlK9eEUs/ejsEpn+/RUISW5jS6cYvb+FFbd7Zg7U0hJLqMPp5i9X4VVc0sn9hVS4m1y4RSz96+wWm7tp44KKfEy+XCKWT0UVrc0XhKhkJLU3jR/zzqbfMTqM+WwahxOgUJKPNw0xw39Knr5iNVnSmHVOpwChZR4Ulg1YPUZc1h1DqdAISU5KKwasPqMKax6h1OgkJKcFFYNWH1qDqtk4RQopGQICqsGrD41hVXycAoUUjIkhVUDVp+Sw8otnAKFlJRAYdWA1aeksHIPp0AhJSVRWMkOCikpkcJKtimkpGQKK1FISRUUVhOmkJKaKKwmSCElNVJYTYhCSmqmsJoAhBR2MnXx4N3XX3zwUzPm9L/unT2w5x+r8vA9n5r9273/nB3blpI9s/+f6D6HAb/qahWEFdbtTAHu0zWpUKaNwRMrvnfvyJEjszvvvFNG6IEHHqD7HP7zyCEWEuIPizgPs3E6drQxsE6pkJoghVRRJhtOAW0MrFMqpCZIIVWEyYdTQBsD65QKqQlSSA1K4RShjYF1SoXUBCmkBqFwWoI2BtYpFVITpJDKSuG0Bm0MrFMqpCZoVUid+vfDH0aDTLpRODVEGwPrlEtDKvjc5z43e+ihh2Z33XUX7fC1uvfee2c//OEPZ7/+9a9nN27c2PLWW29ttX3605+mj6kV9h2C6bHHHqP7OIK1OmO6F3duCqeWaGOADhl10KUef/zx2f79++kgqM0XvvCF7WBa5rvf/S59bG327t279RcN26dLXAr9A4NtPujYYJTbKZw6oo0BOmTUQdeqPaiaBFSAoyr2HLVAQOEvF7YfV9gOqQCDbz4I2eCcOoVTT7QxQIeMOuha6PS1nvrhFI+F0SpHjx6lz1WDlkdQwY6QCjAY54OSDdapUTglQhsDdMiogzaCOSo2KEqHIyMWRKu89tpr9LlKd99999F918DSkAowOOeDlA3esVM4JUYbA3TIqIM2gr+h2cAoHQuhJnAExp6vZI888gjddw2sDakAg3U+aNlgHhuFkxPaGKBDRh20MTYwSoZP7FgANfHZz36WPmfJOsxFBY1DKsDgnQ9iNrhrp3ByRhsDdMiogzbGBkbJPvOZz9AAagKPZc9ZMrbPGmodUoEN5j1jw96npEUbA3TIqIM2dvfdd9PBUSocDbEAauLEiRP0OUvG9llDnUNKpAvaGKBDRh20sX379tHBUao+IfX1r3+dPmfJ2D5rSCElWdHGAB0y6qCN1bZeCkHDAqiJ2hZ24i8Qts8aUkhJVrQxQIeMOmhjuMyCDZBSdVl+ELzyyiv0OUuFv0DYPmtIISVZ0cYAHTLqoI3hI242QEqF9U4sgJpiz1kqrGNj+6whhZRkRRsDdMiogzaGj7jZACnRJz7xCRo8bdR00XHDC4mXUUhJVrQxQIeMOmgrtcxLtbleb5la5qXwqSvbVy1smj1z+iopcUcbA+uEvULq0KFDdKCUBnNKLHjawC1d2HOXZtW9onpCX4FT5rhBiO1m/UqkDdoYzDsd65CNlb5eqs9K8xiOyNhrlKTHSvM+cPR1wYTw0hGYNEYbA+tMvUOq9KOpn/zkJzRwuij9aKrHRcUerhsE1zGjIy5ZijYG1nl6hxSUejTVZwHnMqUeTeH2OQMdRTV10yi0ZAfaGFhnSRJSpd4Pve+yAwa3GManhez1htRz2cEQcKSF+a0DrG/KdNDGwDpIkpCCgwcP0sEzFHwax0ImBZxCstccSs/FmyXAUdZZo8CaINoYWKdIFlKA29WyQZRbiiUH65Ry0XHHWwSXLASW7kAwEbQxsI6QNKQwWLyDCpPDTz311Oz8+fOzzc3N2QcffLDt/Rdenr2378Gs/nLy2du2Adv08ssvzzY2Nra2lb2HVDAP1XPhZulwSohPDO9g/VfGgTYGtvOThhR4BRWCKQ4lJmdQxQHF/P73v98KrE9+8pP0fXU1gYCKYdJdR1cjRBsD2+nJQwoQVKlWoyOcMNBZACyTI6iaBNSid999d/btb387SViN8BSvDRxdHTZaizUStDGwHe0SUkGfL2zA3TCbHDkt4xlUbQNqEQL30Ucfpe+5CXxAwWo9QZi7wqmgwqpytDGwHewaUoAvbWh7gzycHrEB3pZHUPUJqEXf//736XtfBjXEUg9W44lTWFWONga2Y91DKsAAa3IKiAlxNqi7ShlUqQIqwDqudad/CCes6mc1ldsorCpFGwPbodlCKsCRFU4D2dFV6oAKUgRV6oAKcEobBxXmnHBa1/HLPadOYVUZ2hjYjsweUjEcYeEGevjYng3iVPoElVdABVevXt06WtLpXFIIK30VVQVoY2A7cfCQgnPnztHBm1qXoPIOqODnP/85rY30tnV/LNb/pQy0MbCdN3hIfe1rX6OD1kuboMoVUMHp06dpjSQJrLPSKWCBaGNgO23wkGq7BiqFJkGVO6Dgz3/+8+xLX/oSrZMkgVPAY2wsyHBoY2A7bNCQwje4sMGaw6qgGiKggpdeeonWSpJCv9ftYgpBG4P5zmI7MYt33nmHDtRcWFANGVCBjqayOc7GheRFGwPbSYOF1JBHUYsWg6qEgAIdTWWFiXVdwDwg2hjMdxDbce5++9vf0gE6BARVKQEFOMJkNRM3Wq4wINoItlNwzx62w9w988wzdHDKLfjUk9VOXOkTwAHQRtsRgwUUlHKqVzKd8g0Gd1nQpHpGOxpsBwwaUICFi2xgyi04HWa1k2x0+pfJbf9jhR88oKCk+aiSsdpJVmcXx4/42P4PFDzaAYNhA1J20lKEIuDDJc1TOdr6hxW5mIACNiBlp29961u0fpKd5qkcFRdQwAak7KSQKgqWKehCZQcIqcHWQi3DBqTspJAqkibUE0NI7TJFBRUbkLKTQqpYCqqEtv5hRS0qqNiAlJ2w6JXVT4qgT/4S2f4PKyqCqoj5qaEvLK4Fq50URUGVwI4GK+ypqNDZaZ3UerjPFqudFEdB1RNttMLiyxVZwbPAJR9sYMotup1wVRRUPdBGsMLuNvhYlRXdVe5bBtcI1zey2kmxFFQd0cbACnuHGWRCXfNSq2m1eZUUVB3QxpgVN/s81auvvkoHp3ww++Uvf0lrJlXQ3T5boo2MFfeAyXb6p3tKLaf1UdXTOqoWaOMyVlyc/mW7pbBu2bKTbtEyGgqqhmjjOlbgY1HBXeBoCl/jxAbrVOkoajRwVqKLkhugjU2gwMb9qErLEW7BPB2rkVQLQaUveViDNrZhRcZRletclRZ3fvTlC/pEb5R0P6o1aGNbVmTMVeEm9Wwn9IbBOeXTPrx3ffHCqF1g40o+Qhu7smLvMbgBGNsRvWCQTjWoTp8+TWsio6KlCUvQxr6s4LisJvkp4NSCCu9VK8snRTfNI2hjClZw3FXhuEkaVggqXFzLBrUXBAWOZnIGpE7xJkkT6QRtTMmKnjysMEeVYw0VJqsXgwJLInIEJD4o0CT5ZF1i42jKaKMHK37ysMKaIa9r/LD0YVlQnDt3zuWoSqd3Mqf5qQW00ZPtAITVyws7pDcM7BRhhZDAWqQmd7xEgCHIUoQVth3Bp6MnWaD5qTna6M12AI6o2I7pBadmCJk2gYWQwQW7CLquIYH5Kpx+tgksbCMeo0/uZAl8Sq71U4Y2erPiu4TUIgQOTgdxhIIjnhjCwWNiGkdheG72moBtanKkJmJOsfEzNbTRmxXfPaRERmLyp3200ZsVXiEl0szkT/toozcrukJKpLlJn/bRRm9W9CQh9ZWvfGX25JNP0p+JjMxkT/toozcreO+QOnPmzOzGjRtbNjc3tyal0baxsUF/X6Rym2wsTQFt9GYF7xVSiwG1zJUrV7aC6/nnn589++yzsxMnTtDnygFHe9gGbAu2Cdv25ptvKlClrWNsPI0dbfRmxe4cUk0CahUcdSEkLl68ODt//vyW5557bitEgqankIuPgfB8IYjwWmwbgmvXrimopA1crTG5SXTa6M0K3TmkMKgxuNmgrw1CTHNq0tLkvhaLNnqzQvc63RtDUCmgpIdJ3SmBNnqzIveeOK85qBRQ0tOk7pRAG71ZkXuHFNQYVAooSWQySxJoozcrcJKQgpqCSgElCU3maIo2erMCJwspqCGoFFDiYBJHU7TRmxU3aUhByUGlgBInkziaoo3erLjJQwouX75MQ2JoWMTJtlckgdEfTdFGb1bY5CGFxZksIEqBRahsu0V6Gv3RFG30ZoVNGlKlB1SgoBInu9k4Gwva6M2KmiykagmoQEElDka9Cp02erOiJgmp2gIqUFCJg9GuQqeN3qygvUOq1oAKFFSS2Gi/Bos2ekNBowK3UntABQoqSegmG2tjQBu9WUE7hxRuhcIGfK1wixf2PkU6OMzGW+1oozcrZueQwqJILI5kA742OCJk71Gko1EuR6CN3qyYvU73xhBUCihxMroJdNrozQrZe+K85qBSQImj0X2zDG30ZoXsHVJQY1ApoMTZdTbmakYbvVkhk4QU1BRUCijJZFTX89FGb1bEZCEFNQSVAkoyGtUKdNrozYqYNKSg5KBSQElmo1ozRRu9WRGThxRgzRELiaGxbRVxdoCNvRrRRm9WQIWUiK/RfMpHG71ZARVSIr5G8ykfbfRmBVRIifgbxX2maKM3K55CSsTfMTb+akMbvVnxFFIi/kZxLR9t9GbFU0iJ5LGLjcGa0EZvVjiFlEge1S9FoI3erHAKKZE8ql+KQBu9WeEUUiJ5VD8vRRu9WeEUUiKZxOOvNrTRmxVOISWST9V3RaCN3qxoCimRfKpeL0UbvVnRFFIi+Vxg47AWtNGbFU0hJZLPJhuHtaCN3qxoCimRjOIxWBPa6M2KppASyavayXPa6M0KppASyavaLw6ljd6sYAopkbyOs7FYA9roDQWLCpiEQkpkqWpXntNGb1YwhZRIXtV+wkcbvVnBFFIimcXjsBa00ZsVTCElkl+V95aijd6sWAopkfyqXIZAG71ZsRRSIvkppJqyYimkRPKrchkCbfSGYkXFS0IhJbKSQqopFCsqXhIKKZGVzrHxWDra6M2KpZASye+/2XgsHW30ZsVSSInkV+VXr9NGb1YshZRIfu+x8Vg62ujNiqWQEsnvr2w8lo42erNiKaREBhCPxRrQRm9WLIWUyADisVgD2ujNiqWQEhlAPBZrQBu9WbEUUiIDiMdiDWijNyuWQkpkAPFYrAFt9GSF2m1uLhYuFYVUGo899hhtl1Go7l7ntNGLFcgtoEAhlYZCavSqCira6MEK4xpQoJBKQyE1CdUEFW1MzQriHlCgkEpDITUZVQQVbUzJCpEloEAhlcajjz5K22WUig8q2piKFSBbQIFCKo1Dhw7RdhmtooOKNqZgbzxrQIFCKg2F1CQVG1S0MQV709ejIrhTSKVx//3303YZvSLvgU4bU7A3rCOpObatJTt48CBtl1E7y8ZxCWhjKvbGNSdl2LaW7J577qHtMlrFBhTQxpSsAPp0j2xryfbt2zd7/PHH6c9kdIoOKKCNqVkhsgSVQioNhNSRI0foz2RUig8ooI0erCDuQaWQSgMh9eCDD9KfyWhUEVBAG71YYVyDSiGVBkJq//799GcyCtUEFNBGT1Ygt6BSSKWBkLrrrrvoz6R6VQUU0EZPViSFVOEQUnfeeaeu4RsnhdQqViCd7lUghNRDDz1Efy7V0+keY4XRxHklQkjh3+znMgqaOF9kBXEPKFBIpRFCCrReatSqCCramJIVIktAgUIqjcWQ0sXGo1d8UNHGVKwA2QIKFFJpLIaUTvkmoeigoo0p2BvPGlCgkEpjMaTg6NGj9PdkVIoNKtqYgr3pS1ER3Cmk0ohDSqvPJ2Nyt2rZZTYXCuBOIZVGHFJa2DkJ07vpHdgbzxpUCqk04pACTaCP2jRvHxxYAbIF1cbGBg2JobFtLRkLqT179tDflepN+4sYAitEtqBiITE0tp0lYyEFOpoaneIDCmijBytIlqBiITE0tp0lWxZSOpoalSoCCmijFyuMe1BduXKFBsWQ2HaWbFlIgY6mRqGagALa6MkK5BpUFy9epEExJLadJVsVUjia0qUyVSsioGxc7DZ7zGFzbP7fdAnEjoYcrFDHo8Ilc+bMGRoUQ2LbWbJVIQVaN1WveCzmZGPhgLlgboaxscSmQXDtwuPok3mzYrmFVImf8LHtLNm6kMK6Ka1Cr1M8FnOwMYBwur44JhpCmB2nT+rNiuUWUvDmm2+yNzwYto0lWxdSgN9hj5WyxWPRk/X9XQZHTnRcNEWf3JsVyzWkSpuXYttYsiYhBbopXn3isejF+j0CCqdtdEy0QV/AmxXLNaSee+45+maHwraxZE1DSqd99YnHogfr88kCCuiLeLNiuYYUlHTKx7avZE1DCvbu3UufQ8oUj0UP1ucvxWOgD/oi3qxY7iF1/vx5+oaHwLavZG1CCg4ePEifR8oTj8XUrL8fj/t/X/SFvFmx3EPqxIkT9A0PgW1fydqGFGiRZx3isZiS9XWc5q1bXtAafTFvViz3kIJSJtDZtpWsS0iBvgKrfPFYTMn6evKjKKAv5s2KlSWkSjmaYttWsq4hhYl0BVXZ4rGYkvX1Lmuh1qIv5s2KlSWkoISjKbZdJesaUoCJdF02U654LKZi/RyXudD+3xd9QW9WrGwh9eSTT86uXbtG33wubLtK1iekQEFVrngspmL93OVUD+gLerNiZQspeP755+mbz4VtU8n6hhQoqMoUj8VUrJ+fjft9KvQFvVmxsoYUDHkLF7Y9JUsRUqCgKk88FlOxfp50bdQi+oLerFjZQ2rI0z62PSVLFVKgyfSyxGMxFevnCqkUhvqiBrYtJUsZUoCgOnLkCH0tySsei6lYP1dIpTLE/abYdpQsdUgFuiB5ePFYTMX6efJFnAF9QW9WrMFCCnIvS2DbUDKvkIL77rtP81QDisdiCtbHsdKc9v0U6It6s2INGlKQM6jY65fMM6QAtyDWPNUw4rGYgvVx3NSO9v0U6It6s2INHlKQK6jYa5fMO6QC3YY4v3gspmB93G35AdAX9WbFKiKkIMccFXvdkuUKKcAyBU2q5xOPxb6sf7ue6gF9YW9WrGJCCnCTPM/lCew1S5YzpALNVeURj8W+rH+7rTQP6At7s2IVFVKAi5E3Nzdpkfpir1eyIUIKsFQBp4AKKz/xWOzD+rbb9XqL6It7s2IVF1IBbpaX+qiKvU7JhgqpQGHlajcbk21Zv056i+BV6AZ4s0IVG1KAo6rLly/TgnXBXqNkQ4dUgLDCXT91H/WkjrMx2Zb1a9fJ8kV0A7yhUFHhioQV6imu+WPPXbJSQmrR/v37Z4888gjdXmnlutn60s0urD/jCCpbQAHdEG9WpCpCKkBY9VmuwJ6zZCWGVICjK0yyK7B6OcvG5TrWlzEHleUUbxHdGG9WpKpCKsBFyrjtS9ujK/ZcJSs5pBYhsHCEhfura3Foa42Dyvowjp7cP8Vbhm6UNytQlSG1CIGFpQsvvfTS2tBijy9ZLSEVQ2hh2zHpjiMtBddaOPU7zMao9VsEE1aSZz21Y3ZsXEr2AncYvFGk8CmDK6UvXb169ToGNuA0Cp+oYVHlxsYGK2QVEFqnT5/eej8/+9nPtr73LwjvFZPxeK84GsMpJHueEniGFJ7785///Ox73/vell/84hcUaoSff/WrX92aOMeCz64UVo389eTJk//1ne98Z/OnP/3p22+99dZ7NlZpaORGw6Ure0Kk72GD73/vfFU0BjQ6KT5lI8UsRjiS6vNFpFibhecoKaBTh9QXv/jF2Y9+9KPZr371K1qDJkqs09jhL14cPLzxxhtudzhogoZNW/ZEe4zLYSECC4ViRRwCghODxWOFOsIO4YzOwV47lxQhdf/9928dCfUJ8GXwnDgiHbpOU4Ijfzu6+pDtD280dJqyJ0A4ud3sahE65pBhhXDKdUEyAnDIQdgnpBBOL774In1fqQ1dp6lBnXONgUU0fNaxB2KuCad09Ek94bA/53wOdgwGAtsWbxiEQwRz15DCkZPHEeY6eE0cgbL3IumhT7L94IWG0Cr2oGNm0HNUwCmX99+gmP/wOF1pC6e8Oefn2obUww8/3Gu+KRX8BVb6POZY4C8Ftg880CBi7JezrzRdx7NT5twJTeBoARP1bFtTaxNSJ0+epNs7lKGOPqco5aVjq9BAitkvIqCyrzRtAp0y9Sc+Q5x3N5VjADYNqVxzT13gFJ29N0kHZzI5Tu9pKC2yX8JSeJfveE8pxeBF0XP97dAHQpRtfypNQqrkgAq86yR55qdoMAX2C5ggH3z+qam+p0OY+2HPWyLPAbgupGoIqEBB5c/7aIqGE9gPiz3FW6bPqV/Jp3jLeJ36rQqpmgIq0KmfL3yIxeqeyCkaUGA/zLL+KTUEVdtP/YZaYpCCx3KMZSFV2iR5G7k+dJgi9EFW8wRwkLRrWUANdsVzCjhtY8VkHAucRZdQXoeFFJYZsNevBeqk5Ql+WM17wjTT1l1EWUBluW+xtyaL+zC4S1gH1VebUG6ChVQJ66D6Sl0nucVhHG3fnYGFVFXzUMs0+ZvT+Vw6q5SnM3FIYSU5e80aaWW6j8QfOp1azKQ4oHAHA/agKq36ZAcBxh5TK/xNlvK0LwQUrsVD4LPXrJHH6bEkDakdN+NbDCh8mlfNcoOmlk0s1/hp3jqpPsX68pe/vB1SNX6at44+7UsvUUjRu4Vu/4f9wqiOogIszowLOrajqABHCfF77eIHP/jB9lEUe53a6WgqPVbnlpbeznj7P+yXil9V3lU8NzXGo6ig79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + ContentType = "image/png" + } + ) +} +New-MgChatMessage -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgChatMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgChatMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + Content = "Hello world" + } +} +New-MgChatMessage -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgChatMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgChatTab.md b/src/Teams/Teams/examples/v1.0/New-MgChatTab.md index 093355d11d5..d3b2d1e153f 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgChatTab.md +++ b/src/Teams/Teams/examples/v1.0/New-MgChatTab.md @@ -1,18 +1,17 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgChatTab Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "My Contoso Tab" + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/06805b9e-77e3-4b93-ac81-525eb87513b8" + Configuration = @{ + EntityId = "2DCA2E6C7A10415CAF6B8AB6661B3154" + ContentUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/tabView" + WebsiteUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154" + RemoveUrl = "https://www.contoso.com/Orders/2DCA2E6C7A10415CAF6B8AB6661B3154/uninstallTab" + } +} +New-MgChatTab -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgChatTab Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgTeam.md b/src/Teams/Teams/examples/v1.0/New-MgTeam.md index 093355d11d5..b761ac785bf 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgTeam.md +++ b/src/Teams/Teams/examples/v1.0/New-MgTeam.md @@ -1,18 +1,233 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "Template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" + "Group@odata.bind" = "https://graph.microsoft.com/v1.0/groups('dbd8de4f-5d47-48da-87f1-594bed003375')" + Channels = @( + @{ + DisplayName = "Class Announcements 📢" + IsFavoriteByDefault = $true + } + @{ + DisplayName = "Homework ðŸ‹ï¸" + IsFavoriteByDefault = $true + } + ) + MemberSettings = @{ + AllowCreateUpdateChannels = $false + AllowDeleteChannels = $false + AllowAddRemoveApps = $false + AllowCreateUpdateRemoveTabs = $false + AllowCreateUpdateRemoveConnectors = $false + } + InstalledApps = @( + @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')" + } + @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')" + } + ) +} +New-MgTeam -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "Template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('educationClass')" + DisplayName = "My Class Team" + Description = "My Class Team’s Description" +} +New-MgTeam -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgTeam Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "Template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('educationClass')" + DisplayName = "My Class Team" + Description = "My Class Team’s Description" + Channels = @( + @{ + DisplayName = "Class Announcements 📢" + IsFavoriteByDefault = $true + } + @{ + DisplayName = "Homework ðŸ‹ï¸" + IsFavoriteByDefault = $true + } + ) + MemberSettings = @{ + AllowCreateUpdateChannels = $false + AllowDeleteChannels = $false + AllowAddRemoveApps = $false + AllowCreateUpdateRemoveTabs = $false + AllowCreateUpdateRemoveConnectors = $false + } + InstalledApps = @( + @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')" + } + @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')" + } + ) +} +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgTeam Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "Template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" + "Group@odata.bind" = "https://graph.microsoft.com/v1.0/groups('71392b2f-1765-406e-86af-5907d9bdb2ab')" +} +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgTeam Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "Template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" + Visibility = "Private" + DisplayName = "Sample Engineering Team" + Description = "This is a sample engineering team, used to showcase the range of properties supported by this API" + Channels = @( + @{ + DisplayName = "Announcements 📢" + IsFavoriteByDefault = $true + Description = "This is a sample announcements channel that is favorited by default. Use this channel to make important team, product, and service announcements." + } + @{ + DisplayName = "Training ðŸ‹ï¸" + IsFavoriteByDefault = $true + Description = "This is a sample training channel, that is favorited by default, and contains an example of pinned website and YouTube tabs." + Tabs = @( + @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.web')" + DisplayName = "A Pinned Website" + Configuration = @{ + ContentUrl = "https://docs.microsoft.com/microsoftteams/microsoft-teams" + } + } + @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.youtube')" + DisplayName = "A Pinned YouTube Video" + Configuration = @{ + ContentUrl = "https://tabs.teams.microsoft.com/Youtube/Home/YoutubeTab?videoId=X8krAMdGvCQ" + WebsiteUrl = "https://www.youtube.com/watch?v=X8krAMdGvCQ" + } + } + ) + } + @{ + DisplayName = "Planning 📅 " + Description = "This is a sample of a channel that is not favorited by default, these channels will appear in the more channels overflow menu." + IsFavoriteByDefault = $false + } + @{ + DisplayName = "Issues and Feedback ðŸž" + Description = "This is a sample of a channel that is not favorited by default, these channels will appear in the more channels overflow menu." + } + ) + MemberSettings = @{ + AllowCreateUpdateChannels = $true + AllowDeleteChannels = $true + AllowAddRemoveApps = $true + AllowCreateUpdateRemoveTabs = $true + AllowCreateUpdateRemoveConnectors = $true + } + GuestSettings = @{ + AllowCreateUpdateChannels = $false + AllowDeleteChannels = $false + } + FunSettings = @{ + AllowGiphy = $true + GiphyContentRating = "Moderate" + AllowStickersAndMemes = $true + AllowCustomMemes = $true + } + MessagingSettings = @{ + AllowUserEditMessages = $true + AllowUserDeleteMessages = $true + AllowOwnerDeleteMessages = $true + AllowTeamMentions = $true + AllowChannelMentions = $true + } + InstalledApps = @( + @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('com.microsoft.teamspace.tab.vsts')" + } + @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps('1542629c-01b3-4a6d-8f76-1938b779e48d')" + } + ) +} +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the New-MgTeam Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "Template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" + DisplayName = "My Sample Team" + Description = "My Sample Team’s Description" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('0040b377-61d8-43db-94f5-81374122dc7e')" + } + ) +} +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the New-MgTeam Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "Template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" + DisplayName = "My Sample Team" + Description = "My Sample Team’s Description" +} +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 8: Using the New-MgTeam Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "Template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('standard')" + DisplayName = "My Sample Team" + Description = "My Sample Team’s Description" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + } + ) +} +New-MgTeam -BodyParameter $params +``` +This example shows how to use the New-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgTeamChannel.md b/src/Teams/Teams/examples/v1.0/New-MgTeamChannel.md index 093355d11d5..bc0b86b38a8 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgTeamChannel.md +++ b/src/Teams/Teams/examples/v1.0/New-MgTeamChannel.md @@ -1,18 +1,90 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamChannel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@microsoft.graph.channelCreationMode" = "migration" + DisplayName = "Import_150958_99z" + Description = "Import_150958_99z" + CreatedDateTime = [System.DateTime]::Parse("2020-03-14T11:22:17.067Z") +} +New-MgTeamChannel -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgTeamChannel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "Architecture Discussion" + Description = "This channel is where we debate all future architecture plans" + MembershipType = "standard" +} +New-MgTeamChannel -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgTeamChannel Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#Microsoft.Graph.channel" + MembershipType = "private" + DisplayName = "My First Private Channel" + Description = "This is my first private channels" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('62855810-484b-4823-9e01-60667f8b12ae')" + Roles = @( + "owner" + ) + } + ) +} +New-MgTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgTeamChannel Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#Microsoft.Graph.channel" + MembershipType = "private" + DisplayName = "My First Private Channel" + Description = "This is my first private channels" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" + Roles = @( + "owner" + ) + } + ) +} +New-MgTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgTeamChannel Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "My First Shared Channel" + Description = "This is my first shared channel" + MembershipType = "shared" + Members = @( + @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('7640023f-fe43-573f-9ff4-84a9efe4acd6')" + Roles = @( + "owner" + ) + } + ) +} +New-MgTeamChannel -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgTeamChannelEmail.md b/src/Teams/Teams/examples/v1.0/New-MgTeamChannelEmail.md index 093355d11d5..9891e05aa78 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgTeamChannelEmail.md +++ b/src/Teams/Teams/examples/v1.0/New-MgTeamChannelEmail.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamChannelEmail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +New-MgTeamChannelEmail -TeamId $teamId -ChannelId $channelId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamChannelEmail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgTeamChannelMember.md b/src/Teams/Teams/examples/v1.0/New-MgTeamChannelMember.md index 093355d11d5..b54f2b0b4b6 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgTeamChannelMember.md +++ b/src/Teams/Teams/examples/v1.0/New-MgTeamChannelMember.md @@ -1,18 +1,88 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamChannelMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" +} +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgTeamChannelMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId ``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgTeamChannelMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" +} +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgTeamChannelMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/beta/users('jacob@contoso.com')" +} +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgTeamChannelMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users/8b081ef6-4792-4def-b2c9-c363a1bf41d5" +} +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the New-MgTeamChannelMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users/24b3819b-4e1d-4f3e-86bd-e42b54d0b2b4" +} +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the New-MgTeamChannelMember Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users/bc3598dd-cce4-4742-ae15-173429951408" + TenantId = "a18103d1-a6ef-4f66-ac64-e4ef42ea8681" +} +New-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgTeamChannelMessage.md b/src/Teams/Teams/examples/v1.0/New-MgTeamChannelMessage.md index 093355d11d5..706fd97793a 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgTeamChannelMessage.md +++ b/src/Teams/Teams/examples/v1.0/New-MgTeamChannelMessage.md @@ -1,18 +1,277 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamChannelMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + Content = "Hello World" + } +} +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgTeamChannelMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + Content = "Hello World" + } +} +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the New-MgTeamChannelMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + ContentType = "html" + Content = "Hello World Jane Smith" + } + Mentions = @( + @{ + Id = 0 + MentionText = "Jane Smith" + Mentioned = @{ + User = @{ + DisplayName = "Jane Smith" + Id = "ef1c916a-3135-4417-ba27-8eb7bd084193" + UserIdentityType = "aadUser" + } + } + } + ) +} +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the New-MgTeamChannelMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Subject = $null + Body = @{ + ContentType = "html" + Content = "" + } + Attachments = @( + @{ + Id = "74d20c7f34aa4a7fb74e2b30004247c5" + ContentType = "application/vnd.microsoft.card.thumbnail" + ContentUrl = $null + Content = "{ + "title": "This is an example of posting a card", + "subtitle": "

This is the subtitle

", + "text": "Here is some body text.
\r\nAnd a hyperlink.
\r\nAnd below that is some buttons:", + "buttons": [ + { + "type": "messageBack", + "title": "Login to FakeBot", + "text": "login", + "displayText": "login", + "value": "login" + } + ] +}" + Name = $null + ThumbnailUrl = $null + } + ) +} +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the New-MgTeamChannelMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + ContentType = "html" + Content = "Here's the latest budget. " + } + Attachments = @( + @{ + Id = "153fa47d-18c9-4179-be08-9879815a9f90" + ContentType = "reference" + ContentUrl = "https://m365x987948.sharepoint.com/sites/test/Shared%20Documents/General/test%20doc.docx" + Name = "Budget.docx" + } + ) +} +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 6: Using the New-MgTeamChannelMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Subject = $null + Body = @{ + ContentType = "html" + Content = "" + } + Attachments = @( + @{ + Id = "74d20c7f34aa4a7fb74e2b30004247c5" + ContentType = "application/vnd.microsoft.card.adaptive" + ContentUrl = $null + Content = "{ + "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", + "type": "AdaptiveCard", + "version": "1.2", + "speak": "The Seattle Seahawks beat the Carolina Panthers 40-7", + "body": [ + { + "type": "Container", + "items": [ + { + "type": "ColumnSet", + "columns": [ + { + "type": "Column", + "width": "auto", + "items": [ + { + "type": "Image", + "url": "../hostedContents/1/$value", + "size": "Medium" + }, + { + "type": "TextBlock", + "text": "SHADES", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + }, + { + "type": "Column", + "width": "stretch", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "TextBlock", + "text": "2019-08-31T19:30:00Z", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "Final", + "spacing": "None", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "40 - 7", + "size": "ExtraLarge", + "horizontalAlignment": "Center" + } + ] + }, + { + "type": "Column", + "width": "auto", + "separator": true, + "spacing": "Medium", + "items": [ + { + "type": "Image", + "url": "../hostedContents/2/$value", + "size": "Medium", + "horizontalAlignment": "Center" + }, + { + "type": "TextBlock", + "text": "SKINS", + "horizontalAlignment": "Center", + "weight": "Bolder" + } + ] + } + ] + } + ] + } + ] +}" + Name = $null + ThumbnailUrl = $null + } + ) + HostedContents = @( + @{ + "@microsoft.graph.temporaryId" = "1" + ContentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAhr0lEQVR4Xu3d76tdV50GcP+EvJu3/QuGvJgXxSk0Y8QwzZRmCG2lQkjrkM4UjOmLgmAt0bQGLqipo1ghmIhSRBIMbV+UpmiIRSYV9IqmHaqNgRJbUGqoA30xMGe+z+1ZNyfrPuec/WN9115r7yfw6Y917zlnn+9e68ne66y9z8dms1kjTzzxxC6zxxw3h80d7Pekfti3832MfX3A7GK/J5IDbYxZJz1mbppZ5JJRBx4J7Etzar5vY8fZY0S80cZF6JxRZ41dN7vZY6Uetg8RUJvzfbrMWfZYEU+0MbBOicN+1lljOMo6zJ5Dymf7bvd8H7J9G9vDnkPEC20MrEMuO/Rf5hR7HimX7TOcyrN9ucwF9jwiXmhjYB0Sc06so66ieaoKYB+Zs/N91sYl9nwiXmhjgA4ZddCmNE9VMNs3OI1fN/+0jEJKsqKNATpk1EHb0DxVgWyfYBlJ0/knRiElWdHGAB0y6qBd6BOhQti+aDv/xCikJCvaGKBDRh20K5xaaJ5qIKi96TL/xCikJCvaGKBDRh20D5xiaJ4qM9TcdJ1/YhRSkhVtDNAhow6aguapMrFa45KWPvNPjEJKsqKNATpk1EFT0TyVM6vxuisFulJISVa0MUCHjDpoSjgF0UXKiVlNMf90YV5jDwopyYo2BuiQUQdNDaciuswiEatl6vknRiElWdHGAB0y6qBejrHXl+ashh7zT4xCSrKijQE6ZNRBPeEjci1T6MDq1vYayz4UUpIVbQzQIaMO6k3zVC1YrTD/lHsfKaQkK9oYoENGHTQHzVM1YDXC/BOukWQ19KSQkqxoY4AOGXXQnHQnyCWsNri1b475J0YhJVnRxgAdMuqgueGjdM1TLbB65Jx/YhRSkhVtDNAhow46BMxTTf5yGqvBEPNPjEJKsqKNATpk1EGHglObA2wb27hx40bnSXl7bKcjuq6PW2Tvvc3tfb0ppCQr2higQ0YddGid56ksLM6am6b1Udn8sZumVeDg9+eP63wZkL1nzD+xWgxFISVZ0cYAHTLqoCVoPU+FkDCzuVZBFT22cVDh9+a/Hx7bOqjsfaa6vUpKCinJijYG6JBRBy1F49sTIxwWgiJoFFT2O+yxa4MKP5//XvzYRkFl7w3zT96Xt3SlkJKsaGOADhl10JJgjmblbV8QClFILFoZVPazVY9dGlRon/+cPQ5WBpW9p7639/WmkJKsaGOADhl10BLRr9FCGEThwNCgsrYmj90RVPj/eTv7/UU0qOy9pLi9rzeFlGRFGwN0yKiDlgrbuR0YCIEoFFa5Lajsv9s8djuo8O/5/7PfY7aDCttuSpx/YhRSkhVtDNAhow5asq15Kgz+KAya2Aoq0+WxCKY75v9mP18FwdTn66WGoJCSrGhjgA4ZddCiPf300x9cv379f0kYFOub3/zm/7D3UrDkIXXz4393hzlrLk3IBaNrVBugjQE6ZNRBi7exsTG7du0aDYTSnDlzhr6HwiULKRukIZxmE4bAUlitQBsDdMiog1ahhqCqNKCgd0jZoFQ47aSwWoI2BuiQUQetRslBVXFAQeeQskGocFpPYRWhjQE6ZNRBq1JiUFUeUNA6pGzQKZzaU1jN0cYAHTLqoNUpKahGEFDQOKRskCmc+pt8WNHGAB0y6qBVKiGoRhJQsDakbFApnNKbbFjRxgAdMuqg1RoyqEYUULA0pGwQDRlOGMRdXDfs+UqFbZ5UWNHGAB0y6qBVu3LlCg0Rb2xbKrYjpGzQDBlOeN1eX95hjz9sFFaFoo0BOmTUQaumkEpiO6RskFQdTjF7PoVVgWhjgA4ZddCqKaSSwKAYVTjF7PkVVgWhjQE6ZNRBq6aQ6ufpo/8xe/1f/uG9aHDk4h5OMXs9hVUBaGNgHVMhlQDblpognC4f+DgbEDlkD6eYvb7CakC0MbAOqpBKgG1LDaYeTjHbHoXVAGhjYB1VIZUA25aSKZxWs+1TWGWEgrM3JJJb8eEUs+2tMayqo5CSoVUXTjHbfoWVn0sKKRlK9eEUs/ejsEpn+/RUISW5jS6cYvb+FFbd7Zg7U0hJLqMPp5i9X4VVc0sn9hVS4m1y4RSz96+wWm7tp44KKfEy+XCKWT0UVrc0XhKhkJLU3jR/zzqbfMTqM+WwahxOgUJKPNw0xw39Knr5iNVnSmHVOpwChZR4Ulg1YPUZc1h1DqdAISU5KKwasPqMKax6h1OgkJKcFFYNWH1qDqtk4RQopGQICqsGrD41hVXycAoUUjIkhVUDVp+Sw8otnAKFlJRAYdWA1aeksHIPp0AhJSVRWMkOCikpkcJKtimkpGQKK1FISRUUVhOmkJKaKKwmSCElNVJYTYhCSmqmsJoAhBR2MnXx4N3XX3zwUzPm9L/unT2w5x+r8vA9n5r9273/nB3blpI9s/+f6D6HAb/qahWEFdbtTAHu0zWpUKaNwRMrvnfvyJEjszvvvFNG6IEHHqD7HP7zyCEWEuIPizgPs3E6drQxsE6pkJoghVRRJhtOAW0MrFMqpCZIIVWEyYdTQBsD65QKqQlSSA1K4RShjYF1SoXUBCmkBqFwWoI2BtYpFVITpJDKSuG0Bm0MrFMqpCZoVUid+vfDH0aDTLpRODVEGwPrlEtDKvjc5z43e+ihh2Z33XUX7fC1uvfee2c//OEPZ7/+9a9nN27c2PLWW29ttX3605+mj6kV9h2C6bHHHqP7OIK1OmO6F3duCqeWaGOADhl10KUef/zx2f79++kgqM0XvvCF7WBa5rvf/S59bG327t279RcN26dLXAr9A4NtPujYYJTbKZw6oo0BOmTUQdeqPaiaBFSAoyr2HLVAQOEvF7YfV9gOqQCDbz4I2eCcOoVTT7QxQIeMOuha6PS1nvrhFI+F0SpHjx6lz1WDlkdQwY6QCjAY54OSDdapUTglQhsDdMiogzaCOSo2KEqHIyMWRKu89tpr9LlKd99999F918DSkAowOOeDlA3esVM4JUYbA3TIqIM2gr+h2cAoHQuhJnAExp6vZI888gjddw2sDakAg3U+aNlgHhuFkxPaGKBDRh20MTYwSoZP7FgANfHZz36WPmfJOsxFBY1DKsDgnQ9iNrhrp3ByRhsDdMiogzbGBkbJPvOZz9AAagKPZc9ZMrbPGmodUoEN5j1jw96npEUbA3TIqIM2dvfdd9PBUSocDbEAauLEiRP0OUvG9llDnUNKpAvaGKBDRh20sX379tHBUao+IfX1r3+dPmfJ2D5rSCElWdHGAB0y6qCN1bZeCkHDAqiJ2hZ24i8Qts8aUkhJVrQxQIeMOmhjuMyCDZBSdVl+ELzyyiv0OUuFv0DYPmtIISVZ0cYAHTLqoI3hI242QEqF9U4sgJpiz1kqrGNj+6whhZRkRRsDdMiogzaGj7jZACnRJz7xCRo8bdR00XHDC4mXUUhJVrQxQIeMOmgrtcxLtbleb5la5qXwqSvbVy1smj1z+iopcUcbA+uEvULq0KFDdKCUBnNKLHjawC1d2HOXZtW9onpCX4FT5rhBiO1m/UqkDdoYzDsd65CNlb5eqs9K8xiOyNhrlKTHSvM+cPR1wYTw0hGYNEYbA+tMvUOq9KOpn/zkJzRwuij9aKrHRcUerhsE1zGjIy5ZijYG1nl6hxSUejTVZwHnMqUeTeH2OQMdRTV10yi0ZAfaGFhnSRJSpd4Pve+yAwa3GManhez1htRz2cEQcKSF+a0DrG/KdNDGwDpIkpCCgwcP0sEzFHwax0ImBZxCstccSs/FmyXAUdZZo8CaINoYWKdIFlKA29WyQZRbiiUH65Ry0XHHWwSXLASW7kAwEbQxsI6QNKQwWLyDCpPDTz311Oz8+fOzzc3N2QcffLDt/Rdenr2378Gs/nLy2du2Adv08ssvzzY2Nra2lb2HVDAP1XPhZulwSohPDO9g/VfGgTYGtvOThhR4BRWCKQ4lJmdQxQHF/P73v98KrE9+8pP0fXU1gYCKYdJdR1cjRBsD2+nJQwoQVKlWoyOcMNBZACyTI6iaBNSid999d/btb387SViN8BSvDRxdHTZaizUStDGwHe0SUkGfL2zA3TCbHDkt4xlUbQNqEQL30Ucfpe+5CXxAwWo9QZi7wqmgwqpytDGwHewaUoAvbWh7gzycHrEB3pZHUPUJqEXf//736XtfBjXEUg9W44lTWFWONga2Y91DKsAAa3IKiAlxNqi7ShlUqQIqwDqudad/CCes6mc1ldsorCpFGwPbodlCKsCRFU4D2dFV6oAKUgRV6oAKcEobBxXmnHBa1/HLPadOYVUZ2hjYjsweUjEcYeEGevjYng3iVPoElVdABVevXt06WtLpXFIIK30VVQVoY2A7cfCQgnPnztHBm1qXoPIOqODnP/85rY30tnV/LNb/pQy0MbCdN3hIfe1rX6OD1kuboMoVUMHp06dpjSQJrLPSKWCBaGNgO23wkGq7BiqFJkGVO6Dgz3/+8+xLX/oSrZMkgVPAY2wsyHBoY2A7bNCQwje4sMGaw6qgGiKggpdeeonWSpJCv9ftYgpBG4P5zmI7MYt33nmHDtRcWFANGVCBjqayOc7GheRFGwPbSYOF1JBHUYsWg6qEgAIdTWWFiXVdwDwg2hjMdxDbce5++9vf0gE6BARVKQEFOMJkNRM3Wq4wINoItlNwzx62w9w988wzdHDKLfjUk9VOXOkTwAHQRtsRgwUUlHKqVzKd8g0Gd1nQpHpGOxpsBwwaUICFi2xgyi04HWa1k2x0+pfJbf9jhR88oKCk+aiSsdpJVmcXx4/42P4PFDzaAYNhA1J20lKEIuDDJc1TOdr6hxW5mIACNiBlp29961u0fpKd5qkcFRdQwAak7KSQKgqWKehCZQcIqcHWQi3DBqTspJAqkibUE0NI7TJFBRUbkLKTQqpYCqqEtv5hRS0qqNiAlJ2w6JXVT4qgT/4S2f4PKyqCqoj5qaEvLK4Fq50URUGVwI4GK+ypqNDZaZ3UerjPFqudFEdB1RNttMLiyxVZwbPAJR9sYMotup1wVRRUPdBGsMLuNvhYlRXdVe5bBtcI1zey2kmxFFQd0cbACnuHGWRCXfNSq2m1eZUUVB3QxpgVN/s81auvvkoHp3ww++Uvf0lrJlXQ3T5boo2MFfeAyXb6p3tKLaf1UdXTOqoWaOMyVlyc/mW7pbBu2bKTbtEyGgqqhmjjOlbgY1HBXeBoCl/jxAbrVOkoajRwVqKLkhugjU2gwMb9qErLEW7BPB2rkVQLQaUveViDNrZhRcZRletclRZ3fvTlC/pEb5R0P6o1aGNbVmTMVeEm9Wwn9IbBOeXTPrx3ffHCqF1g40o+Qhu7smLvMbgBGNsRvWCQTjWoTp8+TWsio6KlCUvQxr6s4LisJvkp4NSCCu9VK8snRTfNI2hjClZw3FXhuEkaVggqXFzLBrUXBAWOZnIGpE7xJkkT6QRtTMmKnjysMEeVYw0VJqsXgwJLInIEJD4o0CT5ZF1i42jKaKMHK37ysMKaIa9r/LD0YVlQnDt3zuWoSqd3Mqf5qQW00ZPtAITVyws7pDcM7BRhhZDAWqQmd7xEgCHIUoQVth3Bp6MnWaD5qTna6M12AI6o2I7pBadmCJk2gYWQwQW7CLquIYH5Kpx+tgksbCMeo0/uZAl8Sq71U4Y2erPiu4TUIgQOTgdxhIIjnhjCwWNiGkdheG72moBtanKkJmJOsfEzNbTRmxXfPaRERmLyp3200ZsVXiEl0szkT/toozcrukJKpLlJn/bRRm9W9CQh9ZWvfGX25JNP0p+JjMxkT/toozcreO+QOnPmzOzGjRtbNjc3tyal0baxsUF/X6Rym2wsTQFt9GYF7xVSiwG1zJUrV7aC6/nnn589++yzsxMnTtDnygFHe9gGbAu2Cdv25ptvKlClrWNsPI0dbfRmxe4cUk0CahUcdSEkLl68ODt//vyW5557bitEgqankIuPgfB8IYjwWmwbgmvXrimopA1crTG5SXTa6M0K3TmkMKgxuNmgrw1CTHNq0tLkvhaLNnqzQvc63RtDUCmgpIdJ3SmBNnqzIveeOK85qBRQ0tOk7pRAG71ZkXuHFNQYVAooSWQySxJoozcrcJKQgpqCSgElCU3maIo2erMCJwspqCGoFFDiYBJHU7TRmxU3aUhByUGlgBInkziaoo3erLjJQwouX75MQ2JoWMTJtlckgdEfTdFGb1bY5CGFxZksIEqBRahsu0V6Gv3RFG30ZoVNGlKlB1SgoBInu9k4Gwva6M2KmiykagmoQEElDka9Cp02erOiJgmp2gIqUFCJg9GuQqeN3qygvUOq1oAKFFSS2Gi/Bos2ekNBowK3UntABQoqSegmG2tjQBu9WUE7hxRuhcIGfK1wixf2PkU6OMzGW+1oozcrZueQwqJILI5kA742OCJk71Gko1EuR6CN3qyYvU73xhBUCihxMroJdNrozQrZe+K85qBSQImj0X2zDG30ZoXsHVJQY1ApoMTZdTbmakYbvVkhk4QU1BRUCijJZFTX89FGb1bEZCEFNQSVAkoyGtUKdNrozYqYNKSg5KBSQElmo1ozRRu9WRGThxRgzRELiaGxbRVxdoCNvRrRRm9WQIWUiK/RfMpHG71ZARVSIr5G8ykfbfRmBVRIifgbxX2maKM3K55CSsTfMTb+akMbvVnxFFIi/kZxLR9t9GbFU0iJ5LGLjcGa0EZvVjiFlEge1S9FoI3erHAKKZE8ql+KQBu9WeEUUiJ5VD8vRRu9WeEUUiKZxOOvNrTRmxVOISWST9V3RaCN3qxoCimRfKpeL0UbvVnRFFIi+Vxg47AWtNGbFU0hJZLPJhuHtaCN3qxoCimRjOIxWBPa6M2KppASyavayXPa6M0KppASyavaLw6ljd6sYAopkbyOs7FYA9roDQWLCpiEQkpkqWpXntNGb1YwhZRIXtV+wkcbvVnBFFIimcXjsBa00ZsVTCElkl+V95aijd6sWAopkfyqXIZAG71ZsRRSIvkppJqyYimkRPKrchkCbfSGYkXFS0IhJbKSQqopFCsqXhIKKZGVzrHxWDra6M2KpZASye+/2XgsHW30ZsVSSInkV+VXr9NGb1YshZRIfu+x8Vg62ujNiqWQEsnvr2w8lo42erNiKaREBhCPxRrQRm9WLIWUyADisVgD2ujNiqWQEhlAPBZrQBu9WbEUUiIDiMdiDWijNyuWQkpkAPFYrAFt9GSF2m1uLhYuFYVUGo899hhtl1Go7l7ntNGLFcgtoEAhlYZCavSqCira6MEK4xpQoJBKQyE1CdUEFW1MzQriHlCgkEpDITUZVQQVbUzJCpEloEAhlcajjz5K22WUig8q2piKFSBbQIFCKo1Dhw7RdhmtooOKNqZgbzxrQIFCKg2F1CQVG1S0MQV709ejIrhTSKVx//3303YZvSLvgU4bU7A3rCOpObatJTt48CBtl1E7y8ZxCWhjKvbGNSdl2LaW7J577qHtMlrFBhTQxpSsAPp0j2xryfbt2zd7/PHH6c9kdIoOKKCNqVkhsgSVQioNhNSRI0foz2RUig8ooI0erCDuQaWQSgMh9eCDD9KfyWhUEVBAG71YYVyDSiGVBkJq//799GcyCtUEFNBGT1Ygt6BSSKWBkLrrrrvoz6R6VQUU0EZPViSFVOEQUnfeeaeu4RsnhdQqViCd7lUghNRDDz1Efy7V0+keY4XRxHklQkjh3+znMgqaOF9kBXEPKFBIpRFCCrReatSqCCramJIVIktAgUIqjcWQ0sXGo1d8UNHGVKwA2QIKFFJpLIaUTvkmoeigoo0p2BvPGlCgkEpjMaTg6NGj9PdkVIoNKtqYgr3pS1ER3Cmk0ohDSqvPJ2Nyt2rZZTYXCuBOIZVGHFJa2DkJ07vpHdgbzxpUCqk04pACTaCP2jRvHxxYAbIF1cbGBg2JobFtLRkLqT179tDflepN+4sYAitEtqBiITE0tp0lYyEFOpoaneIDCmijBytIlqBiITE0tp0lWxZSOpoalSoCCmijFyuMe1BduXKFBsWQ2HaWbFlIgY6mRqGagALa6MkK5BpUFy9epEExJLadJVsVUjia0qUyVSsioGxc7DZ7zGFzbP7fdAnEjoYcrFDHo8Ilc+bMGRoUQ2LbWbJVIQVaN1WveCzmZGPhgLlgboaxscSmQXDtwuPok3mzYrmFVImf8LHtLNm6kMK6Ka1Cr1M8FnOwMYBwur44JhpCmB2nT+rNiuUWUvDmm2+yNzwYto0lWxdSgN9hj5WyxWPRk/X9XQZHTnRcNEWf3JsVyzWkSpuXYttYsiYhBbopXn3isejF+j0CCqdtdEy0QV/AmxXLNaSee+45+maHwraxZE1DSqd99YnHogfr88kCCuiLeLNiuYYUlHTKx7avZE1DCvbu3UufQ8oUj0UP1ucvxWOgD/oi3qxY7iF1/vx5+oaHwLavZG1CCg4ePEifR8oTj8XUrL8fj/t/X/SFvFmx3EPqxIkT9A0PgW1fydqGFGiRZx3isZiS9XWc5q1bXtAafTFvViz3kIJSJtDZtpWsS0iBvgKrfPFYTMn6evKjKKAv5s2KlSWkSjmaYttWsq4hhYl0BVXZ4rGYkvX1Lmuh1qIv5s2KlSWkoISjKbZdJesaUoCJdF02U654LKZi/RyXudD+3xd9QW9WrGwh9eSTT86uXbtG33wubLtK1iekQEFVrngspmL93OVUD+gLerNiZQspeP755+mbz4VtU8n6hhQoqMoUj8VUrJ+fjft9KvQFvVmxsoYUDHkLF7Y9JUsRUqCgKk88FlOxfp50bdQi+oLerFjZQ2rI0z62PSVLFVKgyfSyxGMxFevnCqkUhvqiBrYtJUsZUoCgOnLkCH0tySsei6lYP1dIpTLE/abYdpQsdUgFuiB5ePFYTMX6efJFnAF9QW9WrMFCCnIvS2DbUDKvkIL77rtP81QDisdiCtbHsdKc9v0U6It6s2INGlKQM6jY65fMM6QAtyDWPNUw4rGYgvVx3NSO9v0U6It6s2INHlKQK6jYa5fMO6QC3YY4v3gspmB93G35AdAX9WbFKiKkIMccFXvdkuUKKcAyBU2q5xOPxb6sf7ue6gF9YW9WrGJCCnCTPM/lCew1S5YzpALNVeURj8W+rH+7rTQP6At7s2IVFVKAi5E3Nzdpkfpir1eyIUIKsFQBp4AKKz/xWOzD+rbb9XqL6It7s2IVF1IBbpaX+qiKvU7JhgqpQGHlajcbk21Zv056i+BV6AZ4s0IVG1KAo6rLly/TgnXBXqNkQ4dUgLDCXT91H/WkjrMx2Zb1a9fJ8kV0A7yhUFHhioQV6imu+WPPXbJSQmrR/v37Z4888gjdXmnlutn60s0urD/jCCpbQAHdEG9WpCpCKkBY9VmuwJ6zZCWGVICjK0yyK7B6OcvG5TrWlzEHleUUbxHdGG9WpKpCKsBFyrjtS9ujK/ZcJSs5pBYhsHCEhfura3Foa42Dyvowjp7cP8Vbhm6UNytQlSG1CIGFpQsvvfTS2tBijy9ZLSEVQ2hh2zHpjiMtBddaOPU7zMao9VsEE1aSZz21Y3ZsXEr2AncYvFGk8CmDK6UvXb169ToGNuA0Cp+oYVHlxsYGK2QVEFqnT5/eej8/+9nPtr73LwjvFZPxeK84GsMpJHueEniGFJ7785///Ox73/vell/84hcUaoSff/WrX92aOMeCz64UVo389eTJk//1ne98Z/OnP/3p22+99dZ7NlZpaORGw6Ure0Kk72GD73/vfFU0BjQ6KT5lI8UsRjiS6vNFpFibhecoKaBTh9QXv/jF2Y9+9KPZr371K1qDJkqs09jhL14cPLzxxhtudzhogoZNW/ZEe4zLYSECC4ViRRwCghODxWOFOsIO4YzOwV47lxQhdf/9928dCfUJ8GXwnDgiHbpOU4Ijfzu6+pDtD280dJqyJ0A4ud3sahE65pBhhXDKdUEyAnDIQdgnpBBOL774In1fqQ1dp6lBnXONgUU0fNaxB2KuCad09Ek94bA/53wOdgwGAtsWbxiEQwRz15DCkZPHEeY6eE0cgbL3IumhT7L94IWG0Cr2oGNm0HNUwCmX99+gmP/wOF1pC6e8Oefn2obUww8/3Gu+KRX8BVb6POZY4C8Ftg880CBi7JezrzRdx7NT5twJTeBoARP1bFtTaxNSJ0+epNs7lKGOPqco5aVjq9BAitkvIqCyrzRtAp0y9Sc+Q5x3N5VjADYNqVxzT13gFJ29N0kHZzI5Tu9pKC2yX8JSeJfveE8pxeBF0XP97dAHQpRtfypNQqrkgAq86yR55qdoMAX2C5ggH3z+qam+p0OY+2HPWyLPAbgupGoIqEBB5c/7aIqGE9gPiz3FW6bPqV/Jp3jLeJ36rQqpmgIq0KmfL3yIxeqeyCkaUGA/zLL+KTUEVdtP/YZaYpCCx3KMZSFV2iR5G7k+dJgi9EFW8wRwkLRrWUANdsVzCjhtY8VkHAucRZdQXoeFFJYZsNevBeqk5Ql+WM17wjTT1l1EWUBluW+xtyaL+zC4S1gH1VebUG6ChVQJ66D6Sl0nucVhHG3fnYGFVFXzUMs0+ZvT+Vw6q5SnM3FIYSU5e80aaWW6j8QfOp1azKQ4oHAHA/agKq36ZAcBxh5TK/xNlvK0LwQUrsVD4LPXrJHH6bEkDakdN+NbDCh8mlfNcoOmlk0s1/hp3jqpPsX68pe/vB1SNX6at44+7UsvUUjRu4Vu/4f9wqiOogIszowLOrajqABHCfF77eIHP/jB9lEUe53a6WgqPVbnlpbeznj7P+yXil9V3lU8NzXGo6ig79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==") + ContentType = "image/png" + } + @{ + "@microsoft.graph.temporaryId" = "2" + ContentBytes = [System.Text.Encoding]::ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAg2UlEQVR4Xu3dz8tcVZ4G8P4TspulWfTGzZiFCxHBgDKCGTAQXgQXmhaMMy70deGq0xJbuwMBMTpCuwgmoIhIhKAuGiPdIQ7NRKF5m1YztJoOiI5gYwdnwMXA1Hyf1zpvyvM+VXV/nO+559z7BD7+OO9bVfd+7zlP7j116tZPZrNZI0888cQes98cM4fNXvZ7Uj8c2/kxxrE+aPaw3xPJgTbGrJNummtmFrlg1IFHAsfSnJwf29gx9hgRb7RxETpn1FljV80+9liphx1DBNTW/Jguc4Y9VsQTbQysU+K0n3XWGM6yDrPnkPLZsds3P4bs2Mb2s+cQ8UIbA+uQy079lznJnkfKZccMl/LsWC5zjj2PiBfaGFiHxJwT66iraJ6qAjhG5sz8mLVxgT2fiBfaGKBDRh20Kc1TFcyODS7j180/LaOQkqxoY4AOGXXQNjRPVSA7JlhG0nT+iVFISVa0MUCHjDpoF3pHqBB2LNrOPzEKKcmKNgbokFEH7QqXFpqnGghqb7rMPzEKKcmKNgbokFEH7QOXGJqnygw1N13nnxiFlGRFGwN0yKiDpqB5qkys1vhIS5/5J0YhJVnRxgAdMuqgqWieypnVeN0nBbpSSElWtDFAh4w6aEq4BNGHlBOzmmL+6dy8xh4UUpIVbQzQIaMOmhouRfQxi0SslqnnnxiFlGRFGwN0yKiDetlkry/NWQ095p8YhZRkRRsDdMiog3rCW+RaptCB1a3tZyz7UEhJVrQxQIeMOqg3zVO1YLXC/FPuY6SQkqxoY4AOGXXQHDRP1YDVCPNP+Iwkq6EnhZRkRRsDdMiog+akO0EuYbXBrX1zzD8xCinJijYG6JBRB80Nb6VrnmqB1SPn/BOjkJKsaGOADhl10CFgnmryH6exGgwx/8QopCQr2higQ0YddCi4tDnItrGNL7/8svOkvD220xld18ctsn1vc3tfbwopyYo2BuiQUQcdWud5KguLM+aaaX1WNn/slmkVOPj9+eM6fwzI9hnzT6wWQ1FISVa0MUCHjDpoCVrPUyEkzGyuVVBFj20cVPi9+e+Hx7YOKtvPVLdXSUkhJVnRxgAdMuqgpWh8e2KEw0JQBI2Cyn6HPXZtUOHn89+LH9soqGzfMP/k/fGWrhRSkhVtDNAhow5aEszRrLztC0IhColFK4PKfrbqsUuDCu3zn7PHwcqgsn3qe3tfbwopyYo2BuiQUQctEf0aLYRBFA4MDSpra/LYXUGF/5+3s99fRIPK9iXF7X29KaQkK9oYoENGHbRU2M6dwEAIRKGwyo+Cyv67zWN3ggr/nv8/+z1mJ6iw7abE+SdGISVZ0cYAHTLqoCXbnqfC4I/CoIntoDJdHotg2jv/N/v5KgimPl8vNQSFlGRFGwN0yKiDFu2ZZ5757urVq/9LwqBYL7zwwv+wfSlY8pC6dus/7DVnzIUJOWf0GdUGaGOADhl10OKdOHFiduXKFRoIpTl9+jTdh8IlCykbpCGcZhOGwFJYrUAbA3TIqINWoYagqjSgoHdI2aBUOO2msFqCNgbokFEHrUbJQVVxQEHnkLJBqHBaT2EVoY0BOmTUQatSYlBVHlDQOqRs0Cmc2lNYzdHGAB0y6qDVKSmoRhBQ0DikbJApnPqbfFjRxgAdMuqgVSohqEYSULA2pGxQKZzSm2xY0cYAHTLqoNUaMqhGFFCwNKRsEA0ZThjEXVw17PlKhW2eVFjRxgAdMuqgVbt06RINEW9sWyq2K6Rs0AwZTnjdXl/eYY8/bBRWhaKNATpk1EGrppBKYiekbJBUHU4xez6FVYFoY4AOGXXQqimkksCgGFU4xez5FVYFoY0BOmTUQaumkOrnmUf/dfbBP9/8dTQ4cnEPp5i9nsKqALQxsI6pkEqAbUtNEE4XD97KBkQO2cMpZq+vsBoQbQysgyqkEmDbUoOph1PMtkdhNQDaGFhHVUglwLalZAqn1Wz7FFYZoeBsh0RyKz6cYra9NYZVdRRSMrTqwilm26+w8nNBISVDqT6cYrY/Cqt0di5PFVKS2+jCKWb7p7DqbtfcmUJKchl9OMVsfxVWzS2d2FdIibfJhVPM9l9htdzadx0VUuJl8uEUs3oorK5rvCRCISWpXTb/yDqb/MDqM+WwahxOgUJKPFwzxwz9Knr5gdVnSmHVOpwChZR4Ulg1YPUZc1h1DqdAISU5KKwasPqMKax6h1OgkJKcFFYNWH1qDqtk4RQopGQICqsGrD41hVXycAoUUjIkhVUDVp+Sw8otnAKFlJRAYdWA1aeksHIPp0AhJSVRWMkuCikpkcJKdiikpGQKK1FISRUUVhOmkJKaKKwmSCElNVJYTYhCSmqmsJoAhBQOMnX+0O1X3773n2Zj8flTm7NvnnsyO7YttRrwq65WQVhh3c4U4D5dkwpl2hg8oe/dS4JtS63+7cj9LCTEHxZxHmbjdOxoY2CdUiGVANuWWimksptsOAW0MbBOqZBKgG1LrRRS2Uw+nALaGFinVEglwLalVgopdwqnCG0MrFMqpBJg21IrhZQbhdMStDGwTqmQSoBtS60UUskpnNagjYF1ymJC6pFHHpk98MADO/D/7PdWqSWkNjc3f7SvDz30EP29IZz8l8PfR4NMulE4NUQbA+uUg4cUBunNN988u+GGG3ZBO37OHseUHlII3ttvv53u64033jjb2Nigj8sMa3XGdC/u3BROLdHGAB0y6qBZ3XnnnXTAxjYaDt6SQwr78NOf/pTu3yKEGHt8RhdC/8Bgmw+6xUEonMKpI9oYoENGHTSbu+++mw7SZTYaBFWpIYWzQbZPywwcVDshFWDwzQdhPDBF4dQbbQzQIaMOmgUue9jgXAVnIevmqUoNKVzKsX1a5b777qPPlcGukAowGOeDkg3WqVE4JUIbA3TIqINmsWxeZh2cfbHnC0oMqQ07A2T7ss5NN91Eny+DpSEVYHDOB2k8cKdA4ZQYbQzQIaMOmkWTuRlm3cAtMaRuvfVWui9N4F1A9pzO1oZUgME6H7RsMI+NwskJbQzQIaMOmgUbkE2x5wtKDKll71w20eadzYQah1SAwTsfxGxw107h5Iw2BuiQUQfNgg3IptjzBQqpJFqHVGCDef/YsP2UtGhjgA4ZddAs2IBsij1foJBKonNIiXRBGwN0yKiDZsEGZFPs+QKFVBIKKcmKNgbokFEHzYINyKbY8wUKqSQUUpIVbQzQIaMOmgUbkE2x5wsUUkkopCQr2higQ0YdNAs2IJtizxcopJJQSElWtDFAh4w6aBZsQDbFni9QSCWhkJKsaGOADhl10CzYgGyKPV+gkEpiy+yf01dJiTvaGFgnVEglwLYlqDCklkFfgZPmmEGI7WP9SqQN2hjMOx3rkK66fOAWMODZ8wUlhlTXzykCe75C4ezrnAnhpTMwaYw2BtaZBgmppveRit1zzz30+YISQwpnQ2xf1sFn/tjzVeSqQXBtGp1xyVK0MbDOM0hI4YOzbT9kjLOvdR+4LTGkoMslX0m3FE7kmlFoyS60MbDOMkhIwUbLW5g0GbSlhhTug9UmlNedMY4EzrQwv3WQ9U2ZDtoYWAcZLKQAQbVu8OLnTSeQSw0pQMg2mYubSEDFcJZ1xiiwJog2BtYpBg0pwFkG5qjiAYz/x03u2txTqeSQAuwLQgj3xVrcVwQxJtjX3Xl0IkJg6Q4EE0EbA+sIg4dUW7/61a9mr7766uz999+fffrpp7Pvvvtux7dv/Xb29V33ZvW348//aBuwTR9++OHs7Nmz29vK9kEawyUh3jHcy/qvjANtDOzgVxNSCKY4lJicQRUHFPPFF19sB9YvfvELul/SGCbddXY1QrQxsINefEghnDDQWQAskyOomgTUom+++Wb2zjvvKKz6w9nVYaO1WCNBGwM70MWG1LPPPtvozGkZz6BqG1CLELgvvvgi3WdpBXNXuBRUWFWONgZ2gIsMKVwesQHelkdQ9QmoRe+99x7dd2lNYVU52hjYgS0upDAhzgZ1VymDKlVABX/+8591+ZeOwqpStDGwA1pUSKUOqCBFUKUOqACXtAqqpBRWlaGNgR3IYkLKK6CCPkHlFVABgorVRHpBWOmrqCpAGwM7iEWEVKo5qHW6BJV3QAUIaVYb6W37/lis/0sZaGNgB2/wkMK7eGzQemkTVLkCKjh16hStkSSBdVa6BCwQbQzsoA0eUn2WGXTVJKhyBxRgLZXmp1zhEnCTjQUZDm0M7IANGlJYqMkGaw6rgmqIgAqw4JPVSpJCv9ftYgpBG4P5wWIHMYu2K8lTY0E1ZEAFOpvK5hgbF5IXbQzsIA0WUkOeRS1aDKoSAgp0NpUVJtb1AeYB0cZgfoDYgXOHhYxsgA4BQVVKQAHOMFnNxI2WKwyINoIdFNyzhx0wd7iFCRucch3e9WS1E1d6B3AAtNEOxGABBaVc6pVMl3yDwV0WNKme0a4GOwCDBhR4ry4fA1wOs9pJNrr8y+RH/2OFHzygoKT5qJKx2klWZxbHj/jY+Q8UPDoAg2EDUnbTUoQi4M0lzVM52v6HFbmYgAI2IGU33RyvGJqnclRcQAEbkLKbQqooWKagDyo7QEgNthZqGTYgZTeFVJE0oZ4YQmqPKSqo2ICU3RRSxVJQJbT9DytqUUHFBqTspu/tK5re+Utk5z+sqAiqIuanhv5gcS1Y7aQoCqoEdjVYYU9Ghc5O66TW0y2Fq6Gg6ok2WmHx5Yqs4FngIx9sYMp1up1wVRRUPdBGsMLuM3hblRXdVe5bBtcIn29ktZNiKag6oo2BFXavGWRCXfNSq2m1eZUUVB3QxpgVN/s8Fb7Blw1O+W724Ycf0ppJFXS3z5ZoI2PFPWiyXf7pnlLLaX1U9bSOqgXauIwVF5d/2W4prFu27KZbtIyGgqoh2riOFXgzKrgLnE3ha5zYYJ0qnUWNBq5K9KHkBmhjEyiwcT+r0nKE6zBPx2ok1UJQ6Use1qCNbViRcVblOlelxZ0/fPmC3tEbJd2Pag3a2JYVGXNVuEk9Owi9YXBO+bIP+64vXhi1c2xcyQ9oY1dW7P0GNwBjB6IXDNKpBtWpU6doTWRUtDRhCdrYlxUcH6tJfgk4taDCvmpl+aTopnkEbUzBCo67KhwzScMKQYUP17JB7QVBgbOZnAGpS7xJ0kQ6QRtTsqInDyvMUeVYQ4XJ6sWgwJKIHAGJNwo0ST5ZF9g4mjLa6MGKnzyssGbI6zN+WPqwLCjOnj3rclalyzuZ0/zUAtroyQ4Awuq3CwekNwzsFGGFkMBapCZ3vESAIchShBW2HcGnsydZoPmpOdrozQ4AzqjYgekFl2YImTaBhZDBB3YRdF1DAvNVuPxsE1jYRjxG79zJEniXXOunDG30ZsV3CalFCBxcDuIMBWc8MYSDx8Q0zsLw3Ow1AdvU5ExNxJxk42dqaKM3K757SImMxOQv+2ijNyu8Qkqkmclf9tFGb1Z0hZRIc5O+7KON3qzoSULql7/85ezo0aP0ZyIjM9nLPtrozQreO6ROnz49+/LLL7dtbW1tT0qj7cSJE/T3RSq3xcbSFNBGb1bwXiG1GFDLXLp0aTu4Xnvttdnzzz8/e/rpp+lz5YCzPWwDtgXbhG27fPmyAlXa2mTjaexoozcrdueQahJQq+CsCyFx/vz52ZtvvrntpZde2g6RoOkl5OJjIDxfCCK8FtuG4MqVKwoqaQOf1pjcJDpt9GaF7hxSGNQY3GzQ1wYhpjk1aWlyX4tFG71ZoXtd7o0hqBRQ0sOk7pRAG71ZkXtPnNccVAoo6WlSd0qgjd6syL1DCmoMKgWUJDKZJQm00ZsVOElIQU1BpYCShCZzNkUbvVmBk4UU1BBUCihxMImzKdrozYqbNKSg5KBSQImTSZxN0UZvVtzkIQUXL16kITE0LOJk2yuSwOjPpmijNyts8pDC4kwWEKXAIlS23SI9jf5sijZ6s8ImDanSAypQUImTfWycjQVt9GZFTRZStQRUoKASB6NehU4bvVlRk4RUbQEVKKjEwWhXodNGb1bQ3iFVa0AFCipJbLRfg0UbvaGgUYFbqT2gAgWVJHSNjbUxoI3erKCdQwq3QmEDvla4xQvbT5EODrPxVjva6M2K2TmksCgSiyPZgK8NzgjZPop0NMrlCLTRmxWz1+XeGIJKASVORjeBThu9WSF7T5zXHFQKKHE0um+WoY3erJC9QwpqDCoFlDi7ysZczWijNytkkpCCmoJKASWZjOrzfLTRmxUxWUhBDUGlgJKMRrUCnTZ6syImDSkoOagUUJLZqNZM0UZvVsTkIQVYc8RCYmhsW0WcHWRjr0a00ZsVUCEl4ms07/LRRm9WQIWUiK/RvMtHG71ZARVSIv5GcZ8p2ujNiqeQEvG3ycZfbWijNyueQkrE3yg+y0cbvVnxFFIieexhY7AmtNGbFU4hJZJH9UsRaKM3K5xCSiSP6pci0EZvVjiFlEge1c9L0UZvVjiFlEgm8firDW30ZoVTSInkU/VdEWijNyuaQkokn6rXS9FGb1Y0hZRIPufYOKwFbfRmRVNIieSzxcZhLWijNyuaQkoko3gM1oQ2erOiKaRE8qp28pw2erOCKaRE8qr2i0NpozcrmEJKJK9jbCzWgDZ6Q8GiAiahkBJZqtqV57TRmxVMISWSV7Xv8NFGb1YwhZRIZvE4rAVt9GYFU0iJ5FflvaVoozcrlkJKJL8qlyHQRm9WLIWUSH4KqaasWAopkfyqXIZAG72hWFHxklBIiaykkGoKxYqKl4RCSmSls2w8lo42erNiKaRE8vtPNh5LRxu9WbEUUiL5VfnV67TRmxVLISWS39dsPJaONnqzYimkRPL7OxuPpaON3qxYCimRAcRjsQa00ZsVSyElMoB4LNaANnqzYimkRAYQj8Ua0EZvViyFlMgA4rFYA9rozYqlkBIZQDwWa0AbPVmh9plri4VLRSGVxiOPPELbZRSqu9c5bfRiBXILKFBIpaGQGr2qgoo2erDCuAYUKKTSUEhNQjVBRRtTs4K4BxQopNJQSE1GFUFFG1OyQmQJKFBIpfHwww/Tdhml4oOKNqZiBcgWUKCQSuP++++n7TJaRQcVbUzBdjxrQIFCKg2F1CQVG1S0MQXb6atREdwppNLY2Nig7TJ6Rd4DnTamYDusM6k5tq0lO3ToEG2XUTvDxnEJaGMqtuOakzJsW0t2991303YZrWIDCmhjSlYAvbtHtrVkd9111+zxxx+nP5PRKTqggDamZoXIElQKqTQQUkeOHKE/k1EpPqCANnqwgrgHlUIqDYTUvffeS38mo1FFQAFt9GKFcQ0qhVQaCKkDBw7Qn8koVBNQQBs9WYHcgkohlQZC6rbbbqM/k+pVFVBAGz1ZkRRShUNI3XLLLfoM3zgppFaxAulyrwIhpO677z76c6meLvcYK4wmzisRQgr/Zj+XUdDE+SIriHtAgUIqjRBSoPVSo1ZFUNHGlKwQWQIKFFJpLIaUPmw8esUHFW1MxQqQLaBAIZXGYkjpkm8Sig4q2piC7XjWgAKFVBqLIQWPPvoo/T0ZlWKDijamYDt9ISqCO4VUGnFIafX5ZEzuVi17zNZCAdwppNKIQ0oLOydheje9A9vxrEGlkEojDinQBPqoTfP2wYEVIFtQnThxgobE0Ni2loyF1P79++nvSvWm/UUMgRUiW1CxkBga286SsZACnU2NTvEBBbTRgxUkS1CxkBga286SLQspnU2NShUBBbTRixXGPaguXbpEg2JIbDtLtiykQGdTo1BNQAFt9GQFcg2q8+fP06AYEtvOkq0KKZxN6aMyVSsioGxc7DP7zWGzOf9vugRiV0MOVqhjUeGSOX36NA2KIbHtLNmqkAKtm6pXPBZzsrFw0Jwz18LYWGLLILj24HH0ybxZsdxCqsR3+Nh2lmxdSGHdlFah1ykeiznYGEA4XV0cEw0hzI7RJ/VmxXILKbh8+TLb4cGwbSzZupAC/A57rJQtHouerO/vMThzouOiKfrk3qxYriFV2rwU28aSNQkp0E3x6hOPRS/W7xFQuGyjY6IN+gLerFiuIfXSSy/RnR0K28aSNQ0pXfbVJx6LHqzPJwsooC/izYrlGlJQ0iUf276SNQ0puOOOO+hzSJnisejB+vyFeAz0QV/EmxXLPaTefPNNusNDYNtXsjYhBYcOHaLPI+WJx2Jq1t+Pxf2/L/pC3qxY7iH19NNP0x0eAtu+krUNKdAizzrEYzEl6+u4zFu3vKA1+mLerFjuIQWlTKCzbStZl5ACfQVW+eKxmJL19eRnUUBfzJsVK0tIlXI2xbatZF1DChPpCqqyxWMxJevrXdZCrUVfzJsVK0tIQQlnU2y7StY1pAAT6frYTLnisZiK9XN8zIX2/77oC3qzYmULqaNHj86uXLlCdz4Xtl0l6xNSoKAqVzwWU7F+7nKpB/QFvVmxsoUUvPbaa3Tnc2HbVLK+IQUKqjLFYzEV6+dn4n6fCn1Bb1asrCEFQ97ChW1PyVKEFCioyhOPxVSsnyddG7WIvqA3K1b2kBryso9tT8lShRRoMr0s8VhMxfq5QiqFob6ogW1LyVKGFCCojhw5Ql9L8orHYirWzxVSqQxxvym2HSVLHVKBPpA8vHgspmL9PPkizoC+oDcr1mAhBbmXJbBtKJlXSME999yjeaoBxWMxBevjWGlO+34K9EW9WbEGDSnIGVTs9UvmGVKAWxBrnmoY8VhMwfo4bmpH+34K9EW9WbEGDynIFVTstUvmHVKBbkOcXzwWU7A+7rb8AOiLerNiFRFSkGOOir1uyXKFFGCZgibV84nHYl/Wv10v9YC+sDcrVjEhBbhJnufyBPaaJcsZUoHmqvKIx2Jf1r/dVpoH9IW9WbGKCinAh5G3trZokfpir1eyIUIKsFQBl4AKKz/xWOzD+rbb5/UW0Rf3ZsUqLqQC3Cwv9VkVe52SDRVSgcLK1T42Jtuyfp30FsGr0A3wZoUqNqQAZ1UXL16kBeuCvUbJhg6pAGGFu37qPupJHWNjsi3r166T5YvoBnhDoaLCFQkr1FN85o89d8lKCalFBw4cmD344IN0e6WVq2b7Sze7sP6MM6hsAQV0Q7xZkaoIqQBh1We5AnvOkpUYUgHOrjDJrsDq5Qwbl+tYX8YcVJZLvEV0Y7xZkaoKqQAfUsZtX9qeXbHnKlnJIbUIgYUzLNxfXYtDW2scVNaHcfbk/i7eMnSjvFmBqgypRQgsLF1455131oYWe3zJagmpGEIL245Jd5xpKbjWwqXfYTZGrd8imLCSPOulHbNr41KyF9hrsKNI4ZMGn5S+8PHHH1/FwAZcRuEdNSyqPHHiBCtkFRBap06d2t6f3//+99vf+xeEfcVkPPYVZ2O4hGTPUwLPkMJzP/bYY7OXX3552x/+8AcKNcLPf/3rX29PnGPBZ1cKq0b+fvz48f/4zW9+s/W73/3u87/85S9f21iloZEbDZeu7AmRvocNvv+986eiMaDRSfEuGylmMcKZVJ8vIsXaLDxHSQGdOqR+/vOfz15//fXZH//4R1qDJkqs09jhL16cPHzyySdudzhogoZNW/ZE+43LaSECC4ViRRwCghODxWOFOsIO4YzOwV47lxQhtbGxsX0m1CfAl8Fz4ox06DpNCc787ezqe3Y8vNHQacqeAOHkdrOrReiYQ4YVwinXB5IRgEMOwj4hhXB6++236X6lNnSdpgZ1zjUGFtHwWcceiLkmXNLRJ/WE0/6c8zk4MBgIbFu8YRAOEcxdQwpnTh5nmOvgNXEGyvZF0kOfZMfBCw2hVexBm2bQa1TAJZf336CY//C4XGkLl7w55+fahtTPfvazXvNNqeAvsNLnMccCfymwY+CBBhFjv5x9pek6np0y50FoAmcLmKhn25pam5A6fvw43d6hDHX2OUUpPzq2Cg2kmP0iAir7StMm0ClTv+MzxHV3UzkGYNOQyjX31AUu0dm+STq4kslxeU9DaZH9EpbCu3zHe0opBi+Knutvhz4Qomz7U2kSUiUHVOBdJ8kzP0WDKbBfwAT54PNPTfW9HMLcD3veEnkOwHUhVUNABQoqf95nUzScwH5Y7CXeMn0u/Uq+xFvG69JvVUjVFFCBLv184U0sVvdETtKAAvthlvVPqSGo2r7rN9QSgxQ8lmMsC6nSJsnbyPWmwxShD7KaJ4CTpD3LAmqwTzyngMs2VkzGscBZdAnldVhIYZkBe/1aoE5anuCH1bwnTDNt30WUBVSW+xZ7a7K4D4O7hHVQfbUJ5SZYSJWwDqqv1HWS6xzG0c7dGVhIVTUPtUyTvzmdr6WzSnk5E4cUVpKz16yRVqb7SPym08nFTIoDCncwYA+q0qp3dhBg7DG1wt9kKS/7QkDhs3gIfPaaNfK4PJakIbXrZnyLAYV386pZbtDUsonlGt/NWyfVu1hPPfXUTkjV+G7eOnq3L71EIUXvFrrzH/YLozqLCrA4My7o2M6iApwlxPvaxSuvvLJzFsVep3Y6m0qP1bmlpbcz3vkP+6XiV5V3Fc9NjfEsKui7duq5557bCakzZ87Q1xgDzU2lg7WJrMYtrLzf+vY/7JdwXyj24FFYPL3H36BjmmOJ4UPXix2orbfeemsnpMZcJ8zhsf2X9np+GP9Hk+TM9j/sF4u6u0Fqix0yx2eNhtZnPdBXX321HVK45S977jHRrYjTwF+MrL5rYP6bfglEbPsf8wewJxqN0CFr+ABxX10vZbCMAX8QUmOcMI9pAr2/jouhscyp8de9I6BGsXhznTBwx3wJE7A3C5r4/PPPrU/8EFJjWOS6Tt9LY+n0rh6+NarVNygjpHCnTfZko4KBm2CCrwpd3uXDXFT4c+7cOfq8Y8RqIc20nIvC2dN+6140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC") + ContentType = "image/png" + } + ) +} +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 7: Using the New-MgTeamChannelMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + ContentType = "html" + Content = "
General Hello there!
" + } + Mentions = @( + @{ + Id = 0 + MentionText = "General" + Mentioned = @{ + Conversation = @{ + Id = "19:0b50940236084d258c97b21bd01917b0@thread.skype" + DisplayName = "General" + ConversationIdentityType = "channel" + } + } + } + ) +} +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 8: Using the New-MgTeamChannelMessage Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + ContentType = "html" + Content = "
GraphTesting Hello team
" + } + Mentions = @( + @{ + Id = 0 + MentionText = "GraphTesting" + Mentioned = @{ + Conversation = @{ + Id = "68a3e365-f7d9-4a56-b499-24332a9cc572" + DisplayName = "GraphTesting" + ConversationIdentityType = "team" + } + } + } + ) + Reactions = @( + ) +} +New-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -BodyParameter $params +``` +This example shows how to use the New-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgTeamChannelMessageReply.md b/src/Teams/Teams/examples/v1.0/New-MgTeamChannelMessageReply.md index 093355d11d5..148720384ee 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgTeamChannelMessageReply.md +++ b/src/Teams/Teams/examples/v1.0/New-MgTeamChannelMessageReply.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamChannelMessageReply Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + ContentType = "html" + Content = "Hello World" + } +} +New-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgTeamChannelMessageReply Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgTeamChannelMessageReply Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Body = @{ + ContentType = "html" + Content = "Hello World" + } +} +New-MgTeamChannelMessageReply -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamChannelMessageReply Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgTeamInstalledApp.md b/src/Teams/Teams/examples/v1.0/New-MgTeamInstalledApp.md index 093355d11d5..2f1e30fcb97 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgTeamInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0/New-MgTeamInstalledApp.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" +} +New-MgTeamInstalledApp -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgTeamMember.md b/src/Teams/Teams/examples/v1.0/New-MgTeamMember.md index 093355d11d5..9c9e8d3623e 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgTeamMember.md +++ b/src/Teams/Teams/examples/v1.0/New-MgTeamMember.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('8b081ef6-4792-4def-b2c9-c363a1bf41d5')" +} +New-MgTeamMember -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgTeamMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) + "User@odata.bind" = "https://graph.microsoft.com/v1.0/users('jacob@contoso.com')" +} +New-MgTeamMember -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleOfferShiftRequest.md b/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleOfferShiftRequest.md index 093355d11d5..5b52d6fde3c 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleOfferShiftRequest.md +++ b/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleOfferShiftRequest.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamScheduleOfferShiftRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + SenderShiftId = "SHFT_f7e484ed-fdd6-421c-92d9-0bc9e62e2c29" + SenderMessage = "Having a family emergency, could you take this shift for me?" + RecipientUserId = "fe278b61-21ac-4872-8b41-1962bbb98e3c" +} +New-MgTeamScheduleOfferShiftRequest -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamScheduleOfferShiftRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleOpenShift.md b/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleOpenShift.md index 093355d11d5..5e48c4e3cca 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleOpenShift.md +++ b/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleOpenShift.md @@ -1,18 +1,40 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamScheduleOpenShift Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Id = "OPNSHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8" + SchedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" + SharedOpenShift = @{ + Notes = "InventoryManagement" + OpenSlotCount = 2 + DisplayName = "Dayshift" + StartDateTime = [System.DateTime]::Parse("2018-10-04T00: 58: 45.340Z") + EndDateTime = [System.DateTime]::Parse("2018-10-04T09: 50: 45.332Z") + Theme = "white" + Activities = @( + @{ + IsPaid = $true + StartDateTime = [System.DateTime]::Parse("2018-10-04T00: 58: 45.340Z") + EndDateTime = [System.DateTime]::Parse("2018-10-04T01: 58: 45.340Z") + Code = "" + DisplayName = "Lunch" + } + ) + } + DraftOpenShift = $null + CreatedDateTime = [System.DateTime]::Parse("2019-03-14T04: 32: 51.451Z") + LastModifiedDateTime = [System.DateTime]::Parse("2019-03-14T05: 32: 51.451Z") + LastModifiedBy = @{ + Application = $null + Device = $null + Conversation = $null + User = @{ + Id = "366c0b19-49b1-41b5-a03f-9f3887bd0ed8" + DisplayName = "JohnDoe" + } + } +} +New-MgTeamScheduleOpenShift -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamScheduleOpenShift Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleOpenShiftChangeRequest.md b/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleOpenShiftChangeRequest.md index 093355d11d5..e49ac34efd1 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleOpenShiftChangeRequest.md +++ b/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleOpenShiftChangeRequest.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamScheduleOpenShiftChangeRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + SenderMessage = "Can I take this shift?" + OpenShiftId = "577b75d2-a927-48c0-a5d1-dc984894e7b8" +} +New-MgTeamScheduleOpenShiftChangeRequest -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamScheduleOpenShiftChangeRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleSchedulingGroup.md b/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleSchedulingGroup.md index 093355d11d5..c2fef1a223f 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleSchedulingGroup.md +++ b/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleSchedulingGroup.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamScheduleSchedulingGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "Cashiers" + IsActive = $true + UserIds = @( + "c5d0c76b-80c4-481c-be50-923cd8d680a1" + "2a4296b3-a28a-44ba-bc66-0274b9b95851" + ) +} +New-MgTeamScheduleSchedulingGroup -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamScheduleSchedulingGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleShift.md b/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleShift.md index 093355d11d5..00ae35bfce1 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleShift.md +++ b/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleShift.md @@ -1,18 +1,44 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamScheduleShift Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Id = "SHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8" + UserId = "c5d0c76b-80c4-481c-be50-923cd8d680a1" + SchedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" + SharedShift = @{ + DisplayName = "Day shift" + Notes = "Please do inventory as part of your shift." + StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + EndDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") + Theme = "blue" + Activities = @( + @{ + IsPaid = $true + StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + EndDateTime = [System.DateTime]::Parse("2019-03-11T15:15:00Z") + Code = "" + DisplayName = "Lunch" + } + ) + } + DraftShift = @{ + DisplayName = "Day shift" + Notes = "Please do inventory as part of your shift." + StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + EndDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") + Theme = "blue" + Activities = @( + @{ + IsPaid = $true + StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + EndDateTime = [System.DateTime]::Parse("2019-03-11T15:30:00Z") + Code = "" + DisplayName = "Lunch" + } + ) + } +} +New-MgTeamScheduleShift -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamScheduleShift Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleSwapShiftChangeRequest.md b/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleSwapShiftChangeRequest.md index 093355d11d5..6871b318d41 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleSwapShiftChangeRequest.md +++ b/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleSwapShiftChangeRequest.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamScheduleSwapShiftChangeRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + SenderShiftId = "5ad10161-6524-4c7c-9beb-4e8677ba2f6d" + SenderMessage = "I can't make my shift, any chance we can swap?" + RecipientUserId = "567c8ea5-9e32-422a-a663-8270201699cd" + RecipientShiftId = "e73408ca-3ea5-4bbf-96a8-2e06c95f7a2c" +} +New-MgTeamScheduleSwapShiftChangeRequest -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamScheduleSwapShiftChangeRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleTimeOff.md b/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleTimeOff.md index 093355d11d5..09f871a00b9 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleTimeOff.md +++ b/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleTimeOff.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamScheduleTimeOff Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + UserId = "c5d0c76b-80c4-481c-be50-923cd8d680a1" + SharedTimeOff = @{ + TimeOffReasonId = "TOR_891045ca-b5d2-406b-aa06-a3c8921245d7" + StartDateTime = [System.DateTime]::Parse("2019-03-11T07:00:00Z") + EndDateTime = [System.DateTime]::Parse("2019-03-12T07:00:00Z") + Theme = "white" + } + DraftTimeOff = @{ + TimeOffReasonId = "TOR_891045ca-b5d2-406b-aa06-a3c8921245d7" + StartDateTime = [System.DateTime]::Parse("2019-03-11T07:00:00Z") + EndDateTime = [System.DateTime]::Parse("2019-03-12T07:00:00Z") + Theme = "pink" + } +} +New-MgTeamScheduleTimeOff -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamScheduleTimeOff Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleTimeOffReason.md b/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleTimeOffReason.md index 093355d11d5..3452d478074 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleTimeOffReason.md +++ b/src/Teams/Teams/examples/v1.0/New-MgTeamScheduleTimeOffReason.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamScheduleTimeOffReason Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "Vacation" + IconType = "plane" + IsActive = $true +} +New-MgTeamScheduleTimeOffReason -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamScheduleTimeOffReason Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgTeamworkWorkforceIntegration.md b/src/Teams/Teams/examples/v1.0/New-MgTeamworkWorkforceIntegration.md index 093355d11d5..81bf71d74ab 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgTeamworkWorkforceIntegration.md +++ b/src/Teams/Teams/examples/v1.0/New-MgTeamworkWorkforceIntegration.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgTeamworkWorkforceIntegration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "displayName-value" + ApiVersion = 99 + Encryption = @{ + Protocol = "protocol-value" + Secret = "secret-value" + } + IsActive = $true + Url = "url-value" + SupportedEntities = "supportedEntities-value" +} +New-MgTeamworkWorkforceIntegration -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgTeamworkWorkforceIntegration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/New-MgUserTeamworkInstalledApp.md b/src/Teams/Teams/examples/v1.0/New-MgUserTeamworkInstalledApp.md index 093355d11d5..d628d59ee6e 100644 --- a/src/Teams/Teams/examples/v1.0/New-MgUserTeamworkInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0/New-MgUserTeamworkInstalledApp.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserTeamworkInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "TeamsApp@odata.bind" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/12345678-9abc-def0-123456789a" +} +New-MgUserTeamworkInstalledApp -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserTeamworkInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgAppCatalogTeamApp.md b/src/Teams/Teams/examples/v1.0/Remove-MgAppCatalogTeamApp.md index 093355d11d5..772453c5e48 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgAppCatalogTeamApp.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgAppCatalogTeamApp.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgAppCatalogTeamApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgAppCatalogTeamApp -TeamsAppId $teamsAppId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgAppCatalogTeamApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgChatInstalledApp.md b/src/Teams/Teams/examples/v1.0/Remove-MgChatInstalledApp.md index 093355d11d5..c9b09294f71 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgChatInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgChatInstalledApp.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgChatInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgChatInstalledApp -ChatId $chatId -TeamsAppInstallationId $teamsAppInstallationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgChatInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgChatMember.md b/src/Teams/Teams/examples/v1.0/Remove-MgChatMember.md index 093355d11d5..f488c163441 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgChatMember.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgChatMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgChatMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgChatMember -ChatId $chatId -ConversationMemberId $conversationMemberId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgChatMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgChatTab.md b/src/Teams/Teams/examples/v1.0/Remove-MgChatTab.md index 093355d11d5..fd001facd28 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgChatTab.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgChatTab.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgChatTab Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgChatTab Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgTeamChannel.md b/src/Teams/Teams/examples/v1.0/Remove-MgTeamChannel.md index 093355d11d5..8a8ef994ba2 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgTeamChannel.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgTeamChannel.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamChannel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamChannel -TeamId $teamId -ChannelId $channelId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgTeamChannelEmail.md b/src/Teams/Teams/examples/v1.0/Remove-MgTeamChannelEmail.md index 093355d11d5..bcee4a41896 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgTeamChannelEmail.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgTeamChannelEmail.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamChannelEmail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamChannelEmail -TeamId $teamId -ChannelId $channelId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamChannelEmail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgTeamChannelMember.md b/src/Teams/Teams/examples/v1.0/Remove-MgTeamChannelMember.md index 093355d11d5..85c27485640 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgTeamChannelMember.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgTeamChannelMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamChannelMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -ConversationMemberId $conversationMemberId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgTeamChannelSharedWithTeam.md b/src/Teams/Teams/examples/v1.0/Remove-MgTeamChannelSharedWithTeam.md index 093355d11d5..f02708aff2b 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgTeamChannelSharedWithTeam.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgTeamChannelSharedWithTeam.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamChannelSharedWithTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamChannelSharedWithTeam -TeamId $teamId -ChannelId $channelId -SharedWithChannelTeamInfoId $sharedWithChannelTeamInfoId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamChannelSharedWithTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgTeamInstalledApp.md b/src/Teams/Teams/examples/v1.0/Remove-MgTeamInstalledApp.md index 093355d11d5..adc66855ad1 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgTeamInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgTeamInstalledApp.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgTeamMember.md b/src/Teams/Teams/examples/v1.0/Remove-MgTeamMember.md index 093355d11d5..6b8152c9664 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgTeamMember.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgTeamMember.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleOpenShift.md b/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleOpenShift.md index 093355d11d5..589613a7e42 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleOpenShift.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleOpenShift.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamScheduleOpenShift Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamScheduleOpenShift Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleSchedulingGroup.md b/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleSchedulingGroup.md index 093355d11d5..8d6489822f4 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleSchedulingGroup.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleSchedulingGroup.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamScheduleSchedulingGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamScheduleSchedulingGroup -TeamId $teamId -SchedulingGroupId $schedulingGroupId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamScheduleSchedulingGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleShift.md b/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleShift.md index 093355d11d5..ae7c5ad23a8 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleShift.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleShift.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamScheduleShift Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamScheduleShift -TeamId $teamId -ShiftId $shiftId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamScheduleShift Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleTimeOff.md b/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleTimeOff.md index 093355d11d5..f239484debf 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleTimeOff.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleTimeOff.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamScheduleTimeOff Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamScheduleTimeOff -TeamId $teamId -TimeOffId $timeOffId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamScheduleTimeOff Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleTimeOffReason.md b/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleTimeOffReason.md index 093355d11d5..ccb9258089d 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleTimeOffReason.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleTimeOffReason.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamScheduleTimeOffReason Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamScheduleTimeOffReason -TeamId $teamId -TimeOffReasonId $timeOffReasonId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamScheduleTimeOffReason Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleTimeOffRequest.md b/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleTimeOffRequest.md index 093355d11d5..dc587b1ac9a 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleTimeOffRequest.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgTeamScheduleTimeOffRequest.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamScheduleTimeOffRequest Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamScheduleTimeOffRequest -TeamId $teamId -TimeOffRequestId $timeOffRequestId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamScheduleTimeOffRequest Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgTeamworkWorkforceIntegration.md b/src/Teams/Teams/examples/v1.0/Remove-MgTeamworkWorkforceIntegration.md index 093355d11d5..f857bac3fb1 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgTeamworkWorkforceIntegration.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgTeamworkWorkforceIntegration.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgTeamworkWorkforceIntegration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgTeamworkWorkforceIntegration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Remove-MgUserTeamworkInstalledApp.md b/src/Teams/Teams/examples/v1.0/Remove-MgUserTeamworkInstalledApp.md index 093355d11d5..b6fe582e58c 100644 --- a/src/Teams/Teams/examples/v1.0/Remove-MgUserTeamworkInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0/Remove-MgUserTeamworkInstalledApp.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserTeamworkInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Remove-MgUserTeamworkInstalledApp -UserId $userId -UserScopeTeamsAppInstallationId $userScopeTeamsAppInstallationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserTeamworkInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Send-MgChatActivityNotification.md b/src/Teams/Teams/examples/v1.0/Send-MgChatActivityNotification.md index 093355d11d5..a2714d05ba4 100644 --- a/src/Teams/Teams/examples/v1.0/Send-MgChatActivityNotification.md +++ b/src/Teams/Teams/examples/v1.0/Send-MgChatActivityNotification.md @@ -1,18 +1,137 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Send-MgChatActivityNotification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$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" + } + ) +} +Send-MgChatActivityNotification -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Send-MgChatActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Send-MgChatActivityNotification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +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 = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + TemplateParameters = @( + @{ + Name = "approvalTaskId" + Value = "2020AAGGTAPP" + } + ) +} +Send-MgChatActivityNotification -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Send-MgChatActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Send-MgChatActivityNotification Cmdlet +```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-MgChatActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Send-MgChatActivityNotification Cmdlet +```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-MgChatActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 5: Using the Send-MgChatActivityNotification Cmdlet +```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-MgChatActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Send-MgTeamActivityNotification.md b/src/Teams/Teams/examples/v1.0/Send-MgTeamActivityNotification.md index 093355d11d5..0833be706af 100644 --- a/src/Teams/Teams/examples/v1.0/Send-MgTeamActivityNotification.md +++ b/src/Teams/Teams/examples/v1.0/Send-MgTeamActivityNotification.md @@ -1,18 +1,117 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Send-MgTeamActivityNotification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +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-MgTeamActivityNotification -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Send-MgTeamActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Send-MgTeamActivityNotification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/v1.0/teams/{teamId}" + } + ActivityType = "pendingFinanceApprovalRequests" + PreviewText = @{ + Content = "Internal spending team has a pending finance approval requests" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + TemplateParameters = @( + @{ + Name = "pendingRequestCount" + Value = "5" + } + ) +} +Send-MgTeamActivityNotification -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Send-MgTeamActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Send-MgTeamActivityNotification Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/v1.0/teams/{teamId}/channels/{channelId}/tabs/{tabId}" + } + ActivityType = "reservationUpdated" + PreviewText = @{ + Content = "You have moved up the queue" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "569363e2-4e49-4661-87f2-16f245c5d66a" + } + TemplateParameters = @( + @{ + Name = "reservationId" + Value = "TREEE433" + } + @{ + Name = "currentSlot" + Value = "23" + } + ) +} +Send-MgTeamActivityNotification -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Send-MgTeamActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 4: Using the Send-MgTeamActivityNotification Cmdlet +```powershell +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/v1.0/teams/{teamId}/channels/{channelId}/tabs/{tabId}" + } + ActivityType = "reservationUpdated" + PreviewText = @{ + Content = "You have moved up the queue" + } + Recipient = @{ + "@odata.type" = "microsoft.graph.aadUserNotificationRecipient" + UserId = "jacob@contoso.com" + } + TemplateParameters = @( + @{ + Name = "reservationId" + Value = "TREEE433" + } + @{ + Name = "currentSlot" + Value = "23" + } + ) +} +Send-MgTeamActivityNotification -TeamId $teamId -BodyParameter $params +``` +This example shows how to use the Send-MgTeamActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Update-MgChat.md b/src/Teams/Teams/examples/v1.0/Update-MgChat.md index 093355d11d5..7d3d89e4caf 100644 --- a/src/Teams/Teams/examples/v1.0/Update-MgChat.md +++ b/src/Teams/Teams/examples/v1.0/Update-MgChat.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgChat Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Topic = "Group chat title update" +} +Update-MgChat -ChatId $chatId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgChat Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Update-MgChatInstalledApp.md b/src/Teams/Teams/examples/v1.0/Update-MgChatInstalledApp.md index 093355d11d5..02b587bcdc1 100644 --- a/src/Teams/Teams/examples/v1.0/Update-MgChatInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0/Update-MgChatInstalledApp.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgChatInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Update-MgChatInstalledApp -ChatId $chatId -TeamsAppInstallationId $teamsAppInstallationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgChatInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Update-MgChatTab.md b/src/Teams/Teams/examples/v1.0/Update-MgChatTab.md index 093355d11d5..81a3376c7ea 100644 --- a/src/Teams/Teams/examples/v1.0/Update-MgChatTab.md +++ b/src/Teams/Teams/examples/v1.0/Update-MgChatTab.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgChatTab Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "My Contoso Tab - updated again" +} +Update-MgChatTab -ChatId $chatId -TeamsTabId $teamsTabId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgChatTab Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Update-MgTeam.md b/src/Teams/Teams/examples/v1.0/Update-MgTeam.md index 093355d11d5..7bde45ee6c4 100644 --- a/src/Teams/Teams/examples/v1.0/Update-MgTeam.md +++ b/src/Teams/Teams/examples/v1.0/Update-MgTeam.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeam Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + MemberSettings = @{ + AllowCreateUpdateChannels = $true + } + MessagingSettings = @{ + AllowUserEditMessages = $true + AllowUserDeleteMessages = $true + } + FunSettings = @{ + AllowGiphy = $true + GiphyContentRating = "strict" + } +} +Update-MgTeam -TeamId $teamId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeam Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Update-MgTeamChannel.md b/src/Teams/Teams/examples/v1.0/Update-MgTeamChannel.md index 093355d11d5..d8e8a20f2a0 100644 --- a/src/Teams/Teams/examples/v1.0/Update-MgTeamChannel.md +++ b/src/Teams/Teams/examples/v1.0/Update-MgTeamChannel.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeamChannel Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Update-MgTeamChannel -TeamId $teamId -ChannelId $channelId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeamChannel Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Update-MgTeamChannelMember.md b/src/Teams/Teams/examples/v1.0/Update-MgTeamChannelMember.md index 093355d11d5..0b2d2bba171 100644 --- a/src/Teams/Teams/examples/v1.0/Update-MgTeamChannelMember.md +++ b/src/Teams/Teams/examples/v1.0/Update-MgTeamChannelMember.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeamChannelMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) +} +Update-MgTeamChannelMember -TeamId $teamId -ChannelId $channelId -ConversationMemberId $conversationMemberId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeamChannelMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Update-MgTeamChannelMessage.md b/src/Teams/Teams/examples/v1.0/Update-MgTeamChannelMessage.md index 093355d11d5..73c9c8450e7 100644 --- a/src/Teams/Teams/examples/v1.0/Update-MgTeamChannelMessage.md +++ b/src/Teams/Teams/examples/v1.0/Update-MgTeamChannelMessage.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeamChannelMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + PolicyViolation = @{ + PolicyTip = @{ + GeneralText = "This item has been blocked by the administrator." + ComplianceUrl = "https://contoso.com/dlp-policy-page" + MatchedConditionDescriptions = @( + "Credit Card Number" + ) + } + VerdictDetails = "AllowOverrideWithoutJustification,AllowFalsePositiveOverride" + DlpAction = "BlockAccess" + } +} +Update-MgTeamChannelMessage -TeamId $teamId -ChannelId $channelId -ChatMessageId $chatMessageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeamChannelMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Update-MgTeamInstalledApp.md b/src/Teams/Teams/examples/v1.0/Update-MgTeamInstalledApp.md index 093355d11d5..4a1d0192432 100644 --- a/src/Teams/Teams/examples/v1.0/Update-MgTeamInstalledApp.md +++ b/src/Teams/Teams/examples/v1.0/Update-MgTeamInstalledApp.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeamInstalledApp Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +Update-MgTeamInstalledApp -TeamId $teamId -TeamsAppInstallationId $teamsAppInstallationId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeamInstalledApp Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Update-MgTeamMember.md b/src/Teams/Teams/examples/v1.0/Update-MgTeamMember.md index 093355d11d5..83b8cbdcd60 100644 --- a/src/Teams/Teams/examples/v1.0/Update-MgTeamMember.md +++ b/src/Teams/Teams/examples/v1.0/Update-MgTeamMember.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeamMember Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + "@odata.type" = "#microsoft.graph.aadUserConversationMember" + Roles = @( + "owner" + ) +} +Update-MgTeamMember -TeamId $teamId -ConversationMemberId $conversationMemberId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeamMember Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Update-MgTeamScheduleOpenShift.md b/src/Teams/Teams/examples/v1.0/Update-MgTeamScheduleOpenShift.md index 093355d11d5..f17df55b110 100644 --- a/src/Teams/Teams/examples/v1.0/Update-MgTeamScheduleOpenShift.md +++ b/src/Teams/Teams/examples/v1.0/Update-MgTeamScheduleOpenShift.md @@ -1,18 +1,28 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeamScheduleOpenShift Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + SchedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" + SharedOpenShift = @{ + Notes = "Inventory Management" + OpenSlotCount = 5 + DisplayName = "Field shift" + StartDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") + EndDateTime = [System.DateTime]::Parse("2018-10-04T09:50:45.332Z") + Theme = "white" + Activities = @( + @{ + IsPaid = $true + StartDateTime = [System.DateTime]::Parse("2018-10-04T00:58:45.340Z") + EndDateTime = [System.DateTime]::Parse("2018-10-04T01:58:45.340Z") + Code = "" + DisplayName = "Lunch" + } + ) + } + DraftOpenShift = $null +} +Update-MgTeamScheduleOpenShift -TeamId $teamId -OpenShiftId $openShiftId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeamScheduleOpenShift Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Update-MgTeamScheduleShift.md b/src/Teams/Teams/examples/v1.0/Update-MgTeamScheduleShift.md index 093355d11d5..252b9100683 100644 --- a/src/Teams/Teams/examples/v1.0/Update-MgTeamScheduleShift.md +++ b/src/Teams/Teams/examples/v1.0/Update-MgTeamScheduleShift.md @@ -1,18 +1,55 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeamScheduleShift Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + Id = "SHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8" + CreatedDateTime = [System.DateTime]::Parse("2019-03-14T04:32:51.451Z") + LastModifiedDateTime = [System.DateTime]::Parse("2019-03-14T05:32:51.451Z") + UserId = "c5d0c76b-80c4-481c-be50-923cd8d680a1" + SchedulingGroupId = "TAG_228940ed-ff84-4e25-b129-1b395cf78be0" + LastModifiedBy = @{ + Application = $null + Device = $null + Conversation = $null + User = @{ + Id = "366c0b19-49b1-41b5-a03f-9f3887bd0ed8" + DisplayName = "John Doe" + } + } + SharedShift = @{ + DisplayName = "Day shift" + Notes = "Please do inventory as part of your shift." + StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + EndDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") + Theme = "blue" + Activities = @( + @{ + IsPaid = $true + StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + EndDateTime = [System.DateTime]::Parse("2019-03-11T15:15:00Z") + Code = "" + DisplayName = "Lunch" + } + ) + } + DraftShift = @{ + DisplayName = "Day shift" + Notes = "Please do inventory as part of your shift." + StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + EndDateTime = [System.DateTime]::Parse("2019-03-12T00:00:00Z") + Theme = "blue" + Activities = @( + @{ + IsPaid = $true + StartDateTime = [System.DateTime]::Parse("2019-03-11T15:00:00Z") + EndDateTime = [System.DateTime]::Parse("2019-03-11T15:30:00Z") + Code = "" + DisplayName = "Lunch" + } + ) + } +} +Update-MgTeamScheduleShift -TeamId $teamId -ShiftId $shiftId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeamScheduleShift Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Teams/Teams/examples/v1.0/Update-MgTeamworkWorkforceIntegration.md b/src/Teams/Teams/examples/v1.0/Update-MgTeamworkWorkforceIntegration.md index 093355d11d5..e8fc8ee8ad4 100644 --- a/src/Teams/Teams/examples/v1.0/Update-MgTeamworkWorkforceIntegration.md +++ b/src/Teams/Teams/examples/v1.0/Update-MgTeamworkWorkforceIntegration.md @@ -1,18 +1,18 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgTeamworkWorkforceIntegration Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Teams +$params = @{ + DisplayName = "displayName-value" + ApiVersion = 99 + Encryption = @{ + Protocol = "protocol-value" + Secret = "secret-value" + } + IsActive = $true + Url = "url-value" + SupportedEntities = "supportedEntities-value" +} +Update-MgTeamworkWorkforceIntegration -WorkforceIntegrationId $workforceIntegrationId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgTeamworkWorkforceIntegration Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Clear-MgUserPresence.md b/src/Users.Actions/Users.Actions/examples/v1.0/Clear-MgUserPresence.md index 093355d11d5..fe8662d194e 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Clear-MgUserPresence.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Clear-MgUserPresence.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Clear-MgUserPresence Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + SessionId = "22553876-f5ab-4529-bffb-cfe50aa89f87" +} +Clear-MgUserPresence -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Clear-MgUserPresence Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Confirm-MgUserMemberGroup.md b/src/Users.Actions/Users.Actions/examples/v1.0/Confirm-MgUserMemberGroup.md index 093355d11d5..dcb56a01465 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Confirm-MgUserMemberGroup.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Confirm-MgUserMemberGroup.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Confirm-MgUserMemberGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + GroupIds = @( + "fee2c45b-915a-4a64b130f4eb9e75525e" + "4fe90ae065a-478b9400e0a0e1cbd540" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberGroup -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Confirm-MgUserMemberGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Confirm-MgUserMemberObject.md b/src/Users.Actions/Users.Actions/examples/v1.0/Confirm-MgUserMemberObject.md index 093355d11d5..c3dcebd3b87 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Confirm-MgUserMemberObject.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Confirm-MgUserMemberObject.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Confirm-MgUserMemberObject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Ids = @( + "80a963dd-84af-4eb8-b2a6-781e444d4fb0" + "62e90394-69f5-4237-9190-012177145e10" + "86a64f51-3a64-4cc6-a8c8-6b8f000c0f52" + "ac38546e-ddf3-437a-ac5c-27a94cd7a0f1" + ) +} +# A UPN can also be used as -UserId. +Confirm-MgUserMemberObject -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Confirm-MgUserMemberObject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMailFolder.md b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMailFolder.md index 093355d11d5..a7ab132ebe2 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMailFolder.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMailFolder.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Copy-MgUserMailFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + DestinationId = "destinationId-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Copy-MgUserMailFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMessage.md index 093355d11d5..2bb387173c0 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserMessage.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Copy-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + DestinationId = "destinationId-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Copy-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserOnenoteNotebook.md b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserOnenoteNotebook.md index 093355d11d5..207cf1c94ce 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserOnenoteNotebook.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserOnenoteNotebook.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Copy-MgUserOnenoteNotebook Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + GroupId = "groupId-value" + RenameAs = "renameAs-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenoteNotebook -UserId $userId -NotebookId $notebookId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Copy-MgUserOnenoteNotebook Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserOnenotePageToSection.md b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserOnenotePageToSection.md index 093355d11d5..ec711fd2458 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserOnenotePageToSection.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserOnenotePageToSection.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Copy-MgUserOnenotePageToSection Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Id = "id-value" + GroupId = "groupId-value" +} +# A UPN can also be used as -UserId. +Copy-MgUserOnenotePageToSection -UserId $userId -OnenotePageId $onenotePageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Copy-MgUserOnenotePageToSection Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserOnenoteSectionToNotebook.md b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserOnenoteSectionToNotebook.md index 093355d11d5..31494b93715 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserOnenoteSectionToNotebook.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserOnenoteSectionToNotebook.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Copy-MgUserOnenoteSectionToNotebook Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$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 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Copy-MgUserOnenoteSectionToNotebook Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserOnenoteSectionToSectionGroup.md b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserOnenoteSectionToSectionGroup.md index 093355d11d5..a6df0ab32dc 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserOnenoteSectionToSectionGroup.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Copy-MgUserOnenoteSectionToSectionGroup.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Copy-MgUserOnenoteSectionToSectionGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$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 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Copy-MgUserOnenoteSectionToSectionGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Disable-MgUserAuthenticationPhoneMethodSmSign.md b/src/Users.Actions/Users.Actions/examples/v1.0/Disable-MgUserAuthenticationPhoneMethodSmSign.md index 093355d11d5..077e34b1887 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Disable-MgUserAuthenticationPhoneMethodSmSign.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Disable-MgUserAuthenticationPhoneMethodSmSign.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Disable-MgUserAuthenticationPhoneMethodSmSign Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Disable-MgUserAuthenticationPhoneMethodSmSign -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Disable-MgUserAuthenticationPhoneMethodSmSign Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Enable-MgUserAuthenticationPhoneMethodSmSign.md b/src/Users.Actions/Users.Actions/examples/v1.0/Enable-MgUserAuthenticationPhoneMethodSmSign.md index 093355d11d5..8748de6a37c 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Enable-MgUserAuthenticationPhoneMethodSmSign.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Enable-MgUserAuthenticationPhoneMethodSmSign.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Enable-MgUserAuthenticationPhoneMethodSmSign Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Enable-MgUserAuthenticationPhoneMethodSmSign -UserId $userId -PhoneAuthenticationMethodId $phoneAuthenticationMethodId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Enable-MgUserAuthenticationPhoneMethodSmSign Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Export-MgUserPersonalData.md b/src/Users.Actions/Users.Actions/examples/v1.0/Export-MgUserPersonalData.md index 093355d11d5..4121a126eb0 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Export-MgUserPersonalData.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Export-MgUserPersonalData.md @@ -1,18 +1,10 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Export-MgUserPersonalData Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + StorageLocation = "storageLocation-value" +} +Export-MgUserPersonalData -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Export-MgUserPersonalData Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Find-MgUserMeetingTime.md b/src/Users.Actions/Users.Actions/examples/v1.0/Find-MgUserMeetingTime.md index 093355d11d5..3cfa9bd1ad0 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Find-MgUserMeetingTime.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Find-MgUserMeetingTime.md @@ -1,18 +1,48 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Find-MgUserMeetingTime Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Attendees = @( + @{ + Type = "required" + EmailAddress = @{ + Name = "Alex Wilbur" + Address = "alexw@contoso.onmicrosoft.com" + } + } + ) + LocationConstraint = @{ + IsRequired = $false + SuggestLocation = $false + Locations = @( + @{ + ResolveAvailability = $false + DisplayName = "Conf room Hood" + } + ) + } + TimeConstraint = @{ + ActivityDomain = "work" + TimeSlots = @( + @{ + Start = @{ + DateTime = "2019-04-16T09:00:00" + TimeZone = "Pacific Standard Time" + } + End = @{ + DateTime = "2019-04-18T17:00:00" + TimeZone = "Pacific Standard Time" + } + } + ) + } + IsOrganizerOptional = "false" + MeetingDuration = "PT1H" + ReturnSuggestionReasons = "true" + MinimumAttendeePercentage = "100" +} +# A UPN can also be used as -UserId. +Find-MgUserMeetingTime -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Find-MgUserMeetingTime Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserDefaultCalendarSchedule.md b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserDefaultCalendarSchedule.md index 093355d11d5..aabc8af8cec 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserDefaultCalendarSchedule.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserDefaultCalendarSchedule.md @@ -1,18 +1,23 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserDefaultCalendarSchedule Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$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 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserDefaultCalendarSchedule Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserMailTip.md b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserMailTip.md index 093355d11d5..f683fd04749 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserMailTip.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserMailTip.md @@ -1,18 +1,15 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMailTip Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + EmailAddresses = @( + "danas@contoso.onmicrosoft.com" + "fannyd@contoso.onmicrosoft.com" + ) + MailTipsOptions = "automaticReplies, mailboxFullStatus" +} +# A UPN can also be used as -UserId. +Get-MgUserMailTip -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMailTip Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserMemberGroup.md b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserMemberGroup.md index 093355d11d5..33ac2fa0597 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserMemberGroup.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserMemberGroup.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMemberGroup Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + SecurityEnabledOnly = $true +} +# A UPN can also be used as -UserId. +Get-MgUserMemberGroup -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMemberGroup Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserOnenoteNotebookFromWebUrl.md b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserOnenoteNotebookFromWebUrl.md index 093355d11d5..f14c810a39b 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserOnenoteNotebookFromWebUrl.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Get-MgUserOnenoteNotebookFromWebUrl.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOnenoteNotebookFromWebUrl Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + WebUrl = "webUrl value" +} +# A UPN can also be used as -UserId. +Get-MgUserOnenoteNotebookFromWebUrl -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOnenoteNotebookFromWebUrl Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgAcceptUserEvent.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgAcceptUserEvent.md index 093355d11d5..c67608fef6e 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgAcceptUserEvent.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgAcceptUserEvent.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgAcceptUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Comment = "comment-value" + SendResponse = $true +} +# A UPN can also be used as -UserId. +Invoke-MgAcceptUserEvent -UserId $userId -EventId $eventId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgAcceptUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgAcceptUserEventTentatively.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgAcceptUserEventTentatively.md index 093355d11d5..45686d6a7d6 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgAcceptUserEventTentatively.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgAcceptUserEventTentatively.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgAcceptUserEventTentatively Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$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 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgAcceptUserEventTentatively Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCreateOrGetUserOnlineMeeting.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCreateOrGetUserOnlineMeeting.md index 093355d11d5..ef0fb716927 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCreateOrGetUserOnlineMeeting.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgCreateOrGetUserOnlineMeeting.md @@ -1,18 +1,26 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgCreateOrGetUserOnlineMeeting Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$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 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgCreateOrGetUserOnlineMeeting Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgDeclineUserEvent.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgDeclineUserEvent.md index 093355d11d5..d3f053a702e 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgDeclineUserEvent.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgDeclineUserEvent.md @@ -1,18 +1,22 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgDeclineUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$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 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgDeclineUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgDismissUserEventReminder.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgDismissUserEventReminder.md index 093355d11d5..96e40d71f32 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgDismissUserEventReminder.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgDismissUserEventReminder.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgDismissUserEventReminder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Invoke-MgDismissUserEventReminder -UserId $userId -EventId $eventId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgDismissUserEventReminder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserEvent.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserEvent.md index 093355d11d5..12c5120e046 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserEvent.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserEvent.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgForwardUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$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 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgForwardUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserMessage.md index 093355d11d5..7a8f5c89c15 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgForwardUserMessage.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgForwardUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$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 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgForwardUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgLicenseUser.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgLicenseUser.md index 093355d11d5..4aa1d470fc0 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgLicenseUser.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgLicenseUser.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgLicenseUser Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +Invoke-MgLicenseUser -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgLicenseUser Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyAllUserMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyAllUserMessage.md index 093355d11d5..919fc786105 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyAllUserMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyAllUserMessage.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReplyAllUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Comment = "comment-value" +} +# A UPN can also be used as -UserId. +Invoke-MgReplyAllUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReplyAllUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyUserMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyUserMessage.md index 093355d11d5..d3f00ee2031 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyUserMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgReplyUserMessage.md @@ -1,18 +1,27 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgReplyUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$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 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgReplyUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgSnoozeUserEventReminder.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgSnoozeUserEventReminder.md index 093355d11d5..c39f7a6bb07 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgSnoozeUserEventReminder.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgSnoozeUserEventReminder.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgSnoozeUserEventReminder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + NewReminderTime = @{ + DateTime = "dateTime-value" + TimeZone = "timeZone-value" + } +} +# A UPN can also be used as -UserId. +Invoke-MgSnoozeUserEventReminder -UserId $userId -EventId $eventId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgSnoozeUserEventReminder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgTranslateUserExchangeId.md b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgTranslateUserExchangeId.md index 093355d11d5..708a092d56c 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgTranslateUserExchangeId.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Invoke-MgTranslateUserExchangeId.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgTranslateUserExchangeId Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + InputIds = @( + "{rest-formatted-id-1}" + "{rest-formatted-id-2}" + ) + SourceIdType = "restId" + TargetIdType = "restImmutableEntryId" +} +# A UPN can also be used as -UserId. +Invoke-MgTranslateUserExchangeId -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgTranslateUserExchangeId Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMailFolder.md b/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMailFolder.md index 093355d11d5..3e00a97a0df 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMailFolder.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMailFolder.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Move-MgUserMailFolder Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + DestinationId = "destinationId-value" +} +# A UPN can also be used as -UserId. +Move-MgUserMailFolder -UserId $userId -MailFolderId $mailFolderId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Move-MgUserMailFolder Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMessage.md index 093355d11d5..e52a126588e 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Move-MgUserMessage.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Move-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + DestinationId = "deleteditems" +} +# A UPN can also be used as -UserId. +Move-MgUserMessage -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Move-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMessageAttachmentUploadSession.md b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMessageAttachmentUploadSession.md index 093355d11d5..473e05ff164 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMessageAttachmentUploadSession.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMessageAttachmentUploadSession.md @@ -1,18 +1,32 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMessageAttachmentUploadSession Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$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 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the New-MgUserMessageAttachmentUploadSession Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the New-MgUserMessageAttachmentUploadSession Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + AttachmentItem = @{ + AttachmentType = "file" + Name = "flower" + Size = 3483322 + } +} +# A UPN can also be used as -UserId. +New-MgUserMessageAttachmentUploadSession -UserId $userId -MessageId $messageId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMessageAttachmentUploadSession Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMessageForward.md b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMessageForward.md index 093355d11d5..0b62b075cba 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMessageForward.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMessageForward.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMessageForward Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +New-MgUserMessageForward -UserId $userId -MessageId $messageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMessageForward Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMessageReply.md b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMessageReply.md index 093355d11d5..6226905bc8a 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMessageReply.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMessageReply.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMessageReply Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +New-MgUserMessageReply -UserId $userId -MessageId $messageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMessageReply Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMessageReplyAll.md b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMessageReplyAll.md index 093355d11d5..016679dacec 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMessageReplyAll.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/New-MgUserMessageReplyAll.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserMessageReplyAll Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +New-MgUserMessageReplyAll -UserId $userId -MessageId $messageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserMessageReplyAll Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Revoke-MgUserSign.md b/src/Users.Actions/Users.Actions/examples/v1.0/Revoke-MgUserSign.md new file mode 100644 index 00000000000..7332e13350f --- /dev/null +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Revoke-MgUserSign.md @@ -0,0 +1,8 @@ +### Example 1: Using the Revoke-MgUserSign Cmdlet +```powershell +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Revoke-MgUserSign -UserId $userId +``` +This example shows how to use the Revoke-MgUserSign Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserMail.md b/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserMail.md index 093355d11d5..26423b8d60c 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserMail.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserMail.md @@ -1,18 +1,98 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Send-MgUserMail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Message = @{ + Subject = "Meet for lunch?" + Body = @{ + ContentType = "Text" + Content = "The new cafeteria is open." + } + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "fannyd@contoso.onmicrosoft.com" + } + } + ) + CcRecipients = @( + @{ + EmailAddress = @{ + Address = "danas@contoso.onmicrosoft.com" + } + } + ) + } + SaveToSentItems = "false" +} +# A UPN can also be used as -UserId. +Send-MgUserMail -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Send-MgUserMail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Send-MgUserMail Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Message = @{ + Subject = "Meet for lunch?" + Body = @{ + ContentType = "Text" + Content = "The new cafeteria is open." + } + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "meganb@contoso.onmicrosoft.com" + } + } + ) + Attachments = @( + @{ + "@odata.type" = "#microsoft.graph.fileAttachment" + Name = "attachment.txt" + ContentType = "text/plain" + ContentBytes = "SGVsbG8gV29ybGQh" + } + ) + } +} +# A UPN can also be used as -UserId. +Send-MgUserMail -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Send-MgUserMail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Send-MgUserMail Cmdlet +```powershell +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Message = @{ + Subject = "9/9/2018: concert" + Body = @{ + ContentType = "HTML" + Content = "The group represents Nevada." + } + ToRecipients = @( + @{ + EmailAddress = @{ + Address = "AlexW@contoso.OnMicrosoft.com" + } + } + ) + InternetMessageHeaders = @( + @{ + Name = "x-custom-header-group-name" + Value = "Nevada" + } + @{ + Name = "x-custom-header-group-id" + Value = "NV001" + } + ) + } +} +# A UPN can also be used as -UserId. +Send-MgUserMail -UserId $userId -BodyParameter $params +``` +This example shows how to use the Send-MgUserMail Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserMessage.md b/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserMessage.md index 093355d11d5..e7f17dc06a8 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserMessage.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserMessage.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Send-MgUserMessage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +# A UPN can also be used as -UserId. +Send-MgUserMessage -UserId $userId -MessageId $messageId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Send-MgUserMessage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserTeamworkActivityNotification.md b/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserTeamworkActivityNotification.md index 093355d11d5..ff942758b2a 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserTeamworkActivityNotification.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Send-MgUserTeamworkActivityNotification.md @@ -1,18 +1,71 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Send-MgUserTeamworkActivityNotification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$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" + } + TemplateParameters = @( + @{ + Name = "deploymentId" + Value = "6788662" + } + ) +} +Send-MgUserTeamworkActivityNotification -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Send-MgUserTeamworkActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Send-MgUserTeamworkActivityNotification Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$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" + } + TemplateParameters = @( + @{ + Name = "deploymentId" + Value = "6788662" + } + ) +} +Send-MgUserTeamworkActivityNotification -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - +This example shows how to use the Send-MgUserTeamworkActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 3: Using the Send-MgUserTeamworkActivityNotification Cmdlet +```powershell +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + Topic = @{ + Source = "entityUrl" + Value = "https://graph.microsoft.com/v1.0/users/{userId}/teamwork/installedApps/{installationId}" + } + ActivityType = "taskCreated" + PreviewText = @{ + Content = "New Task Created" + } + TemplateParameters = @( + @{ + Name = "taskId" + Value = "Task 12322" + } + ) +} +Send-MgUserTeamworkActivityNotification -UserId $userId -BodyParameter $params +``` +This example shows how to use the Send-MgUserTeamworkActivityNotification Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Set-MgUserPresence.md b/src/Users.Actions/Users.Actions/examples/v1.0/Set-MgUserPresence.md index 093355d11d5..68b1a007611 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Set-MgUserPresence.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Set-MgUserPresence.md @@ -1,18 +1,13 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Set-MgUserPresence Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + SessionId = "22553876-f5ab-4529-bffb-cfe50aa89f87" + Availability = "Available" + Activity = "Available" + ExpirationDuration = "PT1H" +} +Set-MgUserPresence -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Set-MgUserPresence Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Stop-MgUserEvent.md b/src/Users.Actions/Users.Actions/examples/v1.0/Stop-MgUserEvent.md index 093355d11d5..5a299284c4d 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Stop-MgUserEvent.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Stop-MgUserEvent.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Stop-MgUserEvent Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$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 ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Stop-MgUserEvent Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Actions/Users.Actions/examples/v1.0/Update-MgUserPassword.md b/src/Users.Actions/Users.Actions/examples/v1.0/Update-MgUserPassword.md index 093355d11d5..8e06e075417 100644 --- a/src/Users.Actions/Users.Actions/examples/v1.0/Update-MgUserPassword.md +++ b/src/Users.Actions/Users.Actions/examples/v1.0/Update-MgUserPassword.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserPassword Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Actions +$params = @{ + CurrentPassword = "xWwvJ]6NMw+bWH-d" + NewPassword = "0eM85N54wFxWwvJ]" +} +# A UPN can also be used as -UserId. +Update-MgUserPassword -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserPassword Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Functions/Users.Functions/examples/v1.0/Get-MgUserContactFolderDelta.md b/src/Users.Functions/Users.Functions/examples/v1.0/Get-MgUserContactFolderDelta.md index 093355d11d5..0a72151ee17 100644 --- a/src/Users.Functions/Users.Functions/examples/v1.0/Get-MgUserContactFolderDelta.md +++ b/src/Users.Functions/Users.Functions/examples/v1.0/Get-MgUserContactFolderDelta.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserContactFolderDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Functions +# A UPN can also be used as -UserId. +Get-MgUserContactFolderDelta -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserContactFolderDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Functions/Users.Functions/examples/v1.0/Get-MgUserDelta.md b/src/Users.Functions/Users.Functions/examples/v1.0/Get-MgUserDelta.md index 093355d11d5..b10fcfcdfbd 100644 --- a/src/Users.Functions/Users.Functions/examples/v1.0/Get-MgUserDelta.md +++ b/src/Users.Functions/Users.Functions/examples/v1.0/Get-MgUserDelta.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Functions +Get-MgUserDelta ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Functions/Users.Functions/examples/v1.0/Get-MgUserMailFolderMessageDelta.md b/src/Users.Functions/Users.Functions/examples/v1.0/Get-MgUserMailFolderMessageDelta.md index 093355d11d5..0b012ef85d9 100644 --- a/src/Users.Functions/Users.Functions/examples/v1.0/Get-MgUserMailFolderMessageDelta.md +++ b/src/Users.Functions/Users.Functions/examples/v1.0/Get-MgUserMailFolderMessageDelta.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMailFolderMessageDelta Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Functions +# A UPN can also be used as -UserId. +Get-MgUserMailFolderMessageDelta -UserId $userId -MailFolderId $mailFolderId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMailFolderMessageDelta Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Functions/Users.Functions/examples/v1.0/Invoke-MgRecentUserActivity.md b/src/Users.Functions/Users.Functions/examples/v1.0/Invoke-MgRecentUserActivity.md index 093355d11d5..0ef4e1d3126 100644 --- a/src/Users.Functions/Users.Functions/examples/v1.0/Invoke-MgRecentUserActivity.md +++ b/src/Users.Functions/Users.Functions/examples/v1.0/Invoke-MgRecentUserActivity.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgRecentUserActivity Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Functions +# A UPN can also be used as -UserId. +Invoke-MgRecentUserActivity -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgRecentUserActivity Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Functions/Users.Functions/examples/v1.0/Invoke-MgSupportedUserOutlookLanguage.md b/src/Users.Functions/Users.Functions/examples/v1.0/Invoke-MgSupportedUserOutlookLanguage.md index 093355d11d5..78a637ae5b0 100644 --- a/src/Users.Functions/Users.Functions/examples/v1.0/Invoke-MgSupportedUserOutlookLanguage.md +++ b/src/Users.Functions/Users.Functions/examples/v1.0/Invoke-MgSupportedUserOutlookLanguage.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgSupportedUserOutlookLanguage Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Functions +# A UPN can also be used as -UserId. +Invoke-MgSupportedUserOutlookLanguage -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgSupportedUserOutlookLanguage Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users.Functions/Users.Functions/examples/v1.0/Invoke-MgTimeUserOutlook.md b/src/Users.Functions/Users.Functions/examples/v1.0/Invoke-MgTimeUserOutlook.md index 093355d11d5..b77a1749486 100644 --- a/src/Users.Functions/Users.Functions/examples/v1.0/Invoke-MgTimeUserOutlook.md +++ b/src/Users.Functions/Users.Functions/examples/v1.0/Invoke-MgTimeUserOutlook.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Invoke-MgTimeUserOutlook Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users.Functions +# A UPN can also be used as -UserId. +Invoke-MgTimeUserOutlook -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Invoke-MgTimeUserOutlook Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Get-MgUserMemberOf.md b/src/Users/Users/examples/v1.0/Get-MgUserMemberOf.md index 093355d11d5..3eeacbbd72b 100644 --- a/src/Users/Users/examples/v1.0/Get-MgUserMemberOf.md +++ b/src/Users/Users/examples/v1.0/Get-MgUserMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +Get-MgUserMemberOf -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Get-MgUserOutlookMasterCategory.md b/src/Users/Users/examples/v1.0/Get-MgUserOutlookMasterCategory.md index 093355d11d5..1e7da3ce532 100644 --- a/src/Users/Users/examples/v1.0/Get-MgUserOutlookMasterCategory.md +++ b/src/Users/Users/examples/v1.0/Get-MgUserOutlookMasterCategory.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOutlookMasterCategory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserOutlookMasterCategory -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserOutlookMasterCategory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserOutlookMasterCategory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOutlookMasterCategory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Get-MgUserOwnedDevice.md b/src/Users/Users/examples/v1.0/Get-MgUserOwnedDevice.md index 093355d11d5..e4c8fdea8bb 100644 --- a/src/Users/Users/examples/v1.0/Get-MgUserOwnedDevice.md +++ b/src/Users/Users/examples/v1.0/Get-MgUserOwnedDevice.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOwnedDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserOwnedDevice -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOwnedDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Get-MgUserOwnedObject.md b/src/Users/Users/examples/v1.0/Get-MgUserOwnedObject.md index 093355d11d5..b59c6d655ba 100644 --- a/src/Users/Users/examples/v1.0/Get-MgUserOwnedObject.md +++ b/src/Users/Users/examples/v1.0/Get-MgUserOwnedObject.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserOwnedObject Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserOwnedObject -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserOwnedObject Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Get-MgUserRegisteredDevice.md b/src/Users/Users/examples/v1.0/Get-MgUserRegisteredDevice.md index 093355d11d5..d86d125f429 100644 --- a/src/Users/Users/examples/v1.0/Get-MgUserRegisteredDevice.md +++ b/src/Users/Users/examples/v1.0/Get-MgUserRegisteredDevice.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserRegisteredDevice Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserRegisteredDevice -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserRegisteredDevice Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Get-MgUserSettingShiftPreference.md b/src/Users/Users/examples/v1.0/Get-MgUserSettingShiftPreference.md index 093355d11d5..ba6b419dae4 100644 --- a/src/Users/Users/examples/v1.0/Get-MgUserSettingShiftPreference.md +++ b/src/Users/Users/examples/v1.0/Get-MgUserSettingShiftPreference.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserSettingShiftPreference Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +Get-MgUserSettingShiftPreference -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserSettingShiftPreference Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Get-MgUserTodoList.md b/src/Users/Users/examples/v1.0/Get-MgUserTodoList.md index 093355d11d5..07c42e0a05b 100644 --- a/src/Users/Users/examples/v1.0/Get-MgUserTodoList.md +++ b/src/Users/Users/examples/v1.0/Get-MgUserTodoList.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTodoList Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoList -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserTodoList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserTodoList Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTodoList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Get-MgUserTodoListTask.md b/src/Users/Users/examples/v1.0/Get-MgUserTodoListTask.md index 093355d11d5..2ccbc553c27 100644 --- a/src/Users/Users/examples/v1.0/Get-MgUserTodoListTask.md +++ b/src/Users/Users/examples/v1.0/Get-MgUserTodoListTask.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTodoListTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserTodoListTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserTodoListTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTodoListTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Get-MgUserTodoListTaskChecklistItem.md b/src/Users/Users/examples/v1.0/Get-MgUserTodoListTaskChecklistItem.md index 093355d11d5..245e9dab25b 100644 --- a/src/Users/Users/examples/v1.0/Get-MgUserTodoListTaskChecklistItem.md +++ b/src/Users/Users/examples/v1.0/Get-MgUserTodoListTaskChecklistItem.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTodoListTaskChecklistItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserTodoListTaskChecklistItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserTodoListTaskChecklistItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTodoListTaskChecklistItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Get-MgUserTodoListTaskLinkedResource.md b/src/Users/Users/examples/v1.0/Get-MgUserTodoListTaskLinkedResource.md index 093355d11d5..b96401fbcbf 100644 --- a/src/Users/Users/examples/v1.0/Get-MgUserTodoListTaskLinkedResource.md +++ b/src/Users/Users/examples/v1.0/Get-MgUserTodoListTaskLinkedResource.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTodoListTaskLinkedResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} +This example shows how to use the Get-MgUserTodoListTaskLinkedResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). +### Example 2: Using the Get-MgUserTodoListTaskLinkedResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Get-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId ``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTodoListTaskLinkedResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Get-MgUserTransitiveMemberOf.md b/src/Users/Users/examples/v1.0/Get-MgUserTransitiveMemberOf.md index 093355d11d5..2eb54d10f6a 100644 --- a/src/Users/Users/examples/v1.0/Get-MgUserTransitiveMemberOf.md +++ b/src/Users/Users/examples/v1.0/Get-MgUserTransitiveMemberOf.md @@ -1,18 +1,7 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Get-MgUserTransitiveMemberOf Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +Get-MgUserTransitiveMemberOf -UserId $userId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Get-MgUserTransitiveMemberOf Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/New-MgUserOutlookMasterCategory.md b/src/Users/Users/examples/v1.0/New-MgUserOutlookMasterCategory.md index 093355d11d5..29b84411e73 100644 --- a/src/Users/Users/examples/v1.0/New-MgUserOutlookMasterCategory.md +++ b/src/Users/Users/examples/v1.0/New-MgUserOutlookMasterCategory.md @@ -1,18 +1,12 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserOutlookMasterCategory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + DisplayName = "Project expenses" + Color = "preset9" +} +# A UPN can also be used as -UserId. +New-MgUserOutlookMasterCategory -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserOutlookMasterCategory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/New-MgUserTodoList.md b/src/Users/Users/examples/v1.0/New-MgUserTodoList.md index 093355d11d5..968f5aca2ad 100644 --- a/src/Users/Users/examples/v1.0/New-MgUserTodoList.md +++ b/src/Users/Users/examples/v1.0/New-MgUserTodoList.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserTodoList Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + DisplayName = "Travel items" +} +# A UPN can also be used as -UserId. +New-MgUserTodoList -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserTodoList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/New-MgUserTodoListTask.md b/src/Users/Users/examples/v1.0/New-MgUserTodoListTask.md index 093355d11d5..2f4c7f25573 100644 --- a/src/Users/Users/examples/v1.0/New-MgUserTodoListTask.md +++ b/src/Users/Users/examples/v1.0/New-MgUserTodoListTask.md @@ -1,18 +1,21 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserTodoListTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + Title = "A new task" + Categories = @( + "Important" + ) + LinkedResources = @( + @{ + WebUrl = "http://microsoft.com" + ApplicationName = "Microsoft" + DisplayName = "Microsoft" + } + ) +} +# A UPN can also be used as -UserId. +New-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserTodoListTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/New-MgUserTodoListTaskChecklistItem.md b/src/Users/Users/examples/v1.0/New-MgUserTodoListTaskChecklistItem.md index 093355d11d5..1fec86600c5 100644 --- a/src/Users/Users/examples/v1.0/New-MgUserTodoListTaskChecklistItem.md +++ b/src/Users/Users/examples/v1.0/New-MgUserTodoListTaskChecklistItem.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserTodoListTaskChecklistItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + DisplayName = "Final sign-off from the team" +} +# A UPN can also be used as -UserId. +New-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserTodoListTaskChecklistItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/New-MgUserTodoListTaskLinkedResource.md b/src/Users/Users/examples/v1.0/New-MgUserTodoListTaskLinkedResource.md index 093355d11d5..aa024556e9d 100644 --- a/src/Users/Users/examples/v1.0/New-MgUserTodoListTaskLinkedResource.md +++ b/src/Users/Users/examples/v1.0/New-MgUserTodoListTaskLinkedResource.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the New-MgUserTodoListTaskLinkedResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + WebUrl = "https://microsoft.com" + ApplicationName = "Microsoft" + DisplayName = "Microsoft" + ExternalId = "dk9cddce2-dce2-f9dd-e2dc-cdf9e2dccdf9" +} +# A UPN can also be used as -UserId. +New-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the New-MgUserTodoListTaskLinkedResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Remove-MgUserOutlookMasterCategory.md b/src/Users/Users/examples/v1.0/Remove-MgUserOutlookMasterCategory.md index 093355d11d5..be11c037c74 100644 --- a/src/Users/Users/examples/v1.0/Remove-MgUserOutlookMasterCategory.md +++ b/src/Users/Users/examples/v1.0/Remove-MgUserOutlookMasterCategory.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserOutlookMasterCategory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Remove-MgUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserOutlookMasterCategory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Remove-MgUserTodoList.md b/src/Users/Users/examples/v1.0/Remove-MgUserTodoList.md index 093355d11d5..409d70e637f 100644 --- a/src/Users/Users/examples/v1.0/Remove-MgUserTodoList.md +++ b/src/Users/Users/examples/v1.0/Remove-MgUserTodoList.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserTodoList Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Remove-MgUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserTodoList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Remove-MgUserTodoListTask.md b/src/Users/Users/examples/v1.0/Remove-MgUserTodoListTask.md index 093355d11d5..d8856b7fac6 100644 --- a/src/Users/Users/examples/v1.0/Remove-MgUserTodoListTask.md +++ b/src/Users/Users/examples/v1.0/Remove-MgUserTodoListTask.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserTodoListTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Remove-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserTodoListTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Remove-MgUserTodoListTaskChecklistItem.md b/src/Users/Users/examples/v1.0/Remove-MgUserTodoListTaskChecklistItem.md index 093355d11d5..9cc123bcd0c 100644 --- a/src/Users/Users/examples/v1.0/Remove-MgUserTodoListTaskChecklistItem.md +++ b/src/Users/Users/examples/v1.0/Remove-MgUserTodoListTaskChecklistItem.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserTodoListTaskChecklistItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Remove-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserTodoListTaskChecklistItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Remove-MgUserTodoListTaskLinkedResource.md b/src/Users/Users/examples/v1.0/Remove-MgUserTodoListTaskLinkedResource.md index 093355d11d5..b2f28e07467 100644 --- a/src/Users/Users/examples/v1.0/Remove-MgUserTodoListTaskLinkedResource.md +++ b/src/Users/Users/examples/v1.0/Remove-MgUserTodoListTaskLinkedResource.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Remove-MgUserTodoListTaskLinkedResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +# A UPN can also be used as -UserId. +Remove-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Remove-MgUserTodoListTaskLinkedResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Update-MgUserOutlookMasterCategory.md b/src/Users/Users/examples/v1.0/Update-MgUserOutlookMasterCategory.md index 093355d11d5..8b9ee3dc9aa 100644 --- a/src/Users/Users/examples/v1.0/Update-MgUserOutlookMasterCategory.md +++ b/src/Users/Users/examples/v1.0/Update-MgUserOutlookMasterCategory.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserOutlookMasterCategory Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + Color = "preset15" +} +# A UPN can also be used as -UserId. +Update-MgUserOutlookMasterCategory -UserId $userId -OutlookCategoryId $outlookCategoryId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserOutlookMasterCategory Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Update-MgUserSettingShiftPreference.md b/src/Users/Users/examples/v1.0/Update-MgUserSettingShiftPreference.md index 093355d11d5..b1cb0acf99b 100644 --- a/src/Users/Users/examples/v1.0/Update-MgUserSettingShiftPreference.md +++ b/src/Users/Users/examples/v1.0/Update-MgUserSettingShiftPreference.md @@ -1,18 +1,31 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserSettingShiftPreference Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + Id = "SHPR_eeab4fb1-20e5-48ca-ad9b-98119d94bee7" + "@odata.etag" = "1a371e53-f0a6-4327-a1ee-e3c56e4b38aa" + Availability = @( + @{ + Recurrence = @{ + Pattern = @{ + Type = "Weekly" + DaysOfWeek = @( + "Monday" + "Wednesday" + "Friday" + ) + Interval = 1 + } + Range = @{ + Type = "noEnd" + } + } + TimeZone = "Pacific Standard Time" + TimeSlots = $null + } + ) +} +Update-MgUserSettingShiftPreference -UserId $userId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserSettingShiftPreference Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Update-MgUserTodoList.md b/src/Users/Users/examples/v1.0/Update-MgUserTodoList.md index 093355d11d5..ea0f86bd3da 100644 --- a/src/Users/Users/examples/v1.0/Update-MgUserTodoList.md +++ b/src/Users/Users/examples/v1.0/Update-MgUserTodoList.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserTodoList Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + DisplayName = "Vacation Plan" +} +# A UPN can also be used as -UserId. +Update-MgUserTodoList -UserId $userId -TodoTaskListId $todoTaskListId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserTodoList Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Update-MgUserTodoListTask.md b/src/Users/Users/examples/v1.0/Update-MgUserTodoListTask.md index 093355d11d5..725862a4aea 100644 --- a/src/Users/Users/examples/v1.0/Update-MgUserTodoListTask.md +++ b/src/Users/Users/examples/v1.0/Update-MgUserTodoListTask.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserTodoListTask Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + DueDateTime = @{ + DateTime = "2020-07-25T16:00:00" + TimeZone = "Eastern Standard Time" + } +} +# A UPN can also be used as -UserId. +Update-MgUserTodoListTask -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserTodoListTask Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Update-MgUserTodoListTaskChecklistItem.md b/src/Users/Users/examples/v1.0/Update-MgUserTodoListTaskChecklistItem.md index 093355d11d5..32fb98c75a3 100644 --- a/src/Users/Users/examples/v1.0/Update-MgUserTodoListTaskChecklistItem.md +++ b/src/Users/Users/examples/v1.0/Update-MgUserTodoListTaskChecklistItem.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserTodoListTaskChecklistItem Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + DisplayName = "buy cake" +} +# A UPN can also be used as -UserId. +Update-MgUserTodoListTaskChecklistItem -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -ChecklistItemId $checklistItemId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserTodoListTaskChecklistItem Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). diff --git a/src/Users/Users/examples/v1.0/Update-MgUserTodoListTaskLinkedResource.md b/src/Users/Users/examples/v1.0/Update-MgUserTodoListTaskLinkedResource.md index 093355d11d5..c98c7a11e0a 100644 --- a/src/Users/Users/examples/v1.0/Update-MgUserTodoListTaskLinkedResource.md +++ b/src/Users/Users/examples/v1.0/Update-MgUserTodoListTaskLinkedResource.md @@ -1,18 +1,14 @@ -### Example 1: {{ Add title here }} +### Example 1: Using the Update-MgUserTodoListTaskLinkedResource Cmdlet ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Import-Module Microsoft.Graph.Users +$params = @{ + "@odata.type" = "#microsoft.graph.linkedResource" + WebUrl = "http://microsoft.com" + ApplicationName = "Microsoft" + DisplayName = "Microsoft" +} +# A UPN can also be used as -UserId. +Update-MgUserTodoListTaskLinkedResource -UserId $userId -TodoTaskListId $todoTaskListId -TodoTaskId $todoTaskId -LinkedResourceId $linkedResourceId -BodyParameter $params ``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - +This example shows how to use the Update-MgUserTodoListTaskLinkedResource Cmdlet. +To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).