Skip to end of banner
Go to start of banner

Showing a list of active users

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Current »

You'd like to list down all currently active users.

Looking for Confluence Cloud recipes?
This recipe is for the Confluence Server & Data Center version of the app. If you are interested in Reporting for Confluence Cloud recipes, refer to this page.

Ingredients

Apps

Reporting for Confluence Server

Macros

Boolean Filter, Report Column, Report Info, Report Table

Suppliers

Boolean Supplier, User Supplier

Guide

  1. Create a Report Table macro.

  2. Within the Report Table macro, create a User Reporter macro.

  3. Inside the User Reporter macro insert Boolean Filter macros:
    Set the Key to "user:is deactivated" and tick Required parameter. 

  4. Create a Report Column macro and set Title to "User Name".

  5. Within the Report Column macro create a Report Info macro and set Key to "user:name".

Notes

You can copy and paste this code into the Confluence Source Editor:

<h3>Description: </h3>
<p>In this example, we filter deactivated users using <a href="https://docs.servicerocket.com/display/REP/Boolean+Filter">Boolean Filter</a> macro. Below is the list of disabled users: </p>
<ac:structured-macro ac:macro-id="01387ccb-6f10-45c0-a6da-076df68a1e40" ac:name="report-table" ac:schema-version="1">
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="e4695322-555b-454c-9410-d02d31ecfe32" ac:name="user-reporter" ac:schema-version="1">
      <ac:rich-text-body>
        <p>
          <ac:structured-macro ac:macro-id="9ea65771-6967-4f52-9f7c-075c52dbf2fd" ac:name="boolean-filter" ac:schema-version="1">
            <ac:parameter ac:name="value">true</ac:parameter>
            <ac:parameter ac:name="required">true</ac:parameter>
            <ac:parameter ac:name="">user:is deactivated</ac:parameter>
          </ac:structured-macro>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <br/>
    </p>
    <p>
      <br/>
    </p>
    <ac:structured-macro ac:macro-id="4625bf62-332b-4290-b6f2-b7cb0d87c8cf" ac:name="report-column" ac:schema-version="1">
      <ac:parameter ac:name="title">Name</ac:parameter>
      <ac:rich-text-body>
        <p>
          <ac:structured-macro ac:macro-id="d824dcf9-66a0-49cb-ae42-8ce6ffc2c7b6" ac:name="report-info" ac:schema-version="1">
            <ac:parameter ac:name="link">true</ac:parameter>
            <ac:parameter ac:name="">user:name</ac:parameter>
          </ac:structured-macro>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <br/>
    </p>
    <p>
      <br/>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>
<h3>Result:</h3>
<ac:structured-macro ac:macro-id="48477149-6103-4735-af30-e4bbda28e108" ac:name="report-table" ac:schema-version="1">
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="64884ea3-3101-4a07-a5e3-8d7706ab0c41" ac:name="user-reporter" ac:schema-version="1">
      <ac:rich-text-body>
        <p>
          <ac:structured-macro ac:macro-id="adf4bf6b-f5e2-44d8-bc6a-5b28d08a9f7a" ac:name="boolean-filter" ac:schema-version="1">
            <ac:parameter ac:name="required">true</ac:parameter>
            <ac:parameter ac:name="">user:is deactivated </ac:parameter>
          </ac:structured-macro>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <br/>
    </p>
    <p>
      <br/>
    </p>
    <ac:structured-macro ac:macro-id="0d5f1e3b-1036-450f-b124-5f17597be988" ac:name="report-column" ac:schema-version="1">
      <ac:parameter ac:name="title">Name</ac:parameter>
      <ac:rich-text-body>
        <p>
          <ac:structured-macro ac:macro-id="4ac2edc6-a0db-4efe-a3e2-2d4f92e81516" ac:name="report-info" ac:schema-version="1">
            <ac:parameter ac:name="link">true</ac:parameter>
            <ac:parameter ac:name="">user:name</ac:parameter>
          </ac:structured-macro>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <br/>
    </p>
    <p>
      <br/>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>
<p>
  <br/>
</p>
<p>
  <br/>
</p>

Result

  • Not applicable.

  • No labels