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

How to pass confluence userid in the iframe src attribute?


I am using the HTML macro in the confluence page. With the HTML macro, I am using the iframe tag and would like to pass the userid of the person logged within confluence in the src attribute. How do I do that?

My code for iframe:

<iframe id="myFrame1" width="1500" height="600" src=""> </iframe>

"userid" should be the confluence userid. Basically return the function for AJS.params.remoteUser.toUpperCase()

Thanks in advance.

1 answer

2 votes
Dominic Lagger Community Leader Dec 09, 2021

Hi @Paras 

If you are on server, you have to write a user macro

If you are on cloud, I'm not sure, whether this is possible somehow.

Regards, Dominic

Bill Bailey Community Leader Dec 10, 2021

Exactly, If you are on Cloud, out of luck. On server,  you have the option of an simple user macro.

Like Paras likes this

Suggest an answer

Log in or Sign up to answer
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,049 views 8 42
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