I am trying to get the user account id via email because I the full name I am given may not not be the full name of the person in Confluence. I need to use a consistent value.
https://xxx.atlassian.net/wiki/rest/api/search?cql=user.email~"xxx@gmail.com"
but I am getting below error :
You can't get a user based on email address via the API ( has been for over a year).
You can only use account ID in the API.
To get a users account ID for a user in Confluence use; get-an-atlassian-cloud-users-account-id
I need the accountID from Confluence. I don't have that value which is why I need to get the user based on some other value such as email or name. The problem is Name may not be consistent between where I am getting it from and Confluence, but email is consistent.
Names are names and systems store them differently using different formats or true fullnames or nicknames, but emails are always consistent.
Would be nice to have the REST call accept getting confluence user by email.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This was there in the early day, but this has been removed, based on security and GDRP guidelines.
This option won't come back.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just ran into this right now (today) I have a name which is a duplicate of another name (meaning two people with the same name) but of course have different emails. Just getting Confluence users by fullname is proving to be difficult because of just being able to use names. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You show a CQL search, and that would find Confluence content, not users. Instead, please try using the Jira find user endpoint to search by email address:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy
Yes this can work, but it will return an account ID, but it won't if this user has access to Confluence?
Then also the following endpoint could be used: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-bulk-migration-get
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I get the following results:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Be aware the option @Bill Sheboy and I gave you need to use the Jira API
So use this as a base url: https://xxx.atlassian.net/rest
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
https://xxx.atlassian.net/rest/api/3/user/search?query=query
This is what I am using and it's not working for me. Get the Page Not Found message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the call you need to provide information like the email address.
Example: https://xxx.atlassian.net/rest/api/3/user/search?query=test@test.com
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This https://xxx.atlassian.net/rest/api/3/user/search?query=myemail@company.com nor this https://xxx.atlassian.net/rest/api/3/user/search?query="myemail@company.com" works
Still get page not found.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Marc - Devoteam -- You are correct about the users' access, and my assumption was the Confluence user set is likely a subset of the Jira ones. If not, other methods are needed.
@Jamie Wolman -- How are you using that endpoint call and with which user's permissions?
For example, if you log into Jira with a browser, open an additional tab, and then paste in that URL, do you get a result? If so, that indicates the way the endpoint is called is the problem and not the call itself.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using POSTMAN which is what I always use to test out my endpoint calls, before I add them to my program (typically Azure Logic Apps). I have Confluence Cloud, not a specific Jira site that I know. I am new to taking over Confluence so I only know what I know at this time but the call does not work I have programmed a work around and a check if I cannot find the user by the fullname per my original endpoint I email myself that I might have to do something manually. But this is a work around and a minor annoyance since I cannot query on the email.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried other endpoint calls with the same credentials using Postman to confirm you are getting any results? This would rule out a permissions problem. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This endpoint works in postman, https://xxx.atlassian.net/wiki/rest/api/search/user?cql=user.fullname~ "xxxx"
This endpoint works in postman, https://api.atlassian.com/users/xxx/manage/lifecycle/disable
My assumption is that the endpoint you gave me does not work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perhaps work with your Site Admin to submit a ticket to Atlassian support if you are seeing inconsistent results with the revised Confluence user search endpoint. If you are on a paid license, you may do that here:
https://support.atlassian.com/contact/#/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.