用户缺少属性 [英] Missing attributes on User
问题描述
试图在Microsoft图上检索用户的寻呼机属性.似乎不在v1.0或beta中.
Looking to retrieve the pager attribute for user on Microsoft graph. Doesn't seem to be in v1.0 or beta.
我跑步时
https://graph.microsoft.com/beta/me/
我得到了我需要的大多数属性,但是我还需要返回传呼机属性.
I get most of the attributes I need however I also need to return the pager attribute.
当我执行https://graph.microsoft.com/beta/me?$select=displayname,pager
时不起作用
我查看了元数据,并在PhoneType下查看了寻呼机,但不确定如何检索它.
I had a look at the meta data and see pager under PhoneType but unsure how to retrieve it.
来自https://graph.microsoft.com/beta/$metadata
:
<EnumType Name="phoneType">
<Member Name="home" Value="0" />
<Member Name="business" Value="1" />
<Member Name="mobile" Value="2" />
<Member Name="other" Value="3" />
<Member Name="assistant" Value="4" />
<Member Name="homeFax" Value="5" />
<Member Name="businessFax" Value="6" />
<Member Name="otherFax" Value="7" />
<Member Name="pager" Value="8" />
<Member Name="radio" Value="9" />
</EnumType>
任何对此的帮助都将非常棒.预先感谢
Any help on this would be fantastic. Thanks in advance
推荐答案
请注意,/beta
版本实际上会返回用户属性的 all . /v1.0
版本包括默认的$select
,但是/beta
版本不应用任何选择或过滤条件.
Just to be clear, The /beta
version actually returns all of the user's attributes. The /v1.0
version includes a default $select
, but the /beta
version applies no selection or filter criteria of any kind.
更重要的是,user
实体不使用phoneType
枚举.它仅由person
和contact
实体使用.
More importantly, phoneType
enumeration is not used by the user
entity. It is only used by the person
and contact
entities.
phoneType
枚举仅由microsoft.graph.phone
类型引用(来自Exchange,而不是AAD):
The phoneType
enum is only referenced by the microsoft.graph.phone
type (which comes from Exchange, not AAD):
<ComplexType Name="phone">
<Property Name="type" Type="microsoft.graph.phoneType"/>
<Property Name="number" Type="Edm.String"/>
</ComplexType>
依次,类型microsoft.graph.phone
仅应用于两个资源:person
和contact
(即Outlook联系人):
In turn, the type microsoft.graph.phone
is only applied to two resources: person
and contact
(i.e. Outlook Contacts):
<EntityType Name="person" BaseType="microsoft.graph.entity">
<!-- snipp -->
<Property Name="emailAddresses" Type="Collection(microsoft.graph.rankedEmailAddress)"/>
<Property Name="phones" Type="Collection(microsoft.graph.phone)"/>
<Property Name="postalAddresses" Type="Collection(microsoft.graph.location)"/>
<!-- snipp -->
</EntityType>
<EntityType Name="contact" BaseType="microsoft.graph.outlookItem" OpenType="true">
<!-- snipp -->
<Property Name="manager" Type="Edm.String"/>
<Property Name="phones" Type="Collection(microsoft.graph.phone)"/>
<Property Name="postalAddresses" Type="Collection(microsoft.graph.physicalAddress)"/>
<Property Name="spouseName" Type="Edm.String"/>
<!-- snipp -->
</EntityType>
user
实体不包含pager
属性(其他大多数属性也不在phoneType
枚举中侦听).
The user
entity does not contain a pager
property (nor most of the others listen in the phoneType
enum).
这篇关于用户缺少属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!