Hello everyone,
I've been exploring the recently introduced Graph API endpoints for customizing user profiles in Office 365. Specifically, I'm interested in the /beta/users/{id}/extensions endpoint and its capabilities for adding custom attributes.
I've managed to successfully create a simple extension with a string property, but I'm encountering issues when trying to add a complex object as a property. The documentation mentions support for complex types, but the examples are a bit sparse.
Has anyone had success with this? I'm trying to achieve something like this structure:
{
"@odata.type": "#microsoft.graph.openTypeExtension",
"extensionName": "com.example.mydata",
"departmentName": "Engineering",
"projectDetails": {
"projectName": "Phoenix",
"startDate": "2023-10-01",
"teamMembers": ["Alice", "Bob"]
}
}
When I send a POST request with this payload, I'm getting a 400 Bad Request with a message about invalid property type. Any insights or examples would be greatly appreciated!