Not getting information of registeredowners & registeredusers while using graph API

Amty63 1 Reputation point
2022-03-23T12:59:06.197+00:00

I am getting only IDs information not registeredOwners & registeredUsers details once executed in GraphExplorer /Azure LogicApps.

What's the reason ? Below is the URL, I am running :

URL : https://graph.microsoft.com/v1.0/devices?$select=id,registeredOwners,registeredUsers

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,593 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ShivaniRai-MSFT-7217 2,746 Reputation points
    2022-03-23T14:08:45.643+00:00

    Hi @Amty63 ,

    You can use $expand query parameter to get these properties. Please use below Graph API Endpoints:

    https://graph.microsoft.com/v1.0/devices?$expand=registeredOwners  
    https://graph.microsoft.com/v1.0/devices?$expand=registeredUsers  
    

    Reference Document:
    https://learn.microsoft.com/en-us/graph/api/device-list?view=graph-rest-1.0&tabs=http

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.