Я получаю список пользователей из Microsoft Graph API и хочу провести различие между «людьми», с одной стороны, и оборудованием и помещениями, с другой.Однако isResourceAccount
всегда равен нулю - что следует считать ложным, если судить по справочнику по Microsoft Graph API .
Кто-нибудь сталкивался с этой проблемой - это известный дефект?Или я неправильно понимаю функциональность свойства isResourceAccount
?
Пример вызова: https://graph.microsoft.com/v1.0/users?$select=displayName,userPrincipalName,isResourceAccount
Пример ответа:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users(displayName,userPrincipalName,isResourceAccount)",
"value": [
{
"displayName": "Admin User",
"userPrincipalName": "admin@testtenant.onmicrosoft.com",
"isResourceAccount": null
},
{
"displayName": "Printer",
"userPrincipalName": "printer@testtenant.onmicrosoft.com",
"isResourceAccount": null
},
{
"displayName": "Test User",
"userPrincipalName": "test@testtenant.onmicrosoft.com",
"isResourceAccount": null
},
{
"displayName": "Test room",
"userPrincipalName": "testroom@testtenant.onmicrosoft.com",
"isResourceAccount": null
}
]
}