< Back
New-PartnerCustomerApplicationConsent
Post
NAME New-PartnerCustomerApplicationConsent
SYNOPSIS
Creates a new application consent for the specified customer.
SYNTAX
New-PartnerCustomerApplicationConsent -ApplicationGrants <ApplicationGrant[]> -ApplicationId <String> -CustomerId
<String> -DisplayName <String> [<CommonParameters>]
DESCRIPTION
This cmdlet creates a new application consent for the specified customer.
PARAMETERS
-ApplicationGrants <ApplicationGrant[]>
The grants for the application.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ApplicationId <String>
The identifier for application.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-CustomerId <String>
The identifier for the customer.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-DisplayName <String>
The display name for the application.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
Microsoft.Store.PartnerCenter.Models.ApplicationConsents.ApplicationConsent
NOTES
-------------------------- Example 1 --------------------------
PS C:\\> $grant = New-Object -TypeName Microsoft.Store.PartnerCenter.Models.ApplicationConsents.ApplicationGrant
PS C:\\> $grant.EnterpriseApplicationId = '00000002-0000-0000-c000-000000000000'
PS C:\\> $grant.Scope = "Domain.ReadWrite.All,User.ReadWrite.All,Directory.Read.All"
PS C:\\> New-PartnerCustomerApplicationConsent -ApplicationId 'c33c2273-9329-42ec-948d-152ead47cf65'
-ApplicationGrants @($grant) -CustomerId 'f1c5e45f-7dea-4863-a55d-b5a5479201df' -DisplayName 'CPV Web App'
Creates a new application consent for the specified customer.
RELATED LINKS
Online Version: https://docs.microsoft.com/powershell/m ... ionConsent
SYNOPSIS
Creates a new application consent for the specified customer.
SYNTAX
New-PartnerCustomerApplicationConsent -ApplicationGrants <ApplicationGrant[]> -ApplicationId <String> -CustomerId
<String> -DisplayName <String> [<CommonParameters>]
DESCRIPTION
This cmdlet creates a new application consent for the specified customer.
PARAMETERS
-ApplicationGrants <ApplicationGrant[]>
The grants for the application.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ApplicationId <String>
The identifier for application.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-CustomerId <String>
The identifier for the customer.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-DisplayName <String>
The display name for the application.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
Microsoft.Store.PartnerCenter.Models.ApplicationConsents.ApplicationConsent
NOTES
-------------------------- Example 1 --------------------------
PS C:\\> $grant = New-Object -TypeName Microsoft.Store.PartnerCenter.Models.ApplicationConsents.ApplicationGrant
PS C:\\> $grant.EnterpriseApplicationId = '00000002-0000-0000-c000-000000000000'
PS C:\\> $grant.Scope = "Domain.ReadWrite.All,User.ReadWrite.All,Directory.Read.All"
PS C:\\> New-PartnerCustomerApplicationConsent -ApplicationId 'c33c2273-9329-42ec-948d-152ead47cf65'
-ApplicationGrants @($grant) -CustomerId 'f1c5e45f-7dea-4863-a55d-b5a5479201df' -DisplayName 'CPV Web App'
Creates a new application consent for the specified customer.
RELATED LINKS
Online Version: https://docs.microsoft.com/powershell/m ... ionConsent