Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Is it possible to use ri:user without notifying the person concerned?

I'm writing a script that creates a series of Confluence pages that details the membership of the groups on our in-house LDAP system. The design of the layout is such that members of a group are displayed on the page using the "@" or "ri:user" macro, e.g.:

Screenshot 2021-03-04 112504.png

The drawback to this is that Confluence is notifying staff when the pages get created because that is the purpose of the "ri:user" macro.

Is there a way of *preventing* that notification from happening?

Alternatively, is there a different Confluence gadget or macro I can use that supports functionality like easy linking to the user's profile (which is why we picked the current method) without generating the notification?


3 answers

There is a "user profile" macro ... I'm going to try that on the page layout and see how that goes ...

User profile seems to be the way to go for our needs. It is slightly frustrating that it only displays email addresses for "internal" users.


You could create your own user macro in any way it pleases you, also it isn't a really straightforward experience to create one.

IF you look at you see at the bottoms of the page some examples. "Formatted panel" could be interesting.

You can velocity variabels in macros to get some information (like i.e. current User). Here are the variabels available in a macro:

You could use the $userAccessor variable to access the class UserAccessor and its methods. For example this would make it possible for you to use $userAccessor.getUserByName(String name) and deliver the name as an inputfield of the macro .


But like I said this is not the most straightforward way to do this. If the user profile macro is enough for you I would consult you to stay away of macro programming ;) 

Thanks @Mario Carabelli . Unfortunately, I don't *think* that user macros are available in Confluence Cloud.

I didn't explicitly mention it was Cloud in my question because I thought it showed up elsewhere on the web page.

Your right. I overlooked the cloud part, but it shows in tags at the question.

If your interested in creating your own cloud macro: here is the link for it:

Unfortunately this means you have to basically write your own (simple) confluence app which may be overkill.

I think you are on the right path with the "user profile" macro. There is no way to disable the notification part of an @mention-macro. 

0 votes
Dominic Lagger Community Leader Mar 04, 2021

HI  @Philip Colmer 

As you already said, you can use the "User Profile" macro.

Are the pages all created in one go? If yes, you could disable the mail configuration, create the pages with the script and then enable the mail configuration again. But I'm not sure whether this is possible for cloud.

I do not know any other possibility

Regards, Dominic

The script is intended to run nightly, to update the page content with any changes to our groups.

I might have a look at building a dynamic macro as the "User Profile" macro only displays email addresses for our own users and not external users, making the look of each page a bit inconsistent.

Like Dominic Lagger likes this

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Confluence

⚡️NEW Group for Confluence Cloud Admins

Calling all Confluence Cloud Admins!  We created a new Community Group to support your unique needs as Confluence admins. This is a group where you can ask questions, access resou...

183 views 3 11
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