Use Confluence user names as list options
Overview
Let's create a form where you can use pull-down menus or list boxes to select certain users. The list of users in the pull-down menu or list box are taken from Confluence user groups.
Ingredients
Apps | Scaffolding |
---|---|
Macros | List Data, User Options |
Guide
Create a table as shown:
Using the List Data and User Options macros, fill in the table as shown in the following image:
Edit each List Data macro and give them relevant names.
You can select the Allow Multiple checkbox to display the List Data with names as a dropdown menu or list box.
Edit each User Options macro and specify in the parameters which users you want to display.
You can display users according to groups, spaces, or by their specific usernames.
Save the page.
You created a table with options populated by users from your Confluence user groups.
Click Edit Contents to fill in the table using the pull-down menus or list boxes you created.
Notes
Only users with the required access to the specified spaces will be listed.
Permissions can be specified for each space. You can use @self
as the space key for the current space.
For example:
<SPACEKEY>:view
(default permission) - only users with view access to the space are listed<SPACEKEY>:edit
- only users with edit access to the space are listed<SPACEKEY>:admin
- only users with administrative access to the space are listed<SPACEKEY>:blog
- only users who can post a blog (a.k.a. News) message are listed
Result