From 1f56bb75bfd8eae63f2dd9cf7ca94294c5d69ef5 Mon Sep 17 00:00:00 2001 From: Eunice Waweru <73849846+msewaweru@users.noreply.github.com> Date: Mon, 12 Sep 2022 17:42:33 +0300 Subject: [PATCH 1/3] Added examples to PermissionGrantPolicy cmdlets --- .../Get-MgPolicyPermissionGrantPolicy.md | 46 +++++++++++++++---- ...et-MgPolicyPermissionGrantPolicyExclude.md | 40 ++++++++++------ ...et-MgPolicyPermissionGrantPolicyInclude.md | 28 +++++------ .../New-MgPolicyPermissionGrantPolicy.md | 24 +++++----- ...ew-MgPolicyPermissionGrantPolicyExclude.md | 27 +++++------ ...ew-MgPolicyPermissionGrantPolicyInclude.md | 27 +++++------ ...ve-MgPolicyPermissionGrantPolicyExclude.md | 18 ++------ ...ve-MgPolicyPermissionGrantPolicyInclude.md | 18 ++------ .../Update-MgPolicyPermissionGrantPolicy.md | 18 ++------ ...te-MgPolicyPermissionGrantPolicyExclude.md | 18 ++------ ...te-MgPolicyPermissionGrantPolicyInclude.md | 18 ++------ .../v1.0/Get-MgPolicyPermissionGrantPolicy.md | 46 +++++++++++++++---- ...et-MgPolicyPermissionGrantPolicyExclude.md | 40 ++++++++++------ ...et-MgPolicyPermissionGrantPolicyInclude.md | 28 +++++------ .../v1.0/New-MgPolicyPermissionGrantPolicy.md | 24 +++++----- ...ew-MgPolicyPermissionGrantPolicyExclude.md | 27 +++++------ ...ew-MgPolicyPermissionGrantPolicyInclude.md | 27 +++++------ ...ve-MgPolicyPermissionGrantPolicyExclude.md | 18 ++------ .../Update-MgPolicyPermissionGrantPolicy.md | 18 ++------ ...te-MgPolicyPermissionGrantPolicyExclude.md | 18 ++------ ...te-MgPolicyPermissionGrantPolicyInclude.md | 18 ++------ 21 files changed, 272 insertions(+), 274 deletions(-) diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicy.md index 093355d11d5..c7d78701138 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicy.md @@ -1,18 +1,46 @@ -### Example 1: {{ Add title here }} +### Example 1: List all permission grant policies + ```powershell -PS C:\> {{ Add code here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant" +Get-MgPolicyPermissionGrantPolicy | fl + +DeletedDateTime : +Description : Includes all application permissions (app roles), for all APIs, for any client application. +DisplayName : All application permissions, for any client app +Excludes : {} +Id : microsoft-all-application-permissions +Includes : {bddda1ec-0174-44d5-84e2-47fb0ac01595} +AdditionalProperties : {[includeAllPreApprovedApplications, False], [resourceScopeType, tenant], [includes@odata.context, + https://graph.microsoft.com/beta/$metadata#policies/permissionGrantPolicies('microsoft-all-application-permissions')/includes], [excludes@odata.context, + https://graph.microsoft.com/beta/$metadata#policies/permissionGrantPolicies('microsoft-all-application-permissions')/excludes]} -{{ Add output here }} +DeletedDateTime : +Description : Includes all chat resoruce-specific application permissions, for all APIs, for any client application. +DisplayName : All chat resource-specific application permissions, for any client app +Excludes : {} +Id : microsoft-all-application-permissions-for-chat +Includes : {013e8de3-5e79-4b0f-a440-8f7794086460} +AdditionalProperties : {[includeAllPreApprovedApplications, False], [resourceScopeType, chat], [includes@odata.context, + https://graph.microsoft.com/beta/$metadata#policies/permissionGrantPolicies('microsoft-all-application-permissions-for-chat')/includes], [excludes@odata.context, + https://graph.microsoft.com/beta/$metadata#policies/permissionGrantPolicies('microsoft-all-application-permissions-for-chat')/excludes]} ``` -{{ Add description here }} +This command retrieves a list of all permission grant policies in Azure AD. + +### Example 2: Get a permission grant policy by ID -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant" +Get-MgPolicyPermissionGrantPolicy -PermissionGrantPolicyId "microsoft-all-application-permissions" | fl -{{ Add output here }} +DeletedDateTime : +Description : Includes all application permissions (app roles), for all APIs, for any client application. +DisplayName : All application permissions, for any client app +Excludes : {} +Id : microsoft-all-application-permissions +Includes : {bddda1ec-0174-44d5-84e2-47fb0ac01595} +AdditionalProperties : {[@odata.context, https://graph.microsoft.com/beta/$metadata#policies/permissionGrantPolicies/$entity], [includeAllPreApprovedApplications, False], [resourceScopeType, tenant], + [includes@odata.context, https://graph.microsoft.com/beta/$metadata#policies/permissionGrantPolicies('microsoft-all-application-permissions')/includes]…} ``` -{{ Add description here }} - +This command retrieves a specified permission grant policy in Azure AD. \ No newline at end of file diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicyExclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicyExclude.md index 093355d11d5..32571820719 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicyExclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicyExclude.md @@ -1,18 +1,32 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Get a permission grant policy exclude by ID -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant" +Get-MgPolicyPermissionGrantPolicyExclude -PermissionGrantPolicyId "microsoft-application-admin" | fl -{{ Add output here }} -``` +CertifiedClientApplicationsOnly : False +ClientApplicationIds : {all} +ClientApplicationPublisherIds : {all} +ClientApplicationTenantIds : {all} +ClientApplicationsFromVerifiedPublisherOnly : False +Id : c85b029f-4abf-47d8-ae61-d2a38299033a +PermissionClassification : all +PermissionType : application +Permissions : {all} +ResourceApplication : 00000003-0000-0000-c000-000000000000 +AdditionalProperties : {[scopeSensitivityLabels, System.Collections.Generic.Dictionary`2[System.String,System.Object]]} -{{ Add description here }} +CertifiedClientApplicationsOnly : False +ClientApplicationIds : {all} +ClientApplicationPublisherIds : {all} +ClientApplicationTenantIds : {all} +ClientApplicationsFromVerifiedPublisherOnly : False +Id : 2a1fbb36-9d9a-42d8-8804-de2aa45aca80 +PermissionClassification : all +PermissionType : application +Permissions : {all} +ResourceApplication : 00000002-0000-0000-c000-000000000000 +AdditionalProperties : {[scopeSensitivityLabels, System.Collections.Generic.Dictionary`2[System.String,System.Object]]} +``` +This command retrieves a specified permission grant policy exclude configuration in Azure AD. diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicyInclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicyInclude.md index 093355d11d5..67d4881f36d 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicyInclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Get-MgPolicyPermissionGrantPolicyInclude.md @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Get a permission grant policy include by ID -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant" +Get-MgPolicyPermissionGrantPolicyInclude -PermissionGrantPolicyId "microsoft-all-application-permissions" | fl -{{ Add output here }} +CertifiedClientApplicationsOnly : False +ClientApplicationIds : {all} +ClientApplicationPublisherIds : {all} +ClientApplicationTenantIds : {all} +ClientApplicationsFromVerifiedPublisherOnly : False +Id : bddda1ec-0174-44d5-84e2-47fb0ac01595 +PermissionClassification : all +PermissionType : application +Permissions : {all} +ResourceApplication : any +AdditionalProperties : {[scopeSensitivityLabels, System.Collections.Generic.Dictionary`2[System.String,System.Object]]} ``` -{{ Add description here }} - +This command retrieves a specified permission grant policy include configuration in Azure AD. diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyPermissionGrantPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyPermissionGrantPolicy.md index 093355d11d5..3ed4353404f 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyPermissionGrantPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyPermissionGrantPolicy.md @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Create a permission grant policy -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" +New-MgPolicyPermissionGrantPolicy -Id "testtenant-sampleapp-permissions" -Description "Permissions for sample app in test tenant" -DisplayName "Sample app permissions" | fl -{{ Add output here }} +DeletedDateTime : +Description : Permissions for sample app in test tenant +DisplayName : Sample app permissions +Excludes : +Id : testtenant-sampleapp-permissions +Includes : +AdditionalProperties : {[@odata.context, https://graph.microsoft.com/v1.0/$metadata#policies/permissionGrantPolicies/$entity]} ``` -{{ Add description here }} - +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-beta/New-MgPolicyPermissionGrantPolicyExclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyPermissionGrantPolicyExclude.md index 093355d11d5..517327b3404 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyPermissionGrantPolicyExclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyPermissionGrantPolicyExclude.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Create a permission grant policy exclude -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" +New-MgPolicyPermissionGrantPolicyExclude -PermissionGrantPolicyId "testtenant-sampleapp-permissions" -PermissionType "application" -ResourceApplication "00000000-0000-0000-0000-000000000000" -Permissions "00000000-0000-0000-0000-000000000000" | fl -{{ Add output here }} +ClientApplicationIds : {all} +ClientApplicationPublisherIds : {all} +ClientApplicationTenantIds : {all} +ClientApplicationsFromVerifiedPublisherOnly : False +Id : 66a94faf-9134-4f46-83d2-1aae2eaea98f +PermissionClassification : all +PermissionType : application +Permissions : {00000000-0000-0000-0000-000000000000} +ResourceApplication : 00000000-0000-0000-0000-000000000000 +AdditionalProperties : {[@odata.context, https://graph.microsoft.com/v1.0/$metadata#policies/permissionGrantPolicies('testtenant-sampleapp-permissions')/excludes/$entity]} ``` -{{ Add description here }} - +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-beta/New-MgPolicyPermissionGrantPolicyInclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyPermissionGrantPolicyInclude.md index 093355d11d5..51b8f639950 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyPermissionGrantPolicyInclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/New-MgPolicyPermissionGrantPolicyInclude.md @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Create a permission grant policy include -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" +New-MgPolicyPermissionGrantPolicyInclude -PermissionGrantPolicyId "testtenant-sampleapp-permissions" -PermissionType "application" -ResourceApplication "00000000-0000-0000-0000-000000000000" -Permissions "00000000-0000-0000-0000-000000000000" | fl -{{ Add output here }} +ClientApplicationIds : {all} +ClientApplicationPublisherIds : {all} +ClientApplicationTenantIds : {all} +ClientApplicationsFromVerifiedPublisherOnly : False +Id : 084b9abc-cf56-4d84-bdb0-5ad8f3a51038 +PermissionClassification : all +PermissionType : application +Permissions : {00000000-0000-0000-0000-000000000000} +ResourceApplication : 00000000-0000-0000-0000-000000000000 +AdditionalProperties : {[@odata.context, https://graph.microsoft.com/v1.0/$metadata#policies/permissionGrantPolicies('testtenant-sampleapp-permissions')/includes/$entity]} ``` -{{ Add description here }} - +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-beta/Remove-MgPolicyPermissionGrantPolicyExclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyExclude.md index 093355d11d5..c04218f614c 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyExclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyExclude.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Remove a permission grant policy exclude -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" +Remove-MgPolicyPermissionGrantPolicyExclude -PermissionGrantConditionSetId "66a94faf-9134-4f46-83d2-1aae2eaea98f" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" ``` -{{ Add description here }} - +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-beta/Remove-MgPolicyPermissionGrantPolicyInclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyInclude.md index 093355d11d5..7c87b695a83 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyInclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyInclude.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: {Remove a permission grant policy include -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" +Remove-MgPolicyPermissionGrantPolicyInclude -PermissionGrantConditionSetId "a42959bb-c338-469c-b224-6998216ec573" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" ``` -{{ Add description here }} - +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-beta/Update-MgPolicyPermissionGrantPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicy.md index 093355d11d5..d937c2b140e 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicy.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Update a permission grant policy -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" +Update-MgPolicyPermissionGrantPolicy -PermissionGrantPolicyId "testtenant-sampleapp-permissions" -Description "Permissions for sample app in test tenant with new updates" -DisplayName "Sample app permissions with new updates" | fl ``` -{{ Add description here }} - +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-beta/Update-MgPolicyPermissionGrantPolicyExclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicyExclude.md index 093355d11d5..922da9adbad 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicyExclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicyExclude.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Update a permission grant policy exclude -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" +Update-MgPolicyPermissionGrantPolicyExclude -PermissionGrantConditionSetId "33895130-8450-4a4b-a353-e2bc28d54f97" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" -PermissionType "application" -ResourceApplication "00000000-0000-0000-0000-000000000000" -Permissions "00000000-0000-0000-0000-000000000000", "00000000-0000-0000-0000-000000000001" ``` -{{ Add description here }} - +This command replaces the existing values with the provided new values for the specified exclude configuration properties in the specified permission grant policy in Azure AD. diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicyInclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicyInclude.md index 093355d11d5..c856da31eb3 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicyInclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicyInclude.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Update a permission grant policy include -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" +Update-MgPolicyPermissionGrantPolicyInclude -PermissionGrantConditionSetId "084b9abc-cf56-4d84-bdb0-5ad8f3a51038" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" -PermissionType "application" -ResourceApplication "00000000-0000-0000-0000-000000000000" -Permissions "00000000-0000-0000-0000-000000000000", "00000000-0000-0000-0000-000000000001" | fl ``` -{{ Add description here }} - +This command replaces the existing values with the provided new values for the specified include configuration properties in the specified permission grant policy in Azure AD. 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 093355d11d5..c7d78701138 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 @@ -1,18 +1,46 @@ -### Example 1: {{ Add title here }} +### Example 1: List all permission grant policies + ```powershell -PS C:\> {{ Add code here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant" +Get-MgPolicyPermissionGrantPolicy | fl + +DeletedDateTime : +Description : Includes all application permissions (app roles), for all APIs, for any client application. +DisplayName : All application permissions, for any client app +Excludes : {} +Id : microsoft-all-application-permissions +Includes : {bddda1ec-0174-44d5-84e2-47fb0ac01595} +AdditionalProperties : {[includeAllPreApprovedApplications, False], [resourceScopeType, tenant], [includes@odata.context, + https://graph.microsoft.com/beta/$metadata#policies/permissionGrantPolicies('microsoft-all-application-permissions')/includes], [excludes@odata.context, + https://graph.microsoft.com/beta/$metadata#policies/permissionGrantPolicies('microsoft-all-application-permissions')/excludes]} -{{ Add output here }} +DeletedDateTime : +Description : Includes all chat resoruce-specific application permissions, for all APIs, for any client application. +DisplayName : All chat resource-specific application permissions, for any client app +Excludes : {} +Id : microsoft-all-application-permissions-for-chat +Includes : {013e8de3-5e79-4b0f-a440-8f7794086460} +AdditionalProperties : {[includeAllPreApprovedApplications, False], [resourceScopeType, chat], [includes@odata.context, + https://graph.microsoft.com/beta/$metadata#policies/permissionGrantPolicies('microsoft-all-application-permissions-for-chat')/includes], [excludes@odata.context, + https://graph.microsoft.com/beta/$metadata#policies/permissionGrantPolicies('microsoft-all-application-permissions-for-chat')/excludes]} ``` -{{ Add description here }} +This command retrieves a list of all permission grant policies in Azure AD. + +### Example 2: Get a permission grant policy by ID -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant" +Get-MgPolicyPermissionGrantPolicy -PermissionGrantPolicyId "microsoft-all-application-permissions" | fl -{{ Add output here }} +DeletedDateTime : +Description : Includes all application permissions (app roles), for all APIs, for any client application. +DisplayName : All application permissions, for any client app +Excludes : {} +Id : microsoft-all-application-permissions +Includes : {bddda1ec-0174-44d5-84e2-47fb0ac01595} +AdditionalProperties : {[@odata.context, https://graph.microsoft.com/beta/$metadata#policies/permissionGrantPolicies/$entity], [includeAllPreApprovedApplications, False], [resourceScopeType, tenant], + [includes@odata.context, https://graph.microsoft.com/beta/$metadata#policies/permissionGrantPolicies('microsoft-all-application-permissions')/includes]…} ``` -{{ Add description here }} - +This command retrieves a specified permission grant policy in Azure AD. \ No newline at end of file diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyPermissionGrantPolicyExclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyPermissionGrantPolicyExclude.md index 093355d11d5..32571820719 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyPermissionGrantPolicyExclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Get-MgPolicyPermissionGrantPolicyExclude.md @@ -1,18 +1,32 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Get a permission grant policy exclude by ID -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant" +Get-MgPolicyPermissionGrantPolicyExclude -PermissionGrantPolicyId "microsoft-application-admin" | fl -{{ Add output here }} -``` +CertifiedClientApplicationsOnly : False +ClientApplicationIds : {all} +ClientApplicationPublisherIds : {all} +ClientApplicationTenantIds : {all} +ClientApplicationsFromVerifiedPublisherOnly : False +Id : c85b029f-4abf-47d8-ae61-d2a38299033a +PermissionClassification : all +PermissionType : application +Permissions : {all} +ResourceApplication : 00000003-0000-0000-c000-000000000000 +AdditionalProperties : {[scopeSensitivityLabels, System.Collections.Generic.Dictionary`2[System.String,System.Object]]} -{{ Add description here }} +CertifiedClientApplicationsOnly : False +ClientApplicationIds : {all} +ClientApplicationPublisherIds : {all} +ClientApplicationTenantIds : {all} +ClientApplicationsFromVerifiedPublisherOnly : False +Id : 2a1fbb36-9d9a-42d8-8804-de2aa45aca80 +PermissionClassification : all +PermissionType : application +Permissions : {all} +ResourceApplication : 00000002-0000-0000-c000-000000000000 +AdditionalProperties : {[scopeSensitivityLabels, System.Collections.Generic.Dictionary`2[System.String,System.Object]]} +``` +This command retrieves a specified permission grant policy exclude configuration 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 093355d11d5..67d4881f36d 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 @@ -1,18 +1,20 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Get a permission grant policy include by ID -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant" +Get-MgPolicyPermissionGrantPolicyInclude -PermissionGrantPolicyId "microsoft-all-application-permissions" | fl -{{ Add output here }} +CertifiedClientApplicationsOnly : False +ClientApplicationIds : {all} +ClientApplicationPublisherIds : {all} +ClientApplicationTenantIds : {all} +ClientApplicationsFromVerifiedPublisherOnly : False +Id : bddda1ec-0174-44d5-84e2-47fb0ac01595 +PermissionClassification : all +PermissionType : application +Permissions : {all} +ResourceApplication : any +AdditionalProperties : {[scopeSensitivityLabels, System.Collections.Generic.Dictionary`2[System.String,System.Object]]} ``` -{{ Add description here }} - +This command retrieves a specified permission grant policy include configuration in Azure AD. 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 093355d11d5..98fe1794732 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 @@ -1,18 +1,16 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Create a permission grant policy -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" +New-MgPolicyPermissionGrantPolicy -Id "testtenant-sampleapp-permissions" -Description "Permissions for sample app in test tenant" -DisplayName "Sample app permissions" | fl -{{ Add output here }} +DeletedDateTime : +Description : Permissions for sample app in test tenant +DisplayName : Sample app permissions +Excludes : +Id : testtenant-sampleapp-permissions +Includes : +AdditionalProperties : {[@odata.context, https://graph.microsoft.com/v1.0/$metadata#policies/permissionGrantPolicies/$entity]} ``` -{{ Add description here }} - +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 093355d11d5..517327b3404 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 @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Create a permission grant policy exclude -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" +New-MgPolicyPermissionGrantPolicyExclude -PermissionGrantPolicyId "testtenant-sampleapp-permissions" -PermissionType "application" -ResourceApplication "00000000-0000-0000-0000-000000000000" -Permissions "00000000-0000-0000-0000-000000000000" | fl -{{ Add output here }} +ClientApplicationIds : {all} +ClientApplicationPublisherIds : {all} +ClientApplicationTenantIds : {all} +ClientApplicationsFromVerifiedPublisherOnly : False +Id : 66a94faf-9134-4f46-83d2-1aae2eaea98f +PermissionClassification : all +PermissionType : application +Permissions : {00000000-0000-0000-0000-000000000000} +ResourceApplication : 00000000-0000-0000-0000-000000000000 +AdditionalProperties : {[@odata.context, https://graph.microsoft.com/v1.0/$metadata#policies/permissionGrantPolicies('testtenant-sampleapp-permissions')/excludes/$entity]} ``` -{{ Add description here }} - +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 093355d11d5..51b8f639950 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 @@ -1,18 +1,19 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Create a permission grant policy include -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" +New-MgPolicyPermissionGrantPolicyInclude -PermissionGrantPolicyId "testtenant-sampleapp-permissions" -PermissionType "application" -ResourceApplication "00000000-0000-0000-0000-000000000000" -Permissions "00000000-0000-0000-0000-000000000000" | fl -{{ Add output here }} +ClientApplicationIds : {all} +ClientApplicationPublisherIds : {all} +ClientApplicationTenantIds : {all} +ClientApplicationsFromVerifiedPublisherOnly : False +Id : 084b9abc-cf56-4d84-bdb0-5ad8f3a51038 +PermissionClassification : all +PermissionType : application +Permissions : {00000000-0000-0000-0000-000000000000} +ResourceApplication : 00000000-0000-0000-0000-000000000000 +AdditionalProperties : {[@odata.context, https://graph.microsoft.com/v1.0/$metadata#policies/permissionGrantPolicies('testtenant-sampleapp-permissions')/includes/$entity]} ``` -{{ Add description here }} - +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/Remove-MgPolicyPermissionGrantPolicyExclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyPermissionGrantPolicyExclude.md index 093355d11d5..c04218f614c 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 @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Remove a permission grant policy exclude -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" +Remove-MgPolicyPermissionGrantPolicyExclude -PermissionGrantConditionSetId "66a94faf-9134-4f46-83d2-1aae2eaea98f" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" ``` -{{ Add description here }} - +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/Update-MgPolicyPermissionGrantPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyPermissionGrantPolicy.md index 093355d11d5..d937c2b140e 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 @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Update a permission grant policy -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" +Update-MgPolicyPermissionGrantPolicy -PermissionGrantPolicyId "testtenant-sampleapp-permissions" -Description "Permissions for sample app in test tenant with new updates" -DisplayName "Sample app permissions with new updates" | fl ``` -{{ Add description here }} - +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-MgPolicyPermissionGrantPolicyExclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyPermissionGrantPolicyExclude.md index 093355d11d5..922da9adbad 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyPermissionGrantPolicyExclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyPermissionGrantPolicyExclude.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Update a permission grant policy exclude -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" +Update-MgPolicyPermissionGrantPolicyExclude -PermissionGrantConditionSetId "33895130-8450-4a4b-a353-e2bc28d54f97" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" -PermissionType "application" -ResourceApplication "00000000-0000-0000-0000-000000000000" -Permissions "00000000-0000-0000-0000-000000000000", "00000000-0000-0000-0000-000000000001" ``` -{{ Add description here }} - +This command replaces the existing values with the provided new values for the specified exclude configuration properties in the specified permission grant policy in Azure AD. diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyPermissionGrantPolicyInclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyPermissionGrantPolicyInclude.md index 093355d11d5..c856da31eb3 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyPermissionGrantPolicyInclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyPermissionGrantPolicyInclude.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Update a permission grant policy include -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" +Update-MgPolicyPermissionGrantPolicyInclude -PermissionGrantConditionSetId "084b9abc-cf56-4d84-bdb0-5ad8f3a51038" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" -PermissionType "application" -ResourceApplication "00000000-0000-0000-0000-000000000000" -Permissions "00000000-0000-0000-0000-000000000000", "00000000-0000-0000-0000-000000000001" | fl ``` -{{ Add description here }} - +This command replaces the existing values with the provided new values for the specified include configuration properties in the specified permission grant policy in Azure AD. From 20cd7c69f24f4fc4d3a574b4a1f6b63b2f2247fc Mon Sep 17 00:00:00 2001 From: Eunice Waweru <73849846+msewaweru@users.noreply.github.com> Date: Thu, 15 Sep 2022 10:44:46 +0300 Subject: [PATCH 2/3] Added more examples --- .../Remove-MgPolicyPermissionGrantPolicy.md | 18 ++++-------------- ...ove-MgPolicyPermissionGrantPolicyExclude.md | 2 +- ...ove-MgPolicyPermissionGrantPolicyInclude.md | 2 +- .../Remove-MgPolicyPermissionGrantPolicy.md | 18 ++++-------------- ...ove-MgPolicyPermissionGrantPolicyExclude.md | 2 +- ...ove-MgPolicyPermissionGrantPolicyInclude.md | 18 ++++-------------- 6 files changed, 15 insertions(+), 45 deletions(-) diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicy.md index 093355d11d5..3bd17a832e3 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicy.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Remove a permission grant policy -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" +Remove-MgPolicyPermissionGrantPolicy -PermissionGrantPolicyId "testtenant-sampleapp-permissions" ``` -{{ Add description here }} - +This command deletes the specified permission grant policy in Azure AD. diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyExclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyExclude.md index c04218f614c..20bef32f0af 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyExclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyExclude.md @@ -2,7 +2,7 @@ ```powershell Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" -Remove-MgPolicyPermissionGrantPolicyExclude -PermissionGrantConditionSetId "66a94faf-9134-4f46-83d2-1aae2eaea98f" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" +Remove-MgPolicyPermissionGrantPolicyExclude -PermissionGrantConditionSetId "60ba4fac-d39e-47b3-bd99-4394cb88a2f8" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" ``` 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-beta/Remove-MgPolicyPermissionGrantPolicyInclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyInclude.md index 7c87b695a83..2a8493a2887 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyInclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyInclude.md @@ -2,7 +2,7 @@ ```powershell Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" -Remove-MgPolicyPermissionGrantPolicyInclude -PermissionGrantConditionSetId "a42959bb-c338-469c-b224-6998216ec573" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" +Remove-MgPolicyPermissionGrantPolicyInclude -PermissionGrantConditionSetId "084b9abc-cf56-4d84-bdb0-5ad8f3a51038" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" ``` 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-MgPolicyPermissionGrantPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyPermissionGrantPolicy.md index 093355d11d5..3bd17a832e3 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyPermissionGrantPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Remove-MgPolicyPermissionGrantPolicy.md @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: Remove a permission grant policy -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" +Remove-MgPolicyPermissionGrantPolicy -PermissionGrantPolicyId "testtenant-sampleapp-permissions" ``` -{{ Add description here }} - +This command deletes the specified permission grant policy in Azure AD. 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 c04218f614c..20bef32f0af 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 @@ -2,7 +2,7 @@ ```powershell Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" -Remove-MgPolicyPermissionGrantPolicyExclude -PermissionGrantConditionSetId "66a94faf-9134-4f46-83d2-1aae2eaea98f" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" +Remove-MgPolicyPermissionGrantPolicyExclude -PermissionGrantConditionSetId "60ba4fac-d39e-47b3-bd99-4394cb88a2f8" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" ``` 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 093355d11d5..2a8493a2887 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 @@ -1,18 +1,8 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` +### Example 1: {Remove a permission grant policy include -{{ Add description here }} - -### Example 2: {{ Add title here }} ```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} +Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" +Remove-MgPolicyPermissionGrantPolicyInclude -PermissionGrantConditionSetId "084b9abc-cf56-4d84-bdb0-5ad8f3a51038" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" ``` -{{ Add description here }} - +This command deletes the specified include configuration from the specific permission grant policy in Azure AD. From 582abbebf0eed300c1d5ed6e9bcda2bea4e81a0a Mon Sep 17 00:00:00 2001 From: Eunice Waweru <73849846+msewaweru@users.noreply.github.com> Date: Thu, 15 Sep 2022 11:05:41 +0300 Subject: [PATCH 3/3] Minor edits --- .../v1.0-beta/Remove-MgPolicyPermissionGrantPolicyInclude.md | 2 +- .../v1.0-beta/Update-MgPolicyPermissionGrantPolicy.md | 2 +- .../v1.0-beta/Update-MgPolicyPermissionGrantPolicyInclude.md | 2 +- .../examples/v1.0/Get-MgPolicyPermissionGrantPolicy.md | 4 ++-- .../v1.0/Remove-MgPolicyPermissionGrantPolicyInclude.md | 2 +- .../examples/v1.0/Update-MgPolicyPermissionGrantPolicy.md | 2 +- .../v1.0/Update-MgPolicyPermissionGrantPolicyInclude.md | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyInclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyInclude.md index 2a8493a2887..b4ac9a24cfd 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyInclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Remove-MgPolicyPermissionGrantPolicyInclude.md @@ -1,4 +1,4 @@ -### Example 1: {Remove a permission grant policy include +### Example 1: Remove a permission grant policy include ```powershell Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" diff --git a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicy.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicy.md index d937c2b140e..1299f29dba9 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicy.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicy.md @@ -2,7 +2,7 @@ ```powershell Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" -Update-MgPolicyPermissionGrantPolicy -PermissionGrantPolicyId "testtenant-sampleapp-permissions" -Description "Permissions for sample app in test tenant with new updates" -DisplayName "Sample app permissions with new updates" | fl +Update-MgPolicyPermissionGrantPolicy -PermissionGrantPolicyId "testtenant-sampleapp-permissions" -Description "Permissions for sample app in test tenant with new updates" -DisplayName "Sample app permissions with new updates" ``` 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-beta/Update-MgPolicyPermissionGrantPolicyInclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicyInclude.md index c856da31eb3..17b2b4f86e6 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicyInclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0-beta/Update-MgPolicyPermissionGrantPolicyInclude.md @@ -2,7 +2,7 @@ ```powershell Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" -Update-MgPolicyPermissionGrantPolicyInclude -PermissionGrantConditionSetId "084b9abc-cf56-4d84-bdb0-5ad8f3a51038" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" -PermissionType "application" -ResourceApplication "00000000-0000-0000-0000-000000000000" -Permissions "00000000-0000-0000-0000-000000000000", "00000000-0000-0000-0000-000000000001" | fl +Update-MgPolicyPermissionGrantPolicyInclude -PermissionGrantConditionSetId "084b9abc-cf56-4d84-bdb0-5ad8f3a51038" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" -PermissionType "application" -ResourceApplication "00000000-0000-0000-0000-000000000000" -Permissions "00000000-0000-0000-0000-000000000000", "00000000-0000-0000-0000-000000000001" ``` This command replaces the existing values with the provided new values for the specified include configuration properties in the specified permission grant policy in Azure AD. 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 c7d78701138..47d4f358d03 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 @@ -25,7 +25,7 @@ AdditionalProperties : {[includeAllPreApprovedApplications, False], [resourceSco https://graph.microsoft.com/beta/$metadata#policies/permissionGrantPolicies('microsoft-all-application-permissions-for-chat')/excludes]} ``` -This command retrieves a list of all permission grant policies in Azure AD. +This command retrieves a list of all permission grant policies in Azure AD. ### Example 2: Get a permission grant policy by ID @@ -43,4 +43,4 @@ AdditionalProperties : {[@odata.context, https://graph.microsoft.com/beta/$metad [includes@odata.context, https://graph.microsoft.com/beta/$metadata#policies/permissionGrantPolicies('microsoft-all-application-permissions')/includes]…} ``` -This command retrieves a specified permission grant policy in Azure AD. \ No newline at end of file +This command retrieves a specified 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 2a8493a2887..b4ac9a24cfd 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 @@ -1,4 +1,4 @@ -### Example 1: {Remove a permission grant policy include +### Example 1: Remove a permission grant policy include ```powershell Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" 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 d937c2b140e..efe44056a86 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 @@ -2,7 +2,7 @@ ```powershell Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" -Update-MgPolicyPermissionGrantPolicy -PermissionGrantPolicyId "testtenant-sampleapp-permissions" -Description "Permissions for sample app in test tenant with new updates" -DisplayName "Sample app permissions with new updates" | fl +Update-MgPolicyPermissionGrantPolicy -PermissionGrantPolicyId "testtenant-sampleapp-permissions" -Description "Permissions for sample app in test tenant with new updates" -DisplayName "Sample app permissions with new updates" ``` 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-MgPolicyPermissionGrantPolicyInclude.md b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyPermissionGrantPolicyInclude.md index c856da31eb3..17b2b4f86e6 100644 --- a/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyPermissionGrantPolicyInclude.md +++ b/src/Identity.SignIns/Identity.SignIns/examples/v1.0/Update-MgPolicyPermissionGrantPolicyInclude.md @@ -2,7 +2,7 @@ ```powershell Connect-MgGraph -Scopes "Policy.Read.PermissionGrant,Policy.ReadWrite.PermissionGrant" -Update-MgPolicyPermissionGrantPolicyInclude -PermissionGrantConditionSetId "084b9abc-cf56-4d84-bdb0-5ad8f3a51038" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" -PermissionType "application" -ResourceApplication "00000000-0000-0000-0000-000000000000" -Permissions "00000000-0000-0000-0000-000000000000", "00000000-0000-0000-0000-000000000001" | fl +Update-MgPolicyPermissionGrantPolicyInclude -PermissionGrantConditionSetId "084b9abc-cf56-4d84-bdb0-5ad8f3a51038" -PermissionGrantPolicyId "testtenant-sampleapp-permissions" -PermissionType "application" -ResourceApplication "00000000-0000-0000-0000-000000000000" -Permissions "00000000-0000-0000-0000-000000000000", "00000000-0000-0000-0000-000000000001" ``` This command replaces the existing values with the provided new values for the specified include configuration properties in the specified permission grant policy in Azure AD.