Collectors/TenantBasics.ps1
|
@{ Name = 'TenantBasics' FileName = 'tenantBasics' ApiVersion = 'v1.0' RequiredScopes = @('Directory.Read.All') Description = 'Organization info, verified domains and license (SKU) overview.' Collect = { $organization = Invoke-TLGraphRequest -Uri '/v1.0/organization' -All | Select-Object -First 1 $domains = @(Invoke-TLGraphRequest -Uri '/v1.0/domains' -All) $skus = @(Invoke-TLGraphRequest -Uri '/v1.0/subscribedSkus' -All) @{ organization = $organization domains = $domains skus = $skus } } } |