Add Users to JSM Organization via API

Mathew Lederman
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.
February 14, 2025

Can somebody tell me what I'm missing for adding users to a JSM Organization through the API?

I've tried to follow the documentation here but get an error message "could not find accountIDs". These are the users' Atlassian account ID's, right?

I also can't tell from the documentation if I need to add "qm:" in front of the account ID for some reason, though I tried with and without the prefix and get the same error.

H5Mg68koRw.png

1 answer

1 accepted

3 votes
Answer accepted
Aaron Pavez _ServiceRocket_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 14, 2025

Hi @Mathew Lederman 

Try this:

{
"accountIds": [
    "5cebb63244b40b0f28dd69f6"
]
}

You will get a 204 reply but it will add the user to the org.

Get your user ID by going to top right -> profile -> check URL

Regards

Mathew Lederman
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.
February 14, 2025

@Aaron Pavez _ServiceRocket_ sorry, I'm not sure how what you provided is different than the screenshot. I pixelated the Account ID for privacy reasons, but I did provide a valid Atlassian account ID in my POST and still got the below error message.

{

    "errorMessage": "Could not find accountIds: [redacted]",

    "i18nErrorMessage": {

        "i18nKey": "sd.request.participants.validation.missing.account.ids",

        "parameters": [

            "[redacted]"

        ]

    }

}
Aaron Pavez _ServiceRocket_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 14, 2025

Hi

I can only think that the account id is not valid. Just tested it and it works.

double-check the ID by going to your profile.

Test it with your ID.

Or the user you are adding to the JSM organization doesn't have permission on the JSM project.

Regards

Mathew Lederman
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.
February 14, 2025

You're absolutely right, it seems I mis-copied the account ID. 

Thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events