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.

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

```powershell

Import-Module Microsoft.Graph.Beta.Identity.Governance

Get-MgBetaEntitlementManagementExternalOriginResourceConnector

```
This example shows how to use the Get-MgBetaEntitlementManagementExternalOriginResourceConnector 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.Identity.Governance

Get-MgBetaIdentityGovernanceCatalogAccessPackageResourceUploadSession -AccessPackageCatalogId $accessPackageCatalogId -AccessPackageResourceId $accessPackageResourceId

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

```powershell

Import-Module Microsoft.Graph.Beta.Identity.Governance

$params = @{
"@odata.type" = "#microsoft.graph.externalOriginResourceConnector"
displayName = "SAP Access Control"
description = "SAP Access Control connector"
connectorType = "sapAc"
connectionInfo = @{
"@odata.type" = "microsoft.graph.externalTokenBasedSapIagConnectionInfo"
url = "dev.test"
accessTokenUrl = "9e90019f-6256-41fa-a225-5ef9cc1d9bf8"
clientId = "e9ad8b1d-959c-4e86-8ba2-2cbf4d14bc29"
keyVaultName = "Keyvault"
secretName = "Test"
subscriptionId = "5ee98b73-d9df-43a7-8a92-36855054bdee"
resourceGroup = "SAPIAG Group"
}
}

New-MgBetaEntitlementManagementExternalOriginResourceConnector -BodyParameter $params

```
This example shows how to use the New-MgBetaEntitlementManagementExternalOriginResourceConnector Cmdlet.

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

```powershell

Import-Module Microsoft.Graph.Beta.Identity.Governance

$params = @{
"@odata.type" = "#microsoft.graph.customDataProvidedResourceAccessReviewUploadSession"
data = @{
"@odata.type" = "#microsoft.graph.customDataProvidedResourcePayloads.accessReviewContextData"
reviewDefinitionId = "9e4b1c6f-2a3d-4f8e-9b7a-5c1e2d3f4a6b"
reviewInstanceId = "15eeb4df-8a4d-4f8e-9b7a-6b3e1c7f5a9d"
}
}

New-MgBetaIdentityGovernanceCatalogAccessPackageResourceUploadSession -AccessPackageCatalogId $accessPackageCatalogId -AccessPackageResourceId $accessPackageResourceId -BodyParameter $params

```
This example shows how to use the New-MgBetaIdentityGovernanceCatalogAccessPackageResourceUploadSession 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.Identity.Governance

Remove-MgBetaEntitlementManagementExternalOriginResourceConnector -ExternalOriginResourceConnectorId $externalOriginResourceConnectorId

```
This example shows how to use the Remove-MgBetaEntitlementManagementExternalOriginResourceConnector 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.Identity.Governance

Remove-MgBetaIdentityGovernanceCatalogAccessPackageResourceUploadSession -AccessPackageCatalogId $accessPackageCatalogId -AccessPackageResourceId $accessPackageResourceId -CustomDataProvidedResourceUploadSessionId $customDataProvidedResourceUploadSessionId

```
This example shows how to use the Remove-MgBetaIdentityGovernanceCatalogAccessPackageResourceUploadSession Cmdlet.

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

```powershell

Import-Module Microsoft.Graph.Beta.Identity.Governance

$params = @{
id = "d743fe46-80f8-41b1-a2ee-7796e024edb9"
connectorType = "sapIag"
displayName = "SAP IAG 5.0"
description = "SAP IAG 5.0.0.0.0"
connectionInfo = @{
"@odata.type" = "Microsoft.IGAELM.EC.FrontEnd.ExternalModel.externalTokenBasedSapIagConnectionInfo"
url = "https://IAGINTGORG-iag-intg-space-java-rest-arqapi.cfps.sap.hana.ondemand.com"
keyVaultName = "sap-key-vault"
subscriptionId = "caa5v042-9c76-44de-9e84-f3e3071a7b4e"
resourceGroup = "test-rg"
accessTokenUrl = "https://entra-intg-l4nds6yn.authentication.sap.hana.ondemand.com/oauth/token"
clientId = "sb-8d896b-72b5-46ce-9273-471874a09137!b133623|iagapi-iag-intg-space!b11378"
secretName = "clienecret"
}
}

Update-MgBetaEntitlementManagementExternalOriginResourceConnector -ExternalOriginResourceConnectorId $externalOriginResourceConnectorId -BodyParameter $params

```
This example shows how to use the Update-MgBetaEntitlementManagementExternalOriginResourceConnector Cmdlet.

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

