Skip to content

Commit e11eea5

Browse files
committed
update api rest
1 parent fe5bdb3 commit e11eea5

16 files changed

Lines changed: 73 additions & 1990 deletions

core/api/auth/Connect-MonkeyCloud.ps1

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Function Connect-MonkeyCloud{
174174
#$O365Object.auth_tokens.AzurePortal = Connect-MonkeyAzurePortal
175175
}
176176
#Get Tenant Information
177-
$O365Object.Tenant = Get-TenantInformation
177+
Get-TenantInformation
178178
}
179179
#Check If Azure services is selected
180180
If($O365Object.initParams.Instance -eq "Azure"){
@@ -217,12 +217,17 @@ Function Connect-MonkeyCloud{
217217
$ga = Test-MonkeyAADIAM -RoleTemplateId 62e90394-69f5-4237-9190-012177145e10
218218
#Check Authentication administrator permissions
219219
$aa = Test-MonkeyAADIAM -RoleTemplateId c4e39bd9-1100-46d3-8c65-fb160da0071f
220+
#Check Privileged Authentication administrator permissions
221+
$paa = Test-MonkeyAADIAM -RoleTemplateId 7be44c8a-adaf-4e2a-84d6-ab2649e08a13
220222
If($ga){
221223
$O365Object.canRequestMFAForUsers = $true
222224
}
223225
ElseIf($aa){
224226
$O365Object.canRequestMFAForUsers = $true
225227
}
228+
ElseIf($paa){
229+
$O365Object.canRequestMFAForUsers = $true
230+
}
226231
ElseIf($O365Object.isConfidentialApp){
227232
$O365Object.canRequestMFAForUsers = $true
228233
}
@@ -274,7 +279,7 @@ Function Connect-MonkeyCloud{
274279
$O365Object.onlineServices.EntraID = $true
275280
}
276281
#Check If EntraID P2 is enabled
277-
If($null -ne $O365Object.Tenant.licensing.EntraIDP2){
282+
If($null -ne $O365Object.Tenant.licensing -and $null -ne $O365Object.Tenant.licensing.EntraIDP2){
278283
$msg = @{
279284
MessageData = ($message.TokenRequestInfoMessage -f "Entra ID Privileged Managament Identity API")
280285
callStack = (Get-PSCallStack | Select-Object -First 1);

core/api/entraid/graph/api/Get-MonkeyGraphLinkedObject.ps1

Lines changed: 0 additions & 192 deletions
This file was deleted.

0 commit comments

Comments
 (0)