Get-AzureADUserExtension

取得使用者延伸模組。

Syntax

Get-AzureADUserExtension
   -ObjectId <String>
   [<CommonParameters>]

Description

Get-AzureADUserExtension Cmdlet 會在 Azure Active Directory (AD) 中取得使用者延伸模組。

範例

範例 1:擷取使用者的擴充屬性

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

第一個命令會使用 Get-AzureADUser Cmdlet 取得 Azure AD 使用者的識別碼。 此命令會將值儲存在 $UserId 變數中。

第二個命令會擷取指派值給使用者的所有擴充屬性$UserId。

參數

-ObjectId

指定 物件的識別碼。

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