Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to pass confluence userid in the iframe src attribute?

Paras December 8, 2021

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="https://www.test.com/Login=(userid)"> </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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 9, 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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 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
TAGS
AUG Leaders

Atlassian Community Events