Get-EntraContactManager

获取联系人的经理。

语法

Default (默认值)

Get-EntraContactManager

    -OrgContactId <String>
    [-Property <String[]>]
    [<CommonParameters>]

说明

该 Get-EntraContactManager cmdlet 获取Microsoft Entra ID中联系人的经理。

对于涉及工作或学校帐户的委托方案,登录用户必须具有受支持的Microsoft Entra角色或具有所需权限的自定义角色。 以下最低特权角色支持此操作:

  • 目录读取器:读取基本属性
  • 全球阅读器
  • 目录编写人员
  • Intune 管理员
  • 用户管理员

示例

示例 1:获取联系人的经理

Connect-Entra -Scopes 'OrgContact.Read.All'
$contact = Get-EntraContact -Filter "displayName eq 'Contoso Contact'"
Get-EntraContactManager -OrgContactId $contact.Id

该示例演示如何检索联系人的经理。 可以使用该命令 Get-EntraContact 获取组织联系人。

  • -OrgContactId 参数指定联系人 ID。

参数

-OrgContactId

指定Microsoft Entra ID中联系人的 ID。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False
别名:OrgContactId

参数集

(All)
Position:Named
必需:True
来自管道的值:True
来自管道的值(按属性名称):True
来自剩余参数的值:False

-Property

指定要返回的属性。

参数属性

类型:

System.String[]

默认值:None
支持通配符:False
不显示:False
别名:Select

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。