D

2 Messages

 • 

300 Points

Thursday, April 18th, 2024 8:15 AM

Removing Responsibility UUID

Is there a way to remove a Responsibility from a given Asset using the core API?

I know it can be done by clicking through: Going into asset -> Responsibility -> selecting, for example, the Data Steward role -> pressing the delete/bin button.

I would like to achieve the same through the core API. Specifically, selecting a particular responsibility and deleting it.

Has anyone encountered this issue before?

6 Messages

 • 

865 Points

14 days ago

Hi @danielhassan ,

you can use:

  • REST Core API: DELETE responsibilities/{responsibilityId}
  • Java Core API: https://<yourinstance>/javadocs/javav2/com/collibra/dgc/core/api/component/instance/ResponsibilityApi.html#removeResponsibility(java.util.UUID)

2 Messages

 • 

300 Points

@laurenzhiller1​ 
Thank you very much for your prompt reply.
 
I apologize perhaps I was poorly detailed.
 
I was referring to how to use this in a workflow.
 
There is a workflow where just in this designer, one of the scripts would just be tasked with removing the assigned responsibility from the asset. For example just Data Steward. 

6 Messages

 • 

865 Points

Hi @danielhassan ,

to be honest, I don't fully understand what you want to achieve. Could you please give some more details about what the workflow should do?

  • Should the workflow be started on global or asset level?
  • Should there be a user task (form) where the start user can select the role (and maybe users for each role) to delete?
  • Should the Data Steward role assignment for a given asset be deleted for all users assigned to that role or only for a specific user?

13 Messages

 • 

800 Points

@danielhassan​ 
Hi Daniel,

As of my understanding, first you have to you could use the FindResponsibilitiesRequest with the findResponsibilities() method of the ResponsibilityApi, and then get the values stored in a variable in multi-value drop down field, you can the selected values UUID to pass in removeResponsibility() method of the ResponsibilityApi to do so.

Hope it helps,
Paresh

Loading...