So, I have a JSON object that contains an array of users who are members of a group. I would like to take all of those users and squish them into one nice string and put that string into a sharepoint list.
I THINK I would use compose, but honestly I've never used it before and I have no idea how. Really, the hope is to convert this:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#directoryObjects",
"value": [
{
"@odata.type": "#microsoft.graph.user",
"id": "e3eec502-97a5-47cc-ae81-82c34c4e9b4a",
"businessPhones": [],
"displayName": "User one",
"givenName": "User1",
"jobTitle": null,
"mail": "email@email.com",
"mobilePhone": null,
"officeLocation": null,
"preferredLanguage": null,
"surname": "one",
"userPrincipalName": "user.one@email.com"
},
{
"@odata.type": "#microsoft.graph.user",
"id": "ab02d0c4-5770-4a54-95ec-200fb55dfd27",
"businessPhones": [],
"displayName": "User two",
"givenName": "User2",
"jobTitle": null,
"mail": "email@email.com",
"mobilePhone": null,
"officeLocation": null,
"preferredLanguage": null,
"surname": "two",
"userPrincipalName": "User.two@email.com"
},
{
"@odata.type": "#microsoft.graph.user",
"id": "15610147-ca81-47c3-bd34-ad046ff9ac46",
"businessPhones": [],
"displayName": "User three",
"givenName": "User3",
"jobTitle": null,
"mail": null,
"mobilePhone": null,
"officeLocation": null,
"preferredLanguage": null,
"surname": "three",
"userPrincipalName": "user.three@email.com"
}
]
}
To this
User one, User two, User three
Any ideas or resources I can check out? Thanks.