Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting User ID of the logged in user through API

Arun.Prasad
Advocate II

Hello Everyone,

 

Just wanted to check if we have any API calls to get the User ID of the logged in user through the session token. Suppose, if user 'A' is logged into Archer, use the session token of user 'A' to get the User ID of 'A'. Is it possible? I did go through the API documentation, but couldn't find any such methods or samples. Any thoughts here? Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions

Arun.Prasad
Advocate II

OK. I was able to get the User ID without the API call through the custom JavaScript code.

var a = parent.parent.ArcherApp.globals.userId;


But any thoughts on API calls are welcome.

View solution in original post

4 REPLIES 4

Arun.Prasad
Advocate II

OK. I was able to get the User ID without the API call through the custom JavaScript code.

var a = parent.parent.ArcherApp.globals.userId;


But any thoughts on API calls are welcome.

Exactly, global variables are the way:

https://community.rsa.com/message/919950

 

Thanks Ilya Khen I could have saved some time, if I had looked into the mentioned thread.  Thanks as always.