我在此列表中尝试了其他可以正常工作的字段,例如jobTitle:https://docs.microsoft.com/en-us/previous-versions/azure/ad/graph/api/entity-and-complex-type-reference
我的API调用使用了承载令牌,并且采用以下格式:
https://graph.microsoft.com/v1.0/users/{{MY CONTACT ID}}/contactFolders/{{ FOLDER ID HERE}}/contacts?$select=displayName,fileAs,emailAddresses,businessPhones,mobilePhone,homePhones,department,telephoneNumber&top=999
我希望电话号码是响应的一部分,但我收到一个错误。
我从API调用中收到响应“在类型'Microsoft.OutlookServices.Contact'上找不到名为'telephoneNumber'的属性”。我已经尝试了其他可以正常工作的字段,例如...
https://graph.microsoft.com
),您提供的链接是Azure AD Graph API(Contact Entity
)中的Contact Entity
。两种API不同,差异https://graph.windows.net
。就您而言,您需要在Microsoft Graph中检查here,显然,没有contact resource type
属性。