Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,112 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Using PowerShell for Microsoft Graphs, how can I expand or convert the below attributes or columns?
CreatedOnBehalfOf : Microsoft.Graph.PowerShell.Models.MicrosoftGraphDirectoryObject
VerifiedPublisher : Microsoft.Graph.PowerShell.Models.MicrosoftGraphVerifiedPublisher
Script:
$Properties = 'Id', 'AppId', 'DisplayName', 'Description', 'Notes', 'Owners', 'CreatedDateTime', 'CreatedOnBehalfOf', 'PublisherDomain', 'VerifiedPublisher', 'SignInAudience', 'AppRoles'
$paramGetMgApplication = @{
All = $true
Filter = "*"
Property = $Properties
ConsistencyLevel = 'Eventual'
CountVariable = 'CountVar'
}
Get-MgApplication @paramGetMgApplication |
Select-Object $Properties,
@{n="CreatedID";e = {$_.CreatedOnBehalfOf}},
@{n="PublisherId"; e = {$_.VerifiedPublisher}}
Thanks,