Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi All,
I want to extract all members from all there group of my company for that i create the first function to extract all group that i need :
-------------------------------------------------------------------------------------------------------------------------------------------
()=>
let
body = "{""grant_type"":""password"", ""resource"":""https://graph.microsoft.com/"", ""client_id"":""*****************************"", ""username"":""*******************"", ""password"":""**************"",""client_secret"": ""******************************"" }",
parsed_json = Json.Document(body),
buildQueryString = Uri.BuildQueryString(parsed_json),
Data = Json.Document(Web.Contents("https://login.microsoftonline.com/common/oauth2/token/", [Headers=[#"Content-Type"="application/x-www-form-urlencoded"], Content=Text.ToBinary(buildQueryString)])),
access_token = Data[access_token]
in
access_token
-------------------------------------------------------------------------------------------------------------------------------------------
Everything is ok for the groups
After that i use the first function of the Group list to extract the list of corresponding members
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
knowing that the total number of members of one of the groups are 327, the problem of second function don't give me more then 100 members,
-------------------------------------------------------------------------------------------------------------------------------------------
I use another function to make a filter with an alphabetical order for the letter A
-------------------------------------------------------------------------------------------------------------------------------------------
but i dont get the full list of members that their userPrincipalName begins with A
could you help me pLease to extract the complete list
Solved! Go to Solution.
Hi, @dridifakhri
Try using $top perameter.
Refer: https://learn.microsoft.com/en-us/graph/query-parameters?tabs=http#top-parameter
Proud to be a Super User!
Hi, @dridifakhri
Try using $top perameter.
Refer: https://learn.microsoft.com/en-us/graph/query-parameters?tabs=http#top-parameter
Proud to be a Super User!