[JIRA] (JENKINS-14605) Simple means to obtain logged in user's id

2019-10-02 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick commented on  JENKINS-14605  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Simple means to obtain logged in user's id   
 

  
 
 
 
 

 
 A build is not generally run with any association with a user whatsoever. The question just does not make sense. If a build happened to be triggered manually by a user (which is not the normal case), that information is already available via UserIdCause.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.145290.1343373483000.243.1570047300219%40Atlassian.JIRA.


[JIRA] (JENKINS-14605) Simple means to obtain logged in user's id

2019-10-02 Thread benjamin.musc...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Benjamin Muschko commented on  JENKINS-14605  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Simple means to obtain logged in user's id   
 

  
 
 
 
 

 
 Jesse Glick Thanks for confirming. Just for my and other people's understanding, could you also provide some technical details on why this functionality is not available?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.145290.1343373483000.237.1570047000207%40Atlassian.JIRA.


[JIRA] (JENKINS-14605) Simple means to obtain logged in user's id

2019-10-02 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick commented on  JENKINS-14605  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Simple means to obtain logged in user's id   
 

  
 
 
 
 

 
 Reread the prior comments. There is no such thing as “the currently logged-in user from a shared library”.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.145290.1343373483000.197.1570043940471%40Atlassian.JIRA.


[JIRA] (JENKINS-14605) Simple means to obtain logged in user's id

2019-10-02 Thread benjamin.musc...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Benjamin Muschko commented on  JENKINS-14605  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Simple means to obtain logged in user's id   
 

  
 
 
 
 

 
 This is still an issue and I don't quite understand why this JIRA ticket has been closed. Could you please clarify how to retrieve the currently logged-in user from a shared library? Is this currently possible or not? Everything I tried so far returns SYSTEM as mentioned above. The behavior is different from the use of those API calls from the Groovy console (which works as expected).  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.145290.1343373483000.9841.1570031340410%40Atlassian.JIRA.


[JIRA] (JENKINS-14605) Simple means to obtain logged in user's id

2019-01-11 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick updated  JENKINS-14605  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-14605  
 
 
  Simple means to obtain logged in user's id   
 

  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Status: 
 Reopened Open  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-14605) Simple means to obtain logged in user's id

2019-01-11 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick resolved as Not A Defect  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 

Remember that these methods are generally only meaningful within the dynamic scope of an HTTP request or CLI command. Use the dev mailing list or IRC if you still have issues.
  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-14605  
 
 
  Simple means to obtain logged in user's id   
 

  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Status: 
 Open Resolved  
 
 
Resolution: 
 Not A Defect  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-14605) Simple means to obtain logged in user's id

2018-12-18 Thread paulone...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Paulo Eduardo Neves reopened an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 The problem persists. The two commands below return SYSTEM when they are run inside a pipeline script.   User.current()Jenkins.getAuthentication().getName()   Currently there is no way get the logged in user from a pipeline.  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-14605  
 
 
  Simple means to obtain logged in user's id   
 

  
 
 
 
 

 
Change By: 
 Paulo Eduardo Neves  
 
 
Resolution: 
 Not A Defect  
 
 
Status: 
 Resolved Reopened  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-14605) Simple means to obtain logged in user's id

2013-03-13 Thread stanislav.bashkirt...@gmail.com (JIRA)














































stanislav bashkirtsev
 commented on  JENKINS-14605


Simple means to obtain logged in users id















I'm trying to use these methods while debugging one of plugins, but it returns SYSTEM. Can you give me a hint here - in what situations that SYSTEM is returned?



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[JIRA] (JENKINS-14605) Simple means to obtain logged in user's id

2012-08-17 Thread jgl...@cloudbees.com (JIRA)















































jglick
 resolved  JENKINS-14605 as Not A Defect


Simple means to obtain logged in users id
















User.current() works for me, e.g. from Groovy console. Also check Jenkins.getAuthentication(). Remember that these methods are generally only meaningful within the dynamic scope of an HTTP request or CLI command. Use the dev mailing list or IRC if you still have issues.





Change By:


jglick
(17/Aug/12 3:29 PM)




Status:


Open
Resolved





Resolution:


NotADefect



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira






[JIRA] (JENKINS-14605) Simple means to obtain logged in user's id

2012-07-27 Thread danki...@comcast.net (JIRA)














































Daniel Kirkdorffer
 created  JENKINS-14605


Simple means to obtain logged in users id















Issue Type:


Improvement



Assignee:


Unassigned


Components:


core



Created:


27/Jul/12 7:18 AM



Description:


I've searched for a means to obtain the id of the currently logged in User, but incredibly this info is not easily queried.

Existing solutions using User.current(), or Cause.UserIdCause() for triggered builds, are not reliable.  User.current() results in SYSTEM whenever I try to use it.  Cause.UserIdCause is only useful to me if I'm able to access it, and when I'm working with slaves it doesn't seem to be set for the master build triggered by a user.

Yet, while I'm hunting around, I can see that the user id is always displaying in the top right corner of the UI, taunting me since it is the information I want, but seemingly not available.

Surely this shouldn't be so hard or obtuse.  If I just had the id, I could look up the User with a User.get(id) and be on my merry way.

Thanks.




Project:


Jenkins



Labels:


jenkins
user
slave




Priority:


Major



Reporter:


Daniel Kirkdorffer

























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira