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
-
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.
-
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.ps1As a note, the
Users_CreateOrUpdateUseris 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> -
@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-ProGetUserfunction 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!
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