Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can we invite a user via API

padmaja akkinapalli
March 16, 2021

We are working on an automation task, would like to perform the "invite the users" action using API.
I have identifed an API to create user, one for adding user to group but they are missing few fields that are available in UI (front end) but not in API :
1. option to select the user role
2. select the products for which user can be given access
3. mention group membership while creating the user

Other query is "Can we create user and add the him/her to group in with single API call ?"

Please help us with the above queries.

4 answers

1 accepted

1 vote
Answer accepted
codelab expert
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 Champions.
May 15, 2014

Using the backup tools by the database vendor is the better choice. You should save the home folder at the same time you're saving the database. Otherwise it may happen that some attachements are missing on an issue.

You can also save the data by using the XML export. But keep in mind that you can run into out of memory errors when you want to import the data again (Java heap space error) if your XML file is to large.

1 vote
Luciano Fagundes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 15, 2014

Jen,

I second Mathias statement. Using the database vendor backup tools should be the better choice, as contingency you might want to export the XML backup too. You may refer the documentation below to automate the XML backup export on your JIRA instance.

https://confluence.atlassian.com/display/JIRA/Automating+JIRA+Backups

Hope it helps!

Cheers

Luciano

1 vote
Joe Pitt
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 Champions.
May 15, 2014

I strongly advise using the JIRA backup/export tool just before you upgrade. that can always be used to restore your data and configurations. Folks have had mixed luck using database tools.

0 votes
Fabio Racobaldo _Catworkx_
Community Champion
May 15, 2014

Hello Jen,

you can take a look here https://confluence.atlassian.com/display/JIRA/Backing+Up+Data

You can :

- Backup JIRA using internal backup

- Backup JIRA through a script that perform a copy of JIRA HOME folder and a DB dump

Hope this helps,

Fabio

Suggest an answer

Log in or Sign up to answer