How can a URL do a lookup of a USER using their USER_ID?

servicenownewbi
Kilo Explorer

Hi,

I'm new to ServiceNow, but have read the 'CTI' page, and 'navigate to url' page because I have to screen pop Service Now in a few different ways. I'm working on a customer instance, and have had difficulting finding a URL that pops Service Now to a page for a specific user:

Example:   USER-LOOKUP, where USER_ID = 206458353

https://<instance>.service-now.com/nav_to.do?uri=sys_user.do?sysparm_query=sys_user=https://<instance>.service-now.com/nav_to.do?uri=sys_user.do?sysparam_query=sys_user=206458353206458353  

 

What am I missing here? I don't have access to any administration pages for Service Now.



Also, if I navigate to a specific URL, for example (https://<instance>.service-now.com/task.do?sysparm_query=number=INC0261581)

how do I add URL parameters to populate additional data on the page?


Thanks!


Claudio

7 REPLIES 7

edwin_munoz
Mega Guru

Hello Claudio,



The url to a direct user profile is:



https://<instance>.service-now/nav_to.do?uri=sys_user.do?sys_id=USERIDHERE



To pre-populate multiple values you use this symbols: "^". Example





https://<instance>.service-now.com/task.do?sysparm_query=number=INC0261581^otherField=otherValue


Hi Edwin,



Thanks for the quick response! However, when I tried what you gave me, it lists 'No Records Found'?


Why would that be?


However, when I used the following from an external application it worked:


 


https://instance.service-now.com/sys_user.do?sys_id=a56d52956f15610023314702be3ee4f5&sysparm_record_...


 


I'm calling this from an external application, so I don't have any idea how I'd get the sys_id... Do I have to query the window for it? I would much rather use a simple URL like the one you provided me.   Do I have to put quotes around the USERIDHERE?




Thanks!


Claudio


Not applicable

To go directly to the page of a user use the following url


https://dev10105.service-now.com/nav_to.do?uri=sys_user.do?sys_id=62826bf03710200044e0bfc8bcbe5df1



To pass values to a new record


https://<baseURL>/nav_to.do?uri=<table name>.do?sys_id=-1%26sysparm_query=<field=value>


Example


https://dev10105.service-now.com/nav_to.do?uri=sys_user.do?sys_id=-1%26sysparm_query=first_name=Laur...


HI Laurens,



Wow, you guys are fast! As I mentioned to Edwin, the lookup with the ID tells me 'no records found', however if I plugin the ID into the search field, I find a user. Do I need anything else to make this query work?



 


https://dev10105.service-now.com/nav_to.do?uri=sys_user.do?sys_id=https://dev10105.service-now.com/nav_to.do?uri=sys_user.do?sys_id=62826bf03710200044e0bfc8bcbe5df1206458353


 




Thanks!


Claudio