automatically retrieve name of shiny user on RConnect

Hello, how can one retrieve unique identifiers of users on RStudio Connect without requiring a manual entry or login step? I have tried accessing user_guid via the API, but it only captures a guid for technical users who have setup access to RConnect at our company. Thanks.

User and group information is available within a running Shiny application, c.f. Shiny - RStudio Connect: User Guide. However, this only works when the user has been authenticated. Otherwise the user is an anonymous user that cannot be mapped to any unique identifiers. You can use Single Sign-On to reduce the need for explicit logins.