Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

debuggerpk May 4, 2013

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

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 5, 2013

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.

0 votes
EddieW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2013

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
AUG Leaders

Atlassian Community Events