Getting the current user name in a Custom Application API #3054
-
Hi We currently have a Custom Application that uses our own API. We use the We have a requirement where by we'd like access to the user name of the logged in user. I can't currently see anyway of doing that - other than I can see the Is there a way to either get the username directly via something in the context, or an endpoint I can query with that user id to find the current user name within my API? Thanks Richard |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hi @richardtappenden, yes, you can query for the current logged-in user. See the snippet below.
|
Beta Was this translation helpful? Give feedback.
Hi @richardtappenden, yes, you can query for the current logged-in user.
This uses the user's token to fetch the user information.
See the snippet below.