5

Is there a way to query the user id given a certain user display name? What about the other way around?

The display name can be changed any time, so the id seem to be the better solution to identify an account. Is it possible to link to the user page by id? (Something like http://www.openstreetmap.org/user?id=xxxx)

asked 22 Nov '11, 15:22

bastik's gravatar image

bastik
5912718
accept rate: 41%

Is there anything new on that topic. Is it still impossible to get a user name from its uid?

(03 Jun '14, 14:03) pgiraud
1

See new answer from me below.

(03 Jun '14, 14:47) SimonPoole ♦

5 Answers:
5

You can't link by id (as Gnonthgol says), but if you want to find an id from a given display name, go to that user's edits page, select a changeset from the list, then view the Changeset XML to find the uid.

permanent link

answered 22 Nov '11, 16:10

EdLoach's gravatar image

EdLoach ♦
18.4k15148267
accept rate: 23%

4

The API has supported a call with the UID as argument for quite a while now. The call returns user information including the user name:

http://www.openstreetmap.org/api/0.6/user/the_uid

This will naturally only give you the current mapping uid->user name and not historic ones.

permanent link

answered 03 Jun '14, 14:47

SimonPoole's gravatar image

SimonPoole ♦
40.0k13297634
accept rate: 19%

edited 03 Jun '14, 15:17

Can't open the link?

(27 Jun '15, 01:37) marla729
(27 Jun '15, 07:05) BCNorwich

Link Simon gave returns "Couldn't find a file/directory/API operation by that name". Link BCNorwich gave is just the normal profile link.

(08 May, 21:06) Richlv

You are slightly, that is 5 years, late :-)

(08 May, 21:27) SimonPoole ♦
4

Do bear in mind that user names can change. If you want to do a search (by current or by historical name or by ID) you can use http://whosthat.osmz.ru .

permanent link

answered 03 Jun '14, 19:00

SomeoneElse's gravatar image

SomeoneElse ♦
33.0k65343778
accept rate: 16%

1

Since this has been nudged to the top of the list again, I might as well explain how I've always done it :)

  • From a user page, click "edits".
  • Click the first changset in the list
  • Scroll down and click "changeset XML"
  • Read the "uid" from that XML - there will be a line with uid="somethingorother" near the top.
permanent link

answered 08 May, 23:59

SomeoneElse's gravatar image

SomeoneElse ♦
33.0k65343778
accept rate: 16%

0

Yes an UID is better. On Odbl here, they might as well have cumulated the merits for the same UID !!!

permanent link

answered 14 Sep '12, 20:45

GentilPapou's gravatar image

GentilPapou
160146
accept rate: 0%

1

This doesn't seem to answer the question, though (and the website is gone by now).

(08 May, 21:07) Richlv

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×186
×48
×42
×3

question asked: 22 Nov '11, 15:22

question was seen: 20,977 times

last updated: 08 May, 23:59

powered by OSQA