Skip to content

Administrator Guide

Creating a system admin account

Please note a system administrator cannot be created via the web interface. This needs to be done via the terminal command in the server

  1. Open up a terminal in the server
  2. Run the following command docker exec -it saeoss_ckan-web_1 poetry run ckan sysadmin add admin
  3. Answer the prompts in order to create the new admin user

After the account’s successful creation you can log into the site with the admin user account created earlier

Manage user accounts

A sysadmin user has full access to user accounts

Method 1

  1. To find a user’s profile, enter the following address in your internet browser https://{sitename}/user/ ('/user/' has been appended to the website’s url)
  2. You can search for a specific profile using the search box provided Alt text

  3. You can search by any part of the user profile, including their e-mail address.

    • This is useful if, for example, a user has forgotten their user ID
    • For non-sysadmin users, the search on this page will only match public parts of the profile, so they cannot search by e-mail address.
  4. On their user profile, you will see a “Manage” button. From there you will be able to view the user settings page. You can delete the user or change any of its settings, including their username, name and password.
  5. To save any changes enter your sysadmin password in the box Alt text

Method 2

  1. Navigate to an organisation's home page and then click on Manage.

    non-owned profile 1

  2. Then click on the Members tab.

    non-owned profile 2

  3. Then click on a user's name that you would like to manage.

    non-owned profile 3

  4. You will be redirected to the user's profile page. On this page you should click on the Manage button.

    non-owned profile 4

  5. You will be redirected to the Change details page, here you can manage the user's profile details. Once you have made your changes to the user's profile, scroll down and enter your Sysadmin Password (i.e. the password you use to log in to the administrator account), and then click on the Update Profile button.

    non-owned profile 5

  6. If you would like to remove the user, you can scroll down and enter your Sysadmin Password (i.e. the password you use to log in to the administrator account), and then click on the Delete button.

    non-owned profile 6

Add Organisation

A sysadmin user has full access to organizations. For example, you have access to every organization as if you were a member of that organization. Thus most management operations are done in exactly the same way as in the normal web interface

  1. Click on “Organisations” link in navigation bar
  2. Click on “Add organisation”
  3. Fill out the required fields
  4. If you do not upload a thumbnail, a predefined image will show on web portal
  5. Save changes and the organisation will have been added

Adding a user to an organisation

  1. Click on “Organisations” link in navbar
  2. Click on the organisation you want to add a user to
  3. Click on “Manage” button
  4. Navigate to members
  5. Click on “Add Member” button
  6. Search for username or invite by email Alt text
  7. Choose their role Alt text

Publisher: Can add/edit and delete datasets, as well as manage organization members.

Editor: Can add and edit datasets, but not manage organization members.

Member: Can view the organization's private datasets, but not add new datasets.

Edit member access to organisation

  1. Click on “Organisations” link in navbar or enter link http://{sitename}:5000/organization/
  2. Choose “Organisations”
  3. Click on “Manage” button
  4. Navigate to members
  5. Remove member by clicking on “x” button
  6. Edit member by clicking on wrench icon

Alt text

Managing organizations and datasets

A sysadmin user has full access to user accounts, organizations and datasets. For example, you have access to every organization as if you were a member of that organization. Thus most management operations are done in exactly the same way as in the normal web interface.

For example, to add or delete users to an organization, change a user’s role in the organization, delete the organization or edit its description, etc, visit the organization’s home page. You will see the ‘Admin’ button as if you were a member of the organization. You can use this to perform all organization admin functions. For details, see the User guide.

Similarly, to edit, update or delete a dataset, go to the dataset page and use the ‘Edit’ button. As an admin user you can see all datasets including those that are private to an organization. They will show up when doing a dataset search.

Moving a dataset between organizations

  1. Search for the dataset on the Search page (http://{sitename}/dataset/)
  2. Click on the dataset to view
  3. Click on 'Manage' button in the top right
  4. In the field 'Responsible organisation Name:' select the organisation name you want to transfer the dataset to Alt text
  5. Save changes

Permanently deleting datasets

A dataset which has been deleted is not permanently removed from CKAN; it is simply marked as ‘deleted’ and will no longer show up in search, etc. The dataset’s URL cannot be re-used for a new dataset

  1. Navigate to the dataset’s “Edit” page, and delete it.
  2. Click on your profile in the top right corner of the navigation bar Alt text
  3. Select 'Sysadmin settings' in the dropdown
  4. Select 'Trash' Alt text
  5. From this page you can purge metadata records/ organisations or groups Alt text

Usage statistics

To access the Usage Statistics, click on the profile icon in the top navigation bar. Choose the Usage Statistics option from the dropdown menu.

The Usage Statistics section provides valuable insights into various aspects of system usage, including dataset revisions, most edited datasets, group activities, tags, user contributions, and total dataset counts.

usage statistics

Navigation Tip:

Users can easily access detailed information by clicking on the name of the respective table in the Usage Statistics section. Additionally, they can scroll through the tables to explore the variety of insights available at a glance.

Creating a SuperUser

  • Open the terminal.

Run docker exec -ti saeoss_ckan-web_1 poetry run ckan sysadmin add admin

create superuser command

The user is expected to input either Y for Yes or n for No based on their intention to create a superuser.

confirmation

Enter the required information for creating the superuser account

enter information

Converting a Normal User to a SuperUser

docker exec -ti saeoss_ckan-web_1 poetry run ckan sysadmin add <username>
Replace the username with the desired user's username.

convert the normal user to a super user

Before the superuser privileges

Bob002 as a normal user

After the superuser privileges

Bob002 as a superuser

Security Tips:

  • Keep SuperUser credentials secure.
  • Regularly update SuperUser credentials for enhanced security.