Can I get the accountId from the API, when I only know the email or Display name

Luka Simon Thies
Contributor
January 20, 2025

Hey there.

I want to automate some tasks and I need to update a pate and tag certain users.

I can mention them with their accountId, as far, as I understand, but I need to somehow get these only from their Display name or email address.

 

Is there a solution for this?

1 answer

1 accepted

4 votes
Answer accepted
Manoj Gangwar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 20, 2025
Luka Simon Thies
Contributor
January 20, 2025

When I try that, I get an 400 error

Screenshot 2025-01-20 122038.png

Manoj Gangwar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 20, 2025
Like # people like this
Luka Simon Thies
Contributor
January 20, 2025

Thank you, this works for the email.
Would this also work when I only have a Display name for example?

I tried it with "firstname%20lastname" and with "firstname+lastname", but that returns all users that have either of those in their name.

Manoj Gangwar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 20, 2025

Unfortunately, this behavior makes it difficult to retrieve a specific user if multiple users share parts of the name. There isn't a built-in way to force an exact match using this endpoint.

Luka Simon Thies
Contributor
January 20, 2025

Okay, then I'll have to get around that somehow.

But thank you for your help. 

Like Manoj Gangwar likes this

Suggest an answer

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

Atlassian Community Events