I believe that you meant create users in Stash by saying "add users to Stash", right?
Please refer to this REST API in order to create users in Stash. The example below will create the user with the following characteristics:
$ curl -H "Content-Type:application/json" -H "Accept:application/json" --user admin:admin -X POST 'http://localhost:7990/rest/api/1.0/admin/users?name=testuser4&password=testuser4&displayName=Test%20User%204&emailAddressemail@example.com&addToDefaultGroup=false'
To add the created users to a group, please follow the guidelines I posted on this answer here.
I hope that info is helpful to you!
Atlassian Support - DevTools
Hi Thiago, I believe what Susant asked was, to create the users inside Stash. Not in a group inside Stash. Just as we discussed before, with the help of REST API, addition of users into a Stash group is possible. But the same can be applied to Stash in general? That is, can we create 300 users in Stash in a single go. (These users are not in Stash now) Do we have a plug in to import the users from some kind of file (.csv) to Stash and create them in it? Regards, -Jewel
Hi Jewel, This cURL call above will create a user inside Stash. If you create a script with 300 cURL calls like the one above you will be able to create 300 users. You will have to create a script to parse your CSV file and generate the cURL call commands above. There is no plugin to do that. As I explained the cURL call above creates a user with those characteristics. Let us know how you go. Best regards, Thiago Bomfim Atlassian Support
Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs