Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Python code listed below are examples on how to extract Confluence users to export formatsCSV export format via REST API and servlets.

The steps to create a CSV file are as follows:

  1. Search and extract Confluence users via search endpoint.

  2. Send search result to file generation endpoint.

  3. Download file from Confluence via download servlet.

The Python code examples listed below can be saved as a file and executed via Python. Please change the following variables to match custom Confluence setup:

Info

These scripts should be run as a Confluence user with administrator or system administrator global permissions.

Please change the following variables to match custom Confluence setup:

  • CONFLUENCE_USERNAME = Confluence username

  • CONFLUENCE_PASSWORD = Confluence password

  • CONFLUENCE_BASEURL = Confluence url eg. https://jira.yourdomain.com

  • CONFLUENCE_CSV_FILE_NAME = Name of the file to generate

...