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 |
相關連結
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應