Azure DevOps Permissions Report - going beyond the default count of 100 - azure-devops

I am trying to use the Azure DevOps Permissions Report - List REST API to download a list of permission reports that were generated by me. The subsequent operation is to download each report. The issue I am facing is 'List' provides only 100 reports at once. I can't seem to get more than 100 reports by supplying parameters like $top, $skip as suggested in a few discussions. There is no x-ms-continuation-token either. As I am using this approach to generate permissions report for Azure Repos, the number of reports are really large, well beyond 100.

It seems that this REST API Permissions Report - List has not yet been fully implemented:
And there is no x-ms-continuation-token parameter and so on as you have found. See thread for more details.
BTW, you could submit your feedback here, so the author could review it.

Related

Limiting the number of requests from a valid user in Azure Devops

I have a scenario where a user with a valid Personal Access Token makes thousands of calls to create work items in Azure DevOps. I went through all the documentation but couldn't find anything. One can enable conditional access but that would not cover this. The rate-limits etc are all default and there is no option to control those. Is there a way to control the number of requests a valid user can make?
Is there a way to control the number of requests a valid user can make?
I am afraid there is no such way to do this at this moment.
In my personal opinion, this request is reasonable.
You could add your request for this feature on our UserVoice site (https://developercommunity.visualstudio.com/report?space=21&entry=suggestion), which is our main forum for product suggestions. Thank you for helping us build a better Azure DevOps.

Retrieve Report Comments using the Smartsheet API

I can successfully use the Smartsheet API to retrieve Comments from Sheets, but I'm struggling to do so for Comments on Reports.
I'm stuck at the point of retrieving a Report's Discussions using the https://api.smartsheet.com/2.0/reports/{reportId}?pageSize=10&page=0&include=discussions. This API call successfully returns the Discussions themselves, but not the entire thread of Comments.
The documentation specifies to use the GET /sheets/{sheetId}/discussions/{discussionId}?include=comments, however it seems as though I can only list the Discussions of a Sheet and not a Report as I don't believe /reports/{reportId}/discussions is an endpoint that the Smartsheet API exposes. It also doesn't seem as though the /reports/{reportId} endpoint accepts include=comments either.
Any thoughts on how I can retrieve the full comments of a Report?
Reports in Smartsheet are always tied to a sheet, so any comment on a report will be shown in the source sheet. You should retrieve the comments from the source sheet for the report you're working in.

How do you make Test and Code Coverage publicly available

How do you make Test and Code Coverage from the Azure Devops publicly available, so (anonymous, without an MSDN account) users can see the results without having to have an account on your organization? I tried fiddling with the "Readers" settings within Azure DevOps but no luck. Typically, when users don't have an account the Code Coverage will load indefinitely and the Test tab is not shown.
Question 2: how can I provide a direct link (url) to my latest code-coverage for a specific build definition? Using Shield.io i was able to get a badge for the code-coverage but i also would like to provide a direct link to the report.
shields.io link to badge: https://img.shields.io/azure-devops/coverage/OffTheRecordv4/OTRv4/1
This is the project:
https://dev.azure.com/OffTheRecordv4/OTRv4/_build?definitionId=1&_a=summary
and the shield.io badge can be viewed here:
https://github.com/southernsun/otr
when logged in:
When logged out (spinning wheel never stops and nothing loads):
Thanks!
UPDATE
I created a feature request, feel free to support the request: https://developercommunity.visualstudio.com/idea/1069707/allow-code-coverage-and-test-plan-tabs-accessible.html
According to your description, you are working with a public project. A public project allows non-members of a project and users who aren't signed in read-only, limited access to the project's artifacts and services. Check the following table:
To contribute to a public project, you must be added as a member of that project and assigned either Stakeholder, Basic, or Basic + Test Plans access. The access level determines the user interfaces you can access. If you want users to access Test, you would need to assign Basic + Test Plans access to them.
Regarding how to get code coverage link, you may try Code Coverage - Get Build Code Coverage API, which would give you codeCoverageFileUrl in response.

Can You Get Project Startdate from Azure DevOps REST API?

I'm trying to query the Azure Devops REST API to see when a project first came into existence and, perhaps, who created it. I'm using the link below and my results do match the documentation which, unfortunately, doesn't include create date. Is there any other ways to query AzDo REST API to get this data?
https://learn.microsoft.com/en-us/rest/api/azure/devops/core/projects/get%20project%20properties?view=azure-devops-rest-5.1
I am afraid there is no rest api to get the start date of project. The start date property is not included in the returned results of Get Project Api.
This issue has been reported to Microsoft develop team. You can vote up this thread or submit a new feature(Click Suggest a feature and choose Azure Devops).

Export of discussion notes from Azure DevOps

Is there a way to export discussion notes from Azure DevOps Work items like Task/Bug etc. Or is there a way in Azure DevOps to get a consolidated web view of discussion? Or can you suggest any extensions that help achieve this?
Checked Azure DevOps for getting the dump through query which did not work
Using the rest api below, you can get the comments records of multiple work items from the response body.
GET https://dev.azure.com/{organization}/{project}/_apis/wit/workitems?ids={ids}&api-version=5.1
But the flaw of this rest api is that it can't display all the comment records, only display the latest comment of this work item.
If you want to get all the comments of a work item, you need to use the rest api below. However, the drawback of this rest api is that it can only return all the comments of a work item, and cannot display the comments records of multiple work items.
GET https://dev.azure.com/{organization}/{project}/_apis/wit/workItems/{id}/comments?api-version=5.0-preview.2