Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Diagnose authorisation error when calling the IATI Registry 'dataset_purge' API #463

@emmajclegg

Description

@emmajclegg

Which IATI Registry user roles have the necessary permission to use the action 'dataset_purge' ? We have received feedback that the following steps work for a sysadmin user, but not for a non sysadmin user (on the IATI Registry staging site).

Steps to reproduce:

  • Login to IATI Registry
  • Create an API token
  • Use this API token to hit the 'action/dataset_purge' api
  • Works for sysadmin, but "Exception: 403: Not Authorised" received for a non-sysadmin

These steps are in the context of an IATI publishing tool trying to unpublish activity data from the IATI Registry when a user requests it within the tool.

This relates to the support ticket: https://iati.zendesk.com/agent/tickets/44459
(cc' @siwhitehouse @robredpath)

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions