Giter VIP home page Giter VIP logo

Comments (4)

hkarthik7 avatar hkarthik7 commented on June 15, 2024

Hiya @jlong23, Let me take a look and get back to you on this. And yes, the typs of $mine query parameter is wrong, I will make changes and push it in next version release.

Teams getTeams(boolean expandIdentity, String mine, int skip, int top) throws AzDException

from azure-devops-java-sdk.

jlong23 avatar jlong23 commented on June 15, 2024

2023-10-27T02:59:22.838-05:00 INFO 3131401 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 1 ms
2023-10-27T02:59:23.288-05:00 INFO 3131401 --- [ient-2-Worker-0] jdk.httpclient.HttpClient : REQUEST: https://dev.azure.com/rabbitearsvideoproduction/_apis/resourceAreas/79134c72-4a58-4b42-976c-04e7115f32bf?api-preview=5.0-preview.1 GET
2023-10-27T02:59:23.414-05:00 INFO 3131401 --- [ient-2-Worker-0] jdk.httpclient.HttpClient : RESPONSE: (GET https://dev.azure.com/rabbitearsvideoproduction/_apis/resourceAreas/79134c72-4a58-4b42-976c-04e7115f32bf?api-preview=5.0-preview.1) 200 HTTP_2 Local port: 54694
2023-10-27T02:59:23.453-05:00 INFO 3131401 --- [ient-2-Worker-0] jdk.httpclient.HttpClient : REQUEST: https://dev.azure.com/rabbitearsvideoproduction/_apis/teams?api-version=7.1-preview.3&$skip=0&$top=100&$mine=true&$expandIdentity=true GET
2023-10-27T02:59:23.586-05:00 INFO 3131401 --- [ient-2-Worker-0] jdk.httpclient.HttpClient : RESPONSE: (GET https://dev.azure.com/rabbitearsvideoproduction/_apis/teams?api-version=7.1-preview.3&$skip=0&$top=100&$mine=true&$expandIdentity=true) 401 HTTP_2 Local port: 54694

For some reason the request is failing with a auth error while get sprints succeed.

2023-10-27T03:01:43.763-05:00 INFO 3131401 --- [ient-2-Worker-2] jdk.httpclient.HttpClient : REQUEST: https://dev.azure.com/rabbitearsvideoproduction/_apis/resourceAreas/1d4f49f9-02b9-4e26-b826-2cdb6195f2a9?api-preview=5.0-preview.1 GET
2023-10-27T03:01:43.896-05:00 INFO 3131401 --- [ient-2-Worker-2] jdk.httpclient.HttpClient : RESPONSE: (GET https://dev.azure.com/rabbitearsvideoproduction/_apis/resourceAreas/1d4f49f9-02b9-4e26-b826-2cdb6195f2a9?api-preview=5.0-preview.1) 200 HTTP_2 Local port: 45008
2023-10-27T03:01:43.899-05:00 INFO 3131401 --- [ient-2-Worker-2] jdk.httpclient.HttpClient : REQUEST: https://dev.azure.com/rabbitearsvideoproduction/Noda-Integration-AzureDevOps-adaptor/Noda-Integration-AzureDevOps-adaptor-TeamA/_apis/work/teamsettings/iterations?api-version=7.1-preview.1 GET
2023-10-27T03:01:44.920-05:00 INFO 3131401 --- [ient-2-Worker-2] jdk.httpclient.HttpClient : RESPONSE: (GET https://dev.azure.com/rabbitearsvideoproduction/Noda-Integration-AzureDevOps-adaptor/Noda-Integration-AzureDevOps-adaptor-TeamA/_apis/work/teamsettings/iterations?api-version=7.1-preview.1) 200 HTTP_2 Local port: 45008

from azure-devops-java-sdk.

hkarthik7 avatar hkarthik7 commented on June 15, 2024

@jlong23, Make sure that the PAT you're using is scoped to Full Access and All accessible organisations are selected. Create a new PAT as below and give it a try.

image

from azure-devops-java-sdk.

jlong23 avatar jlong23 commented on June 15, 2024

Thank-you for helping me with my PaT Authority Mistake. I was shooting for the standard Least Authority Access route and ran into this.

For the limited access I needed for the bridge I have settled for the following.
Screenshot from 2023-10-30 13-23-19
Screenshot from 2023-10-30 13-23-58

I guess I need the PaT Roles next to the API's... I tend to do that in my swagger documentation, but MS is a different beast than the Java World.

Thanks again! I am closing this Issue!

from azure-devops-java-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.