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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, knowledge sharing, intentional knowledge sharing playbook, loom, confluence, team collaboration, knowledge management, workplace productivity, information silos, documentation best practices, internal communication, knowledge sharing strategies

Conquer collaboration chaos with Loom + Confluence

You don't need more tools. You need tools that actually work together – the way humans do. See how Loom + Confluence help teams collaborate with more context, more connection, and fewer calendar invites. 💪

See inside
AUG Leaders

Atlassian Community Events