dataverse icon indicating copy to clipboard operation
dataverse copied to clipboard

Feature Request: only one notification email/ per dataset after API grant file access

Open CB-HAL opened this issue 7 months ago • 2 comments

Overview of the Feature Request Our users often want access to a lot of datafiles from many datasets, because of this we use an API batch job to grant file Access: curl -H "X-Dataverse-key:%API_TOKEN%" -X PUT %SERVER%/api/access/datafile/8542/grantAccess/%UserIdentifier% curl -H "X-Dataverse-key:%API_TOKEN%" -X PUT %SERVER%/api/access/datafile/8539/grantAccess/%UserIdentifier% … This generates a lot of grant file access notification emails for users.

What kind of user is the feature intended for? Users who have been granted many file accesses.

What inspired the request? Users are annoyed of many notification emails. Of course, user can change the notification setting, but we have to inform the user before we grant access, to do this. And in principle we want the notification. But not so many.

What existing behavior do you want changed? A behavior as in the GUI: Permissions->File->Grant Access. When using this Grant Access, there is only one email notification per dataset. If access granted via API of many datafiles from one dataset, there should be only one email notification send for the first file. The message text “You have been granted access for files in dataset:” is valid for one or more files. There should be a time setting to reset this behavior, if there’s another grant file access for the same dataset after a defined time, another grand access email notification should be sent. The best would be to set this time via API, e.g. after 1 hour, on next day, after 24h. But a fixed time would be also ok.

CB-HAL avatar May 12 '25 12:05 CB-HAL

Related:

  • #2891

pdurbin avatar May 12 '25 13:05 pdurbin

From tech hours:

  • Batching
  • Should we have some sort of daily or weekly digest?

pdurbin avatar Nov 18 '25 20:11 pdurbin