Troubleshooting `batchRemoveOwners` Mutation Issue on DataHub V0.13.0 CLI

Original Slack Thread

Hi Team I am also experiencing this https://github.com/datahub-project/datahub/issues/10610|issue on V0.13.0 CLI where batchRemoveOwners mutation is not working as expected (the code runs successfully however the owners are not been removed )

        batchRemoveOwners(
          input: {
            ownerUrns: ["email1", "email2", "email3"],
            resources: [
              { resourceUrn: "urn:li:glossaryNode:name" }]
          }
        )
    } ```

Hey there! :wave: Make sure your message includes the following information if relevant, so we can help more effectively!

  1. Are you using UI or CLI for ingestion?
  2. Which DataHub version are you using? (e.g. 0.12.0)
  3. What data source(s) are you integrating with DataHub? (e.g. BigQuery)

<@U06TM7M40RK> Can you help with the questions in this thread?


:information_source: We’re experimenting with a new AI assistant for questions in the <#CUMUWQU66> channel to help you track down helpful resources more quickly. Keep in mind that responses may not always be spot-on; feel free to ask it follow-up questions and don’t forget to provide its responses a :thumbsup: or :thumbsdown: so other folks in the Community know if you’re still looking for help on the topic!

To help you more effectively, could you please provide the following information?

  1. Are you using the UI or CLI for ingestion?
  2. Which DataHub version are you using? (e.g., 0.12.0)?
  3. What data source(s) are you integrating with DataHub? (e.g., BigQuery)?

Based on the information you provided, it seems like you are experiencing an issue with the batchRemoveOwners mutation in DataHub version 0.13.0. The mutation runs successfully, but the owners are not being removed as expected.

According to the <Ownership | DataHub documentation>, the batchRemoveOwners mutation should work as follows:

mutation batchRemoveOwners {
    batchRemoveOwners(
      input: {
        ownerUrns: ["urn:li:corpuser:jdoe"],
        resources: [
          { resourceUrn:"urn:li:dataset:(urn:li:dataPlatform:hdfs,SampleHdfsDataset,PROD)"},
          { resourceUrn:"urn:li:dataset:(urn:li:dataPlatform:hive,fct_users_created,PROD)"}
        ]
      }
    )
}

Here are a few things to check:

  1. Owner URNs: Ensure that the ownerUrns are in the correct format (e.g., urn:li:corpuser:jdoe).
  2. Resource URNs: Ensure that the resourceUrn is correctly specified and exists in your DataHub instance.
  3. Permissions: Verify that you have the necessary permissions to remove owners from the specified resources.

If the issue persists, it might be related to a bug or an undocumented change in the ownership model, as mentioned in the <Issues · datahub-project/datahub · GitHub issue>.

Would you like more detailed steps or further assistance on this issue?

Sources: