How to access the currently active user informations in a Palantir Foundry code repository?

Hey -

A few options here:

  1. In workshop, you are able to access the user’s multipass attribute (thread)
  2. There is a multipass api (docs)that you can access in typescript functions to get info about a user from a given user id (thread)
  3. In an action, you can directly access the current user and pass it in to an action as a static default value. You can then use value formatting to have the user rid rendered as a name in workshop