Get-EntraBetaUserExtension

Gets a user extension.

Syntax

Get-EntraBetaUserExtension
   -UserId <String>
   [-Property <String[]>]
   [<CommonParameters>]

Description

The Get-EntraBetaUserExtension cmdlet gets a user extension in Microsoft Entra ID.

Examples

Example 1: Retrieve extension attributes for a user

Connect-Entra -Scopes 'User.Read'
Get-EntraBetaUserExtension -UserId 'SawyerM@contoso.com'

onPremisesDistinguishedName :
@odata.context              : https://graph.microsoft.com/beta/$metadata#users(identities,onPremisesDistinguishedName,employeeId,createdDateTime)/$entity
identities                  : {@{issuer=SawyerM@contoso.com; signInType=userPrincipalName; issuerAssignedId=SawyerM@contoso.com}}
employeeId                  :
id                          : 00aa00aa-bb11-cc22-dd33-44ee44ee44ee
createdDateTime             : 18/07/2024 05:13:40
userIdentities              : {@{issuer=SawyerM@contoso.com; signInType=userPrincipalName; issuerAssignedId=SawyerM@contoso.com}}

This example shows how to retrieve the extension attributes for a specified user.

  • -UserId parameter specifies the user object Id.

Parameters

-Property

Specifies properties to be returned.

Type:System.String[]
Aliases:Select
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-UserId

Specifies the ID of an object.

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