Hi @Dishant Sharma ,
In the Users&Security->User you can search a user based on username or email. So, as a Confluence Admin, if you go to Administration -> User Management -> Users you can perform that action by yourself.
Hope this helps,
Fabio
@Fabio Racobaldo _Herzum_ Thanks for the reply. Actually, I was looking for a REST API so that I can use the returned username inside my code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Dishant Sharma ,
you can try this Rest API https://docs.atlassian.com/software/jira/docs/api/REST/9.3.0/#api/2/user-findUsers
Hope this helps,
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Fabio Racobaldo _Herzum_ the API you provided is for Jira, but @Dishant Sharma is asking for Confluence. Unless the latter really wants for Jira and he mistakenly stated Confluence. Can the above work for Confluence?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are right @Alex Koxaras _Relational_ . It seems to be not existing for Confluence.
I found the following ticket https://jira.atlassian.com/browse/CONFSERVER-47399 that seems to be be fixed without a suggestion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nice @Fabio Racobaldo _Herzum_ and thank you for sharing this! It would be great if they would the endpoint as well.. :/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could get it by using scriptrunner. What do you want to achieve?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Alex Koxaras _Relational_ thank you so much for the reply. Actually, I want to get a user's name on the basis of their email. I will have the list of user emails in a confluence instance and I want to fetch their username so that I can use it for making other API calls to get some more details about that particular user. I will also have the required administrative privileges to make such API calls.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Dishant Sharma I don't get it..
A user will send you an email.
You want from that email to get the users' username automatically (?).
And make some API requests.
Correct?
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.
Sorry but the above logic it doesn't make sense to me...
If you want to get the user's username from an email you got in your email inbox, then Confluence is not the place to look for. I think that you have not setup the proper stage for us. I mean that I can understand your request (get the user's username) but you haven't told us from where you want to get this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Alex Koxaras _Relational_ sorry, actually I mean I want an API in which I can pass the user's mail as a query parameter and I can get back the user's username associated with that email address.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the clarification! Try the following then:
/rest/prototype/1/user/non-system/USERNAME
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.