Navigation

    Inedo Community Forums

    Forums

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. vfortin
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by vfortin

    • RE: Restricting API access to View/Download

      The team in question was already using apt but was looking for an alternative since they had less parsing to do to get the information relevant to them with the native API call rather than using apt show. But since using the native API is not a viable option as you have confirmed me and we'd instead need a third party API they'll keep using apt.

      Thank you for your input.

      posted in Support
      vfortin
      vfortin
    • Restricting API access to View/Download

      Hello, I'm trying to grant access to view and download Debian packages from our feed for another team but haven't been successful in doing so without also granting Delete/Update/Upload privileges.

      This was with the native API, by using the Impersonate User field and by selecting a user with distinct privileges and restrictions set up. Since I'm not able to setup the permissions doing so and the usage of the native API does not seem recommended either way I'm now trying to accomplish my task with the Feed API. However I haven't been able to replicate the queries I was doing with the native API.

      Here is the request I'd like to give them access to:

      <server>/api/json/DebianPackages_GetPackageVersions?key=<key>
      

      And the request I'm using to make sure they don't actually have the permission to delete a package of the same type:

      <server>/api/json/DebianPackages_DeletePackage?key=<key>&Feed_Id=<feedId>&Component_Name=<componentName>&Package_Name=<packageName>&Architecture_Name=<architectureName>&Version_Text=<versionText>
      

      Going through the documentation (https://docs.inedo.com/docs/proget/reference/api) I'm not seeing a page named "Feed API" as mentionned on the API Keys page, therefore I am not sure how to structure my requests.

      I've also went through pages of the forum and found this thread: https://forums.inedo.com/topic/2906/understanding-the-api-for-nuget-packages but I remain confused, as when trying to use the OData query I received a 404 OData method is not implemented (not that I necessarily want OData, I only want to access the Feed API).

      posted in Support
      vfortin
      vfortin
    • 1 / 1