Skip to end of metadata
Go to start of metadata

Overview

The user info macro displays snippets of information about a user such as fullname and email.

Usage

{user-info:username}

Parameters

Parameter

Required

Default

Notes

Bubbles Version

default

(tick)

(error)

What snippet of user information to display.

  • fullname the user's full name
  • username the user's username
  • email the user's email address (format of email address depends on Confluence settings)

1.0

user

(error)

@creator

Defines which user information is shown for:

  • username – A specific user, specified by their user name
  • @self – The currently logged in user
  • @creator – The user that created the current page, blogpost or space
  • @owner – The user that created the current space

1.0

profileLink

(error)

false

If true the user information returned will be a link the user's profile

1.0

Examples

The following markup will display a table of information for the user that created this page:

||Full name|{user-info:fullname}|
||User name|{user-info:username}|
||Email    |{user-info:email}   |

Results in:

FAQs

 How do I display the user's picture?

Use the my-picture macro (which can be told to display the picture of another user).

6 Comments

  1. Unknown User (scayla)

    Hmm looks like the {user-info:@self} in the usage part above isn't the good syntax since the default parameter is the information requested, not the user.

    Cheers.

  2. Unknown User (wwp287)

    Is there a way to welcome visitors by displaying their name?

    I tried:

    Welcome {user-info:fullname}

    and

    Welcome {user-info:fullname|display=@self}

    but it will only display name and I want it to display the name of whoever the visitor is. Any suggestions?

  3. Unknown User (wwp287)

    Is there a way to welcome visitors by displaying their name?

    I tried:

    Welcome {user-info:fullname}

    and

    Welcome {user-info:fullname|display=@self}

    but it will only display my name and I want it to display the name of whoever the visitor is. Any suggestions?

    1. You can do this using a usermacro to access the getFullUserName property of the current user. Call it fullusername and use this code

      ## fullusername ##
      ## no body, generates html ##
      
      #set ($username = $action.remoteUser.name)
      #set ($fullname = $action.getUserFullName($username))
      
      $fullname
      

      Then you can use Welcome {fullusername} in your wiki code.

      1. Unknown User (wwp287)

        Thanks for your help Sharon, but when I try this, I get:

          1. fullusername ##
          2. no body, generates html ##

        #set ($username = $action.remoteUser.name)
        #set ($fullname = $action.getFullUserName($username))

        $fullname

        Welcome

        Unknown macro: {fullusername}
        1. Unknown User (sschmitz)

          Hi,
          this works fine for me:

          {user-info:fullname|user=@self}
          

          likeso:

          Unknown macro: {user-info}

          Cheers