Troubleshooting custom owner addition based on ownership types in YAML recipe for simple_add_dataset_ownership

Original Slack Thread

How do I add a custom owner based on these ownership types in my yaml recipe for the simple_add_dataset_ownership part?

I have it as below but it’s not working
type: simple_add_dataset_ownership
config:
replace_existing: true
owner_urns:
- 'urn:li:owner:user1example'
- 'urn:li:corpGroup:Bioinfomatics'
- 'urn:li:corpuser:user2example'
ownership_type: "Data Steward"

<@U05U0Q3EW2E> Please set the ownership_type to “DATA_STEWARD”

This filed supports only below listed ownership

        BUSINESS_OWNER,
        DATA_STEWARD,
        DEVELOPER,
        DATAOWNER,
        DELEGATE,
        PRODUCER,
        CONSUMER,
        STAKEHOLDER,```

Thank you - I couldn’t find where all the options for ownership_type were! <@U0348BYAS56>

<@U0348BYAS56> How would I add both a data owner (person 1) and a data steward (person 2)?

Should I have 2 types of simply_add_data_ownership arguments or should I merge the two somehow and map it to the ownership_type?

attachment

Please refer pattern add Dataset Ownership: https://datahubproject.io/docs/metadata-ingestion/docs/transformer/dataset_transformer#pattern-add-dataset-ownership