Get-AzureADUserExtension
Gets a user extension.
Syntax
Default (Default)
Get-AzureADUserExtension
-ObjectId <String>
[<CommonParameters>]
Description
The Get-AzureADUserExtension cmdlet gets a user extension in Azure Active Directory (AD).
Examples
Example 1: Retrieve extension attributes for a user
PS C:\> $UserId = (Get-AzureADUser -Top 1).ObjectId
PS C:\> Get-AzureADUserExtension -ObjectId $UserId
Key Value
--- -----
odata.metadata https://graph.windows.net/85b5ff1e-0402-400c-9e3c0f9e965325d1$metadata#directoryObjects/Microsoft.Director...
odata.type Microsoft.DirectoryServices.User
deletionTimestamps
signInNames []
companyName
creationType
facsimileTelephoneNumber
isCompromised
refreshTokensValidFromDateTime 11/7/2016 10:11:09 PM
showInAddressList
The first command gets the ID of an Azure AD user by using the Get-AzureADUser (./Get-AzureADUser.md)cmdlet. The command stores the value in the $UserId variable.
The second command retrieves all extension attributes that have a value assigned to them for the user identified by $UserId.
Parameters
-ObjectId
Specifies the ID of an object.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
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.