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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

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