question

RyanWolff-8826 avatar image
0 Votes"
RyanWolff-8826 asked MikeUrnun edited

Get Azure Devops Builds for logged in user

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-webapps-apis
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DSPatrick avatar image
0 Votes"
DSPatrick answered

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.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.