Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Dynamically display user viewing page

I'm trying to put together an onboarding guide using the default Confluence template. It begins with something like:

 

"Hi, <employee name>!"

 

I'm trying to figure out how to display the name of the user viewing the page? Obviously inserting a profile macro won't work because you must specify the user before hand.

 

I did some searching, and reach the doc's on the Profile macro, and it seems I should be able to use something like this:

 

{profile:user=$req.userPrincipal.name}

 

However, this does not work?

 

It's a bit frustrating that Jira provides these templates but does not make them "usable" in the sense that with how the template is currently setup, I would have to personalize the template for each new hire.

 

Maybe I'm thinking of this the wrong way, but what options are there for displaying information about the viewer on the page?

 

Thanks!

1 answer

0 votes
Jack Brickey Community Leader Jan 10, 2022

While $currentuser is possible in the Meeting notes blueprint template it is not available in the standard templates. There was an old suggestion for this but it appears to have been closed as not being considered - CONFSERVER-30567 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Confluence Cloud

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

1,108 views 8 44
Read article

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