Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example

```powershell

Import-Module Microsoft.Graph.Beta.Applications

Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId

```
This example shows how to use the Get-MgBetaServicePrincipalSynchronizationTemplate Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
### Example 1: Using the Get-MgServicePrincipalCreatedObject Cmdlet
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Applications

Get-MgServicePrincipalCreatedObject -ServicePrincipalId $servicePrincipalId

```
This example shows how to use the Get-MgServicePrincipalCreatedObject Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
### Example 1: Using the Get-MgServicePrincipalOwnedObject Cmdlet
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Applications

Get-MgServicePrincipalOwnedObject -ServicePrincipalId $servicePrincipalId

```
This example shows how to use the Get-MgServicePrincipalOwnedObject Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
### Example

```powershell

Import-Module Microsoft.Graph.Applications

Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId

```
This example shows how to use the Get-MgServicePrincipalSynchronizationTemplate Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.ChangeNotifications

Get-MgBetaSubscriptionVapidPublicKey

```
This example shows how to use the Get-MgBetaSubscriptionVapidPublicKey Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
### Example 1: Get a list of the reading assignment submissions from the last 24 hours

```powershell

Import-Module Microsoft.Graph.Education

Get-MgEducationReportReadingAssignmentSubmission

```
This example will get a list of the reading assignment submissions from the last 24 hours

### Example 2: Get a list of the reading assignment submissions for a specific date using $filter

```powershell

Import-Module Microsoft.Graph.Education

Get-MgEducationReportReadingAssignmentSubmission -Filter "submissionDateTime gt 2025-06-10T00:00:00.000Z and submissionDateTime lt 2025-06-11T00:00:00Z"

```
This example will get a list of the reading assignment submissions for a specific date using $filter

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
### Example 1: Get a list of the Reflect check-in responses from the last 24 hours

```powershell

Import-Module Microsoft.Graph.Education

Get-MgEducationReportReflectCheck

```
This example will get a list of the reflect check-in responses from the last 24 hours

### Example 2: Get a list of the Reflect check-in responses for a specific date using $filter

```powershell

Import-Module Microsoft.Graph.Education

Get-MgEducationReportReflectCheck -Filter "submitDateTime gt 2025-06-11T00:00:00.000Z and submitDateTime lt 2025-06-12T00:00:00Z"

```
This example will get a list of the reflect check-in responses for a specific date using $filter

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Import-Module Microsoft.Graph.Security

Get-MgSecurityAttackSimulationEndUserNotification -Filter "source eq 'global'"
Get-MgSecurityAttackSimulationEndUserNotification

```
This example shows how to use the Get-MgSecurityAttackSimulationEndUserNotification Cmdlet.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Security

Get-MgSecurityAttackSimulationTrainingLanguageDetail -TrainingId $trainingId -TrainingLanguageDetailId $trainingLanguageDetailId -Filter "locale eq 'en'"

```
This example shows how to use the Get-MgSecurityAttackSimulationTrainingLanguageDetail Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Security

Get-MgSecurityDataSecurityAndGovernanceSensitivityLabel -Filter "applicableTo has 'file' and id in ('4e4234dd-377b-42a3-935b-0e42f138fa23','b7a21bba-8197-491f-a5d6-0d0f955397ca')"

```
This example shows how to use the Get-MgSecurityDataSecurityAndGovernanceSensitivityLabel Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Security

Get-MgSecurityDataSecurityAndGovernanceSensitivityLabelRight -SensitivityLabelId $sensitivityLabelId -Owneremail "bob@contoso.com"

```
This example shows how to use the Get-MgSecurityDataSecurityAndGovernanceSensitivityLabelRight Cmdlet.

Loading