You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@devlake.apache.org by "bygones123 (via GitHub)" <gi...@apache.org> on 2026/01/26 14:50:16 UTC

[I] [Question][Module Name] Question title [incubator-devlake]

bygones123 opened a new issue, #8691:
URL: https://github.com/apache/incubator-devlake/issues/8691

   <!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at
   
       http://www.apache.org/licenses/LICENSE-2.0
   
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
   -->
   
   ## Question
   I like to add Azure Devops connction and added succesfully a scoped token. It loads the repositories, but fails to collect data. Unfortunately the message is quite unredable (see screenshit), but if I see it correctly, it complaints about the Access Token (to check the token). 
   
   Does the token require specific permissions ? as the repo retrievaö is working, I expect that for data collection, there is more needed.
   
   Also, on the connection page the button "Associate Scope Config" is disablef without any indication why and how to enable it.
   
   Thanks for your support
   
   <img width="1263" height="882" alt="Image" src="https://github.com/user-attachments/assets/2c7a19d7-798c-48c3-a2cc-090477dbc21e" />
   <img width="407" height="226" alt="Image" src="https://github.com/user-attachments/assets/19ef3466-bd8f-4435-812f-62a339e1f527" />
   
   ## Additional context
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Question][Azure DevOps Connection] Fails with long and unclear message [incubator-devlake]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #8691:
URL: https://github.com/apache/incubator-devlake/issues/8691#issuecomment-3799993627

   <!-- Answer -->
   For DevLake to collect Azure DevOps data (beyond just listing repositories), your Personal Access Token (PAT) must have the "Full access" scope and be created with "All accessible organizations" selected in the Organization field. Repository read access alone isn't enough—data collection covers pipelines, jobs, pull requests, and more, which require broader permissions. If your PAT is expired, invalid, or missing these scopes, you'll see authentication errors like HTTP 401 during data collection. See the official guidance for details: [DevLake Azure DevOps token requirements](https://github.com/apache/incubator-devlake/blob/main/config-ui/public/onboard/step-2/azuredevops.md).
   
   The "Associate Scope Config" button is only enabled if the plugin supports scope config association. If it's disabled, it's likely because the Azure DevOps plugin or your current configuration doesn't support this feature. The button becomes active when scope config is available and supported by the plugin logic in the UI codebase.
   
   If you can't select "All accessible organizations" when creating the PAT, that's a restriction from your Azure DevOps organization or admin policy, not DevLake. In that case, you may need to contact your Azure DevOps admin to adjust permissions if you need broader access [details](https://github.com/apache/incubator-devlake/discussions/8683).
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/821e4ed4-6ccf-4103-b2b2-65074ef2d290?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/821e4ed4-6ccf-4103-b2b2-65074ef2d290?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/821e4ed4-6ccf-4103-b2b2-65074ef2d290?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/821e4ed4-6ccf-4103-b2b2-65074ef2d290?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/821e4ed4-6ccf-4103-b2b2-65074ef2d290?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/821e4ed4-6ccf-4103-b2b2-65074ef2d290?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/821e4ed4-6ccf-4103-b2b2-65074ef2d290?feedback_type=other)</sup>
   
   [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=For%20DevLake%20to%20collect%20Azure%20DevOps%20data%20%28beyond%20just%20listing%20repositories%29%2C%20your%20Personal%20Access%20Token%20%28PAT%29%20must%20have%20the%20%22Full%20access%22%20scope%20and%20be%20created%20with%20%22All%20accessible%20organizations%22%20selected%20in%20the%20Organization%20field.%20Repository%20read%20access%20alone%20isn%27t%20enough%E2%80%94data%20collection%20covers%20pipelines%2C%20jobs%2C%20pull%20requests%2C%20and%20more%2C%20which%20require%20broader%20permissions.%20If%20your%20PAT%20is%20expired%2C%20invalid%2C%20or%20missing%20these%20scopes%2C%20you%27ll%20see%20authentication%20errors%20like%20HTTP%20401%20during%20data%20collection.%20See%20the%20official%20guidance%20for%20details%3A%20%5BDevLake%20Az
 ure%20DevOps%20token%20requirements%5D%28https%3A//github.com/apache/incubator-devlake/blob/main/config-ui/public/onboard/step-2/azuredevops.md%29.%0A%0AThe%20%22Associate%20Scope%20Config%22%20button%20is%20only%20enabled%20if%20the%20plugin%20supports%20scope%20config%20association.%20If%20it%27s%20disabled%2C%20it%27s%20likely%20because%20the%20Azure%20DevOps%20plugin%20or%20your%20current%20configuration%20doesn%27t%20support%20this%20feature.%20The%20button%20becomes%20active%20when%20scope%20config%20is%20available%20and%20supported%20by%20the%20plugin%20logic%20in%20the%20UI%20codebase.%0A%0AIf%20you%20can%27t%20select%20%22All%20accessible%20organizations%22%20when%20creating%20the%20PAT%2C%20that%27s%20a%20restriction%20from%20your%20Azure%20DevOps%20organization%20or%20admin%20policy%2C%20not%20DevLake.%20In%20that%20case%2C%20you%20may%20need%20to%20contact%20your%20Azure%20DevOps%20admin%20to%20adjust%20permissions%20if%20you%20need%20broader%20access%20%5Bdetails%5D%28h
 ttps%3A//github.com/apache/incubator-devlake/discussions/8683%29.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8691)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Question][Azure DevOps Connection] Fails with long and unclear message [incubator-devlake]

Posted by "bygones123 (via GitHub)" <gi...@apache.org>.
bygones123 commented on issue #8691:
URL: https://github.com/apache/incubator-devlake/issues/8691#issuecomment-3801124240

   But I used " Azure DevOps Go", which allows me to configure a PAT with an organisation, but it seems to still miss then the permissions which you mentioned. I am a little bit reluctant to provide full permissions for an external tool. Why does the integration requires more than read access for the Azure DevOps information ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Question][Azure DevOps Connection] Fails with long and unclear message [incubator-devlake]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #8691:
URL: https://github.com/apache/incubator-devlake/issues/8691#issuecomment-3801136718

   <!-- Answer -->
   DevLake needs more than just repository read access because it collects a wide range of data from Azure DevOps—not just code, but also builds, pipelines, pull requests, releases, and user/account info. This means the Personal Access Token (PAT) must have read access to multiple scopes: Build, Code, Graph (for user/account info), and Release. Without these, DevLake can't fetch all the data needed for metrics and dashboards, and you'll see authentication errors during collection—even if repo listing works fine. See the required scopes in the plugin docs ["Read access to the following Azure DevOps Scopes is required: Build, Code, Graph, Release"](https://github.com/apache/incubator-devlake/blob/main/backend/plugins/azuredevops_go/README.md).
   
   You do not need to grant "full access" or use a global PAT—DevLake supports organization-scoped PATs, so you can limit the token to just the organization you want to connect (by specifying the org in the connection settings). The "all accessible organizations" requirement in some docs is outdated and not a technical limitation ["You can use an organization-scoped PAT by specifying the organization in the connection settings"](https://github.com/apache/incubator-devlake/issues/8673).
   
   For security, best practice is to use an org-scoped PAT, restrict it to only the required scopes (Build, Code, Graph, Release), set a short expiration, and rotate it regularly. This limits exposure while still allowing DevLake to collect the data it needs.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/0e335b54-baac-47b7-82d8-e24753d0e261?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/0e335b54-baac-47b7-82d8-e24753d0e261?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/0e335b54-baac-47b7-82d8-e24753d0e261?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/0e335b54-baac-47b7-82d8-e24753d0e261?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/0e335b54-baac-47b7-82d8-e24753d0e261?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/0e335b54-baac-47b7-82d8-e24753d0e261?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/0e335b54-baac-47b7-82d8-e24753d0e261?feedback_type=other)</sup>
   
   [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=DevLake%20needs%20more%20than%20just%20repository%20read%20access%20because%20it%20collects%20a%20wide%20range%20of%20data%20from%20Azure%20DevOps%E2%80%94not%20just%20code%2C%20but%20also%20builds%2C%20pipelines%2C%20pull%20requests%2C%20releases%2C%20and%20user/account%20info.%20This%20means%20the%20Personal%20Access%20Token%20%28PAT%29%20must%20have%20read%20access%20to%20multiple%20scopes%3A%20Build%2C%20Code%2C%20Graph%20%28for%20user/account%20info%29%2C%20and%20Release.%20Without%20these%2C%20DevLake%20can%27t%20fetch%20all%20the%20data%20needed%20for%20metrics%20and%20dashboards%2C%20and%20you%27ll%20see%20authentication%20errors%20during%20collection%E2%80%94even%20if%20repo%20listing%20works%20fine.%20See%20the%20required%20scopes%20in%20
 the%20plugin%20docs%20%5B%22Read%20access%20to%20the%20following%20Azure%20DevOps%20Scopes%20is%20required%3A%20Build%2C%20Code%2C%20Graph%2C%20Release%22%5D%28https%3A//github.com/apache/incubator-devlake/blob/main/backend/plugins/azuredevops_go/README.md%29.%0A%0AYou%20do%20not%20need%20to%20grant%20%22full%20access%22%20or%20use%20a%20global%20PAT%E2%80%94DevLake%20supports%20organization-scoped%20PATs%2C%20so%20you%20can%20limit%20the%20token%20to%20just%20the%20organization%20you%20want%20to%20connect%20%28by%20specifying%20the%20org%20in%20the%20connection%20settings%29.%20The%20%22all%20accessible%20organizations%22%20requirement%20in%20some%20docs%20is%20outdated%20and%20not%20a%20technical%20limitation%20%5B%22You%20can%20use%20an%20organization-scoped%20PAT%20by%20specifying%20the%20organization%20in%20the%20connection%20settings%22%5D%28https%3A//github.com/apache/incubator-devlake/issues/8673%29.%0A%0AFor%20security%2C%20best%20practice%20is%20to%20use%20an%20org-scoped%
 20PAT%2C%20restrict%20it%20to%20only%20the%20required%20scopes%20%28Build%2C%20Code%2C%20Graph%2C%20Release%29%2C%20set%20a%20short%20expiration%2C%20and%20rotate%20it%20regularly.%20This%20limits%20exposure%20while%20still%20allowing%20DevLake%20to%20collect%20the%20data%20it%20needs.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8691)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Question][Azure DevOps Connection] Fails with long and unclear message [incubator-devlake]

Posted by "bygones123 (via GitHub)" <gi...@apache.org>.
bygones123 closed issue #8691: [Question][Azure DevOps Connection] Fails with long and unclear message
URL: https://github.com/apache/incubator-devlake/issues/8691


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org