Skip to main content

KI-104

Access error when adding Interaction Related Items to an Adverse Event

Created date

07/19/2023

Updated date

07/19/2023

Status

Backlog

Related work item

MIC-3204

Description

User receives an error INSUFFICIENT_ACCESS_OR_READONLY, Invalid Sharing Type I when using the Add Interaction Related Items button on an Adverse Event.

This happens when the running user has only “Read” and not “Edit” access to one of the files they are attempting to add. When linking a file to a record, there are sharing options. One is “inherited”, whereby a user can edit the record they are linking the file to and as a result, gain “Edit” access to the file as well. This elevates the users’ permissions from “Read” to “Edit” which is not allowed. However, a trigger is attempting to set inherited sharing for the file relationship to the new record.

This issue most commonly happens with email attachments.

Affects version(s)

V12, V13

Impacted capabilities

Inquiry Management

Steps to reproduce

As a non-admin:

  1. Send an email with an attachment to a Case.

  2. Create an Adverse Event.

  3. Click Add Interaction Related Items.

  4. Select the email attachment from the list of available attachments.

  5. Click Save.

Non-admins will receive an "insufficient access" error.

Workaround

  1. Have an admin click the button to copy the files..

  2. Manually download the attachment from the Case and re-upload to the Adverse Event.

Fix version

Resolution notes