microsoftgraph / aspnet-snippets-sample

A repository of code snippets that use Microsoft Graph to perform common tasks such as sending email, managing groups, and other activities from an ASP.NET Core MVC app. This sample uses the Microsoft Graph .NET Client Library to work with data, and the Microsoft Identity Web Library for authentication on the Microsoft identity platform v2.0 endpoint.
MIT License
189 stars 101 forks source link

Question: How to get the group picture along with group properties #39

Closed ymihir closed 4 years ago

ymihir commented 6 years ago

I am able to retrieve all the required properties for all the group. To get the group image I have created another method. I am calling this method inside above all groups loop. Of course I am getting output and show the group name along with Image, but it is taking close to 20-25 secs since getGroupImage method is calling inside all groups loop. My actual question is how to get the group image along with the group properties. If I see in the documentation there is no property mentioned about group image. How to get the group properties along with image in single call?

jasonjoh commented 4 years ago

You can't. Photo requires a separate call.