Forums

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

How can we get the user Account Id in confluence cloud via email id ?

d_b_kumar_chauhan January 9, 2025

Hi All,

I am trying to get the user account id via email because I did not have the full name of the user to provide the space permission using below API

 

https://aidtdmtrename.atlassian.net/wiki/rest/api/search?cql=user.email~"xxx@gmail.com"&start=0&limit=1000

but we are getting below error :  

 

{
    "statusCode": 400,
    "data": {
        "authorized": true,
        "valid": true,
        "errors": [],
        "successful": true
    },
    "message": "com.atlassian.confluence.api.service.exceptions.BadRequestException: No field exists with the name: 'user.email' Did you mean one of : user.fullname, user.accountid, user"
}


Can anyone help me on the same. 

1 answer

0 votes
Aaron Pavez _ServiceRocket_
Community Champion
January 9, 2025

Hi @d_b_kumar_chauhan 

It seems the user.email doesn't work. Can't find documentation on that one.

https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-users/#api-wiki-rest-api-user-email-get

But the full name does work:

https://adpbcj.atlassian.net/wiki/rest/api/search?cql=user.fullname~"aaron"

The email asks for the account ID.

email?accountId={accountId}'

Regards

Jamie Wolman
Contributor
September 10, 2025

Sadly using the full name does not work as we have multiple systems that store the full name differently (be it a true full name or a nickname, etc.) that chances are this will not work 100% of the time. Whereas email is consistent across these systems, why can't we have this work to get user by email?

Suggest an answer

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

Atlassian Community Events