We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2972fc commit 02a318bCopy full SHA for 02a318b
Modules/CIPPCore/Public/Set-CIPPCPVConsent.ps1
@@ -17,6 +17,9 @@ function Set-CIPPCPVConsent {
17
if ($Tenant.customerId -ne $TenantFilter) {
18
return @('Not a valid tenant')
19
}
20
+ if ($Tenant.delegatedPrivilegeStatus -eq 'directTenant') {
21
+ return @('Application is already consented to this tenant')
22
+ }
23
24
if ($ResetSP) {
25
try {
@@ -40,7 +43,7 @@ function Set-CIPPCPVConsent {
40
43
'DelegatedPermissionGrant.ReadWrite.All',
41
44
'Directory.ReadWrite.All',
42
45
'AppRoleAssignment.ReadWrite.All'
- ) -Join ','
46
+ ) -join ','
47
48
)
49
} | ConvertTo-Json
0 commit comments