Community

In script get current users username when user is using the webstation

Hi im looking for a way to get the current users username or principal id when the user is using the web station.

I know about IUserSession but that does not work for web stations.  Is there any other way to get the username?

Thanks

Was this article helpful?

0 out of 0 found this helpful

Comments

1 comment

  • Avatar
    Scott Chau

    You'll have to do a custom script based on the condition of the stage.  Something like this:

     

    if me.Document.StageInfo.StageName = "Stage name here" then
    me.text = FCTools.CurrentUserSession.PrincipalId

    0

Please sign in to leave a comment.