It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Get Current User via User Macro

Phillip Ponzer Nov 17, 2011

Is there a way (similar to $body) for me to display the currently logged in user? Or at least somehow obtain the user's full name?

3 answers

1 accepted

9 votes
Answer accepted
Aseem Parikh Nov 17, 2011

To get the full name, you can use: $action.remoteUser.fullName

I'm not sure what you mean by "display the currently logged in user" but if you can elaborate, we might be able to help out there too.

[edit] You may find this to be a helpful reference: https://developer.atlassian.com/display/CONFDEV/Confluence+Objects+Accessible+From+Velocity

1 vote
Amir Shahheydari Jun 18, 2013

{run-now} $current_user_name{run-now}

0 votes

i use

#set( $username = "$req.getRemoteUser()" )

cheers

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Statuspage

⭐️Would you recommend Statuspage? Leave a (honest!) review. ⭐️

Hi Community friends, We're working on sourcing more reviews on Capterra – a popular software review site –  to help teams like yours make more informed decisions when choosing an inc...

82 views 3 5
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you