Labels

Get the current user's username

1
2
from System.Threading import Thread 
print Thread.CurrentPrincipal.Identity.Name 

2 comments:

  1. Do you know of a way to get the user's spotfire ID? Like in implementations that are not using windows authentication. Thanks.

    ReplyDelete
  2. In the social jungle of human existence, there is no feeling of being alive without a sense of identity. See the link below for more info.

    #identity
    www.ufgop.org

    ReplyDelete