What is the equivalent of /rest/api/3/user/bulk/migration?username=xxxx endpoint.

Vinu Charuvil Rajan March 4, 2024

Hello,

 

Could you please point out the equivalent client method of the below endpoint in the Atlassian.SDK nuget package.

 

GET  /rest/api/3/user/bulk/migration?username=xxxx

I would like to get the AccountId of the user by passing their Username. 

1 answer

1 accepted

0 votes
Answer accepted
Marc Koppelaar
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.
March 4, 2024

Hi @Vinu Charuvil Rajan 

Welcome to the community.

In Cloud you can only get users by their ID, not by there username.

Vinu Charuvil Rajan March 4, 2024

Thanks @Marc Koppelaar for your reply. 

Do you mean that the SDK method GetUserAsync doesnt take the Username anymore?

namespace Atlassian.Jira
{
public interface IJiraUserService
{
Task<JiraUser> GetUserAsync(string usernameOrAccountId, CancellationToken token = default(CancellationToken));

...

}

}

Marc Koppelaar
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.
March 5, 2024

@Vinu Charuvil Rajan 

Yes, cloud only uses ID's in relation to the API. This to GDPR and Security guidelines.

Cloud has no SDK build options, this is also stated in the first paragraph of the developer documentation of SDK

You need to build with Forge or Connect, see; Cloud developer

Vinu Charuvil Rajan March 5, 2024

Thanks @Marc Koppelaar for the clarification!

Suggest an answer

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

Atlassian Community Events