NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

8
2

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
6513919
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 ♦

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 ♦
19.5k16156280
accept rate: 22%

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 ♦
36.9k71370866
accept rate: 16%

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 ♦
44.7k13326701
accept rate: 18%

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 '20, 21:06) Richlv

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

(08 May '20, 21:27) SimonPoole ♦

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 '20, 23:59

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

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 '20, 21:07) Richlv

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

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:

×219
×57
×55
×4

question asked: 22 Nov '11, 15:22

question was seen: 27,173 times

last updated: 08 May '20, 23:59

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum