Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Delete user with proget api

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 3 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      certificatemanager_4002
      last edited by

      Hello,
      I'm using the ProGet api endpoint DELETE /api/security/users/delete?user=«username» to delete a user. Although the request return a 200 OK response, the user is not removed and still appears in ProGet.

      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @certificatemanager_4002
        last edited by

        Hi @certificatemanager_4002 ,

        My guess is there's some kind of typo with the username you're sending.

        The name is not validated before attempting to delete, which means you can type in any string and a 200 will be returned.

        If you don't send an arggument, you will get an error however.

        I would also try using pgutil security users delete to see if that helps:
        https://docs.inedo.com/docs/proget/api/security/users/delete

        Thanks,
        Alana

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          certificatemanager_4002 @atripp
          last edited by certificatemanager_4002

          @atripp
          Thanks for your quick answer.
          I checked the name and it's correct, I was able to find it into the proget portal.
          I also check the Diagnostics Center but not error appear.
          Do I need to add simple or double quote around the name?
          Does pgutil a better option the api?

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation