Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I truncate username and pass it to the iFrame src tag in HTML macro?

Paras January 17, 2022

Users login in Confluence have an username format firstname.lastname@domain.com. I want to truncate the username to firstname.lastname and pass that value to the iFrame src tag.

How can I do that? Thanking you in advance.

1 answer

0 votes
David at David Simpson Apps
Atlassian Partner
January 19, 2022

That looks like a hard ask. 

You could create a user macro to do that. 


 - Get the username

- split on @ character

- build an iframe with the username prefix in the iframe arc attribute

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events