Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

List Tasks

view on GitHub

List Tasks is available as both a pgutil command and an HTTP Request, and will return an list describing all existing Tasks.

Command Specification (CLI)

The security tasks list command is used to list all existing Tasks.

Listing all Tasks requires no additional options:

pgutil security tasks list

Example output:

Task:
Description: Allows access to manage feed settings, delete packages, and overwrite packages.
Attributes:
 * Feeds_ViewFeed
 * Feeds_DownloadPackage
 * Feeds_DeletePackage
 * Feeds_AddPackage
 * Feeds_PullPackage
 * Admin_ManageConnectors
 * Admin_ManageFeed
 * Feeds_OverwritePackage
 * Feeds_AcceptPackagePromotions
 * Feeds_UnlistPackage

Task:
Description: Allows access to create, edit, and resolve issues on projects and releases
Attributes:
 * Projects_UploadSbom
 * Projects_View
 * Projects_Manage
 * Projects_ResolveIssue

Task:
Description: Allows access to promote packages to a specified feed of the same feed type. Users granted this task should also be granted at least the View & Download Packages task for the source feed.
Attributes:
 * Feeds_ViewFeed
 * Feeds_DownloadPackage
 * Feeds_AddPackage
 * Feeds_AcceptPackagePromotions

...

HTTP Request Specification

To list all Tasks, simply GET to the following URL with an appropriate API Key:

GET /api/security/tasks/list

HTTP Response Specification

An array of SecurityTask (see SecurityTask.cs) objects will be returned on a successful 200 response. A 403 response indicates a missing, unknown, or unauthorized API Key.