Get-AzureADUserExtension

ユーザー拡張機能を取得します。

構文

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

説明

Get-AzureADUserExtension コマンドレットは、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 (./Get-AzureADUser.md) コマンドレットを使用して、Azure AD ユーザーの ID を取得します。 このコマンドは、$UserId変数に値を格納します。

2 番目のコマンドは、$UserIdによって識別されたユーザーに対して値が割り当てられているすべての拡張属性を取得します。

パラメーター

-ObjectId

オブジェクトの ID を指定します。

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