Get-AzureADObjectByObjectId
Retrieves the object(s) specified by the objectIds parameter
Syntax
Default (Default)
Get-AzureADObjectByObjectId
-ObjectIds <System.Collections.Generic.List`1[System.String]>
[-Types <System.Collections.Generic.List`1[System.String]>]
[<CommonParameters>]
Description
Retrieves the object(s) specified by the objectIds parameter
Examples
Example 1
PS C:\WINDOWS\system32> Get-AzureADObjectByObjectId -ObjectIds aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb, bbbbbbbb-1111-2222-3333-cccccccccccc
ObjectId AppId DisplayName
-------- ----- -----------
bbbbbbbb-1111-2222-3333-cccccccccccc 71715b24-8cdd-432b-a138-86e8ad179274 Woodgrove HR App
DeletionTimeStamp :
ObjectId : aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb
ObjectType : DeviceConfiguration
PublicIssuerCertificates : {}
CloudPublicIssuerCertificates : {}
RegistrationQuota : 20
MaximumRegistrationInactivityPeriod : 90
In this example two objects are retrieved (a DeviceConfiguration object and an Application object) as specified by the value of the ObjectIds parameter
Parameters
-ObjectIds
One or more object ID's, separated by commas, for which the objects are retrieved
Parameter properties
Type: | |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Types
Specifies the type of objects that the cmdlet returns
Parameter properties
Type: | |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
None
Outputs
Object
Notes
See the migration guide for Get-AzureADObjectByObjectId to the Microsoft Graph PowerShell.