none
Azure, Graph API and Powershell question RRS feed

  • Question

  • Hi,

    We use Azure B2C and when trying to query the B2C with the graph API we have encountered a by design issue, which is that the results only report back with the first 100 results from the directory. 

    https://msdn.microsoft.com/en-us/library/azure/ad/graph/howto/azure-ad-graph-api-supported-queries-filters-and-paging-options

    So i am trying to use the skip token / nextlink option as mentioned above but don't seem to be able to get it trough powershell. 

    This is an extract of the code:

    $uri = "https://graph.windows.net/$tenantname/$($resource)?api-version=1.6"
    $users = Invoke-RestMethod -Uri $uri -Headers $authHeader -Method Get -Verbose

    The output is as in this picture

    When i try and get just the nextlink value it comes up blank

    i've tired

    $users.odata.nextlink

    $users.odata

    $users.nextlink

    the only one i can do is

    $users.value wihch returns the value but not the nextlink value

    any help greatly appreciated


    Regards,

    Denis Cooper

    MCITP EA - MCT

    Help keep the forums tidy, if this has helped please mark it as an answer

    Blog: http://www.windows-support.co.uk  Twitter:   LinkedIn:

    Wednesday, July 26, 2017 1:26 PM

Answers

All replies