0
votes

I'm trying to query our repo with git api to get all pull request created by a certain user:

https://tfs.XXXXX.org/tfs/DefaultCollection/Project/_apis/git/pullrequests?searchCriteria.creatorId=domain\\DEF

But I'm still getting pull requests from other users as well:

This is the JSON result:

"value": [
    {
        .....
        "createdBy": {
            "displayName": "ABC",
            ....
            "uniqueName": "domain\\ABC",
        },
        .....
        "createdBy": {
            "displayName": "DEF",
            ....
            "uniqueName": "domain\\DEF",
        },

What am I doing wrong?

1

1 Answers

0
votes

You should give the id, not the uniqueName:

enter image description here