How to get user's ObjectID using WSAPI
Document ID :
Last Modified Date :
Show Technical Document Details
CA Agile Central
AGILE CENTRAL SAAS:ACSAAS
How can we receive information, in particular the ObjectID, of users using the WSAPI?
Is there a way to receive same information for the logged on requesting user?
Using WSAPI use this query:
https://rally1.rallydev.com/slm/webservice/v2.0/user?query=( username = MyUserName@MyCompany.com )&fetch=objectid
The above query is requesting the 'objectid' for a specific user (firstname.lastname@example.org). Notice the 'fetch' argument that's requesting the 'objectid'. The result is:
If you omit the Query argument then you it will query the requester's own user object. This example, retrieves the objectid for the logged on user , the one who is making the request:
The above demonstrates how to query a user (or if no user specified then your own user). The 'objectid' can be replaced or extended with any other fields of the user object that you may need to fetch. For example using:
will return objectid , username and email for the user that's queried.
Was this information helpful?