Reputation: 5213
I try to query a user including extended properties:
/users/[email protected]?$expand=properties
However I get following error:
Could not find a property named 'properties' on type 'microsoft.graph.user.
Is it possible in one request to get a user
object with all of it's extended properties?
Best scenario would be something like following where I query for the departmentNumber
from the extended properties with direct properties:
/users/[email protected]?$select=companyName,officeLocation,departmentNumber&$expand=properties
Upvotes: 0
Views: 681
Reputation: 33094
This is because, as the message states, there is no property named properties
.
How you retrieve custom properties depends on how they were created. There are two types: Open Extensions and Schema Extensions. Each is stored and behaves a little differently so you'll want to refer to the documentation I linked to for help determining which type you want to use.
Upvotes: 1