Επεξεργασία

Κοινή χρήση μέσω


Get-AzureADUserExtension

Gets a user extension.

Syntax

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.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False