PARENT_TENANT
Summary
Description
Identification
Connect-AzAccount
$tenantId = (Get-AzContext).Tenant.Id
# Get all users and their parent tenant
Get-AzADUser | Select-Object DisplayName, Id, @{N='ParentTenantId';E={$tenantId}} | Format-Table -AutoSize
# Get all groups and their parent tenant
Get-AzADGroup | Select-Object DisplayName, Id, @{N='ParentTenantId';E={$tenantId}} | Format-Table -AutoSize
# Get all applications and their parent tenant
Get-AzADApplication | Select-Object DisplayName, Id, @{N='ParentTenantId';E={$tenantId}} | Format-Table -AutoSize
# Get all service principals and their parent tenant
Get-AzADServicePrincipal | Select-Object DisplayName, Id, @{N='ParentTenantId';E={$tenantId}} | Format-Table -AutoSizeExploitation
Mitigation
Detection
References
Was this helpful?