Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,332,706
Community Members
 
Community Events
169
Community Groups

a way to fetch a list of users against a organization using rest api?

is there a way to fetch and create users on atlassian on-demand products using rest api .. or does the plugin sdk products for atlassian products provide a way to write a plugin for atlassian on demand?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

There are 2 ways to get list of users that work with OnDemand. In either case, be patient as it takes quite a few minutes if your instance has hundreds of users.

Confluence Command Line Interface getUserList action is the best option as it returns all users including their email address when using an administrator account.

confluence --action getUserList --file user-list.csv --outputFormat 2

JIRA Command Line Interface getUserList action requires a group name, but if you use it with group users you will get most of them, but no email. On my instance, all users are in the users group, so you get the same number of users with slightly different information.

jira --action getUserList --file jira-group-users-list.csv --outputFormat 2 --group users

There are also user management actions like addUser.

No, there is no global user listing or create abilities in the REST api. This is answered numerous other places in this site.

https://answers.atlassian.com/questions/82566/is-there-a-rest-api-service-call-that-i-can-use-to-get-a-list-of-all-users

https://answers.atlassian.com/questions/105803/how-do-i-get-users-list-using-rest-api

The closest you'll get is this:https://developer.atlassian.com/static/rest/jira/5.2.7.html#id229496

You can write plugins using the SDK but getting published to ondemand can be difficult as they have a pretty high standard for security, appeal and functionality.

TAGS

Atlassian Community Events