Get Azure Devops Builds for logged in user

Ryan Wolff 21 Reputation points
2020-06-10T20:59:55.907+00:00

Hi,

I'm using Azure Devops api endpoint Builds - List to get a list of builds. I would like to filter by the currently logged in user's own builds rather than show them all. I attempted to use Profiles - Get to get the currently logged in user's ID, but that ID gets zero results when used in "requestedFor" parameter of the Builds - List endpoint. When exploring the returned results Builds - List and manually finding my own "requestedFor" section and "id", I noticed the ID in Builds - List does not match the ID returned by the Profiles - Get endpoint.
Am I using the incorrect endpoint to get the user's ID in this case?
Is there a way to get the same type of ID from the Builds - List for a user so that I can filter by the "requestedFor" parameter?

Thank you

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,833 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dave Patrick 426K Reputation points MVP
    2020-06-10T23:12:49.62+00:00

    They're actively answering Devops question in dedicated forums here.

    https://developercommunity.visualstudio.com/spaces/21/index.html

    --please don't forget to Accept as answer if the reply is helpful--


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    0 comments No comments

0 additional answers

Sort by: Most helpful