```powershell

Import-Module Microsoft.Graph.Beta.Identity.Governance

$params = @{
isUploadDone = $true
}

Update-MgBetaIdentityGovernanceCatalogAccessPackageResourceUploadSession -AccessPackageCatalogId $accessPackageCatalogId -AccessPackageResourceId $accessPackageResourceId -CustomDataProvidedResourceUploadSessionId $customDataProvidedResourceUploadSessionId -BodyParameter $params

```
This example shows how to use the Update-MgBetaIdentityGovernanceCatalogAccessPackageResourceUploadSession 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.Identity.SignIns

Remove-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -M365CapabilityBaseName $m365CapabilityBaseName

```
This example shows how to use the Remove-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability Cmdlet.

Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
### Example 1: Update only the access setting

```powershell

Import-Module Microsoft.Graph.Beta.Identity.SignIns

$params = @{
inboundAccess = @{
isAllowed = $false
}
}

Update-MgBetaPolicyCrossTenantAccessPolicyDefaultM365Capability -M365CapabilityBaseName $m365CapabilityBaseName -BodyParameter $params

```
This example will update only the access setting

### Example 2: Update the access setting and resource scopes

```powershell

Import-Module Microsoft.Graph.Beta.Identity.SignIns

$params = @{
inboundAccess = @{
isAllowed = $true
resourceScopes = @{
included = @(
@{
resourceId = "ad4fc698-74dc-4f62-9e71-ba9b591e8e74"
resourceType = "group"
}
@{
resourceId = "070061d7-a98e-43d3-b708-0758d3738ac7"
resourceType = "group"
}
)
excluded = @(
@{
resourceId = "ad4fc698-74dc-4f62-9e71-ba9b591e8e00"
resourceType = "group"
}
)
}
}
}

Update-MgBetaPolicyCrossTenantAccessPolicyDefaultM365Capability -M365CapabilityBaseName $m365CapabilityBaseName -BodyParameter $params

```
This example will update the access setting and resource scopes

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

```powershell

Import-Module Microsoft.Graph.Beta.Identity.SignIns

$params = @{
inboundAccess = @{
isAllowed = $false
resourceScopes = @{
included = @(
@{
resourceId = "ad4fc698-74dc-4f62-9e71-ba9b591e8e74"
resourceType = "group"
}
@{
resourceId = "070061d7-a98e-43d3-b708-0758d3738ac7"
resourceType = "group"
}
)
excluded = @(
)
}
}
}

Update-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -M365CapabilityBaseName $m365CapabilityBaseName -BodyParameter $params

```
This example shows how to use the Update-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability Cmdlet.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
22 changes: 22 additions & 0 deletions src/Security/beta/examples/Get-MgBetaSecurityIdentityAccount.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
### Example 1: Get details of an identity account

```powershell

Import-Module Microsoft.Graph.Beta.Security

Get-MgBetaSecurityIdentityAccount -IdentityAccountsId $identityAccountsId

```
This example will get details of an identity account

### Example 2: Get the account details of an identity account

```powershell

Import-Module Microsoft.Graph.Beta.Security

Get-MgBetaSecurityIdentityAccount -IdentityAccountsId $identityAccountsId -Property "accounts"

```
This example will get the account details of an identity account

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

Import-Module Microsoft.Graph.Beta.Security

Get-MgBetaSecurityRuleDetectionRule -Top 3
Get-MgBetaSecurityRuleDetectionRule

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

```powershell

Import-Module Microsoft.Graph.Beta.Security

$params = @{
accountId = "256db173-930a-4991-9061-0d51a9a93ba5"
action = "disable"
identityProvider = "activeDirectory"
}

Invoke-MgBetaInvokeSecurityIdentityAccountAction -IdentityAccountsId $identityAccountsId -BodyParameter $params

```
This example shows how to use the Invoke-MgBetaInvokeSecurityIdentityAccountAction Cmdlet.

Empty file.
Empty file.
Loading
Loading