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_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>
-
@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!