Not able to retrieve user account id using compound names

mauricio May 21, 2021

Hi there,

I'm not being able to retrieve account IDs for compound usernames using the REST v3 API. This actually works for single usernames but compounds

for instance:

Assuming there a username named "foo.bar"

If I hit this endpoint

https://caylent.atlassian.net/rest/api/3/user/bulk/migration?username=foo.bar

 

I'm getting an unknown response

 

[{username: "foo.bar",accountId: "unknown"}]

 

This is not happening for single usernames 

 

Any hints on what shall I do?

 

Thanks in advance

 

 

1 answer

1 accepted

1 vote
Answer accepted
Bill Sheboy
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 21, 2021

Hi @mauricio  -- Welcome to the Atlassian Community!

As that method is experimental for v3 and that parameter has been deprecated, you may want to try another approach:

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-bulk-get

username

Array<string>

This parameter is no longer available and will be removed from the documentation soon. See the deprecation notice for details.

 

Best regards,

Bill

Suggest an answer

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

Atlassian Community Events