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!

    Creating Users with Native API

    Scheduled Pinned Locked Moved Support
    3 Posts 3 Posters 12 Views 1 Watching
    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.
    • J Offline
      jipianu_mihnea_1277
      last edited by

      I want to use the Native API to create users and groups, but I do not know how to generate the password because I am unaware of the hashing algorithm used. Also, when using Users_CreateOrUpdateUser, I do not know the schema for Groups_Xml. Thank you.

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

        Hi @jipianu_mihnea_1277,

        We don't document but if @steviecoaster recently ffigured this out and published a pretty cool library: https://github.com/steviecoaster/InedoOps

        It may do what you already need, so I'd check that out!

        But if not you should be able to find the answers in
        https://github.com/steviecoaster/InedoOps/blob/main/source/public/Security/Users/Set-ProGetUserPassword.ps1

        As a note, the Users_CreateOrUpdateUser is ust a stored procedure, so you could also peek at the code to see what it's doing behind the scenes. Groups is just <groups><group>A</group></groups>

        1 Reply Last reply Reply Quote 0
        • steviecoasterS Offline
          steviecoaster
          last edited by

          @jipianu_mihnea_1277 said in Creating Users with Native API:

          ant to use the Native API to create users and groups, but I do not know how to generate the password because I am unaware of th

          Thanks for the shout-out @atripp! Yes, you can do Set-ProGetUserPassword -Credential (Get-Credential) and supply the username of the account you with to set the password, as well as the new password.

          The New-ProGetUser function will do this internally for you when you pass in the credential object that function expects.

          If you run into trouble, please do file an issue so I can try to fix it!

          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