Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×addUser (if user isn't already defined to Stash) and addUserToGroup from Stash Command Line Interface. Use runFromList if you have a simple list of user to add or one of the other run actions if the data is available as csv or sql.
Thank you guys.. i will try out and give you an update
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
addUser (if user isn't already defined to Stash) and addUserToGroup from Stash Command Line Interface. Use runFromList if you have a simple list of user to add or one of the other run actions if the data is available as csv or sql.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rahul,
I'd recommend using the Stash REST API to add the users to the group. The following resource allows you to add multiple users to a group at once:
POST /rest/api/1.0/admin/groups/add-users
The request payload should specify a group and the usernames to add, e.g.:
{ "group": "group", "users": [ "user2", "user1" ] }
See the documentation for that REST resource for more details: https://developer.atlassian.com/static/rest/stash/2.11.2/stash-rest.html#idp201344
If you're unfamiliar with REST, you may find this document helpful: https://developer.atlassian.com/stash/docs/latest/how-tos/command-line-rest.html
cheers,
Tim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you guys.. i will try out and give you an update
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tim,
I do not see the add-users api under the list of availabel apis in stash, i see only add-user. I tried adding mutiple user to this existing api, but this allows only one user addition at a time. please help me understand how to get the add-users apri on stash.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rahul,
I was under the impression that you were trying to bulk add users that already existed in Stash to a particular group.
If you haven't already created the users in Stash, you will first need to create them using the create user REST API:
https://developer.atlassian.com/static/rest/stash/2.11.2/stash-rest.html#idp296128
There is no API for creating more than one user at a time, so I would recommend creating a script that makes a single request for each user that you want to create.
cheers,
Tim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.