Forums

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

About the REST API:How can I get accountID?

韦哲
February 3, 2021

Hi Atlassian Team, 

I‘m developing an service system on JIRA,I need add some users to some groups,the API tells that I should use API“add user to group”,but the parameter——’accountId‘ is required,where should I get it? I’m try to use API“get accountid”, but the parameter——"username" is required, where can I get it?

And I try to use ‘query’,for example:

jira01.jpg

But I still cant get it

02.jpg

Thanks.

2 answers

1 accepted

0 votes
Answer accepted
Norman Abramovitz
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.
April 9, 2012

The current tie in between the respository and the project is the project prefix. I would suggest adding code to your subversion checkin/checkout process that would check to make sure the wrong prefix cannot be used. It is too late if the Jira background process finds this out because the damage (mixing respositories) has already been done.

Subversion supports pre and post scripts that can be executed for this validation. It is fairly easy to do, but getting the change out to users may be more of the headache depending on the number of different subversion clients you support and the number of people with access to the respository.

0 votes
JamieA
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.
April 9, 2012

You can't do that, and I don't think it should be necessary to. Each committer should only use the keys from their project, and if they're fixing a bug in another project, then fair play...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events