Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Can I get the username or ID of the currently logged in user using the REST API?

I'm trying to create a custom widget to produce a sorted version of 'My Tasks', but in order to get additional information, like work item dates, I need to get the current users ID or username. Is there any way to do from the client side that through the RQM (ETM) REST API using plain JavaScript? The only implementation's I've seen have either been using the Java Client or the Dojo package (using something like dojo.require("com.ibm.team.repository.web.client.session.Session"); ), neither of which I have access to. I am aware that I can get a list of tasks, but the objects returned don't have all the data that I would like to have. Thanks in advance!


0 votes


Accepted answer

Permanent link

 Hi Mitch I think you can go to https://SERVER:PORT/qm/whoami to get your server use id. Same for the other apps using their context root.

Mitch Slater selected this answer as the correct answer

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
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
Question details
× 10,952
× 152

Question asked: Jun 28 '22, 6:37 p.m.

Question was seen: 1,864 times

Last updated: Jun 29 '22, 9:03 a.m.

Confirmation Cancel Confirm