Example #1
0
        // GET
        public async Task <IActionResult> Index()
        {
            var groups = await _graphServiceClientFactory.GetClient().Groups.Request().GetAsync();

            return(Ok(new
            {
                Groups = groups.Select(g => g.DisplayName)
            }));
        }