robotsnoindex
tip/resting Created with Sketch.

This macro was intentionally excluded from the new editor and will be deprecated from the legacy editor soon.

Read the announcement for more. 


The Content by User macro generates a list of all the content created by a specified user across your Confluence site. This includes current pages, comments, and spaces created by that user. You can click on any item to be taken to the page, comment, or space in which it resides.

Permissions

The Content by User macro will only display content that the logged in user has permission to see. This means that the same macro may display different content to two users who each have different view permissions. 

Using the Content by User macro

To add the Content by User macro to a page:

  1. In the Confluence editor, choose > Other Macros
  2. Find and select the required macro

Speeding up macro entry with autocomplete:

  • In the new editor - Type / and the beginning of an element (tool or things in the insert menu) to see a list of suggestions.
  • In the legacy editor - Type { and the beginning of the macro name to see a list of suggested macros.

Details are in Keyboard shortcuts, markdown, and autocomplete.


To edit an existing macro

Click the macro placeholder and choose Edit. A macro dialog window will open, where you can edit the parameters of the macro.

Parameters

Parameters are options that you can set to control the content or format of the macro output. Where the parameter name used in Confluence storage format or wikimarkup is different to the label used in the macro browser, it will be listed below in brackets (example).


Parameter

Required

Default

Description

Username

(author)

yes

none

The Confluence username for a person who has created content.

Space(s)

(spaceKey)

noall

Specify one or more space keys, separated by a comma or a space. The macro will display only the content which belongs to the space(s) specified here. 

The macro will insert a default value of 'all', but if no value is specified, it will search the current space.

When specifying a personal space, remember to use the tilde (~) sign in front of the username, such as ~jbloggs or ~jbloggs@example.com.

Maximum number of results to display at a time

(max)

no15The maximum value for this parameter is 500, which means that only 500 results can show at one time. You can click show more to see the next 500 results.

Wiki markup example

robotsnoindex
robotsnoindex

Wiki markup is useful when you need to add a macro outside the editor, for example as custom content in the sidebar, header or footer of a space.

Macro name: content-by-user

Macro body: None.

{content-by-user:author=jsmith|spaceKey=all|max=25}



Last modified on Apr 27, 2020