Defining Roles for Upserting Groups in DataHub

Original Slack Thread

Hi Team,
How are we defining the roles while upserting the groups.

Seems like we don’t support specifying roles with Corpgroups… <@U01GZEETMEZ> could you confirm this?

<@U05U5ME8CDN> could you explain a bit more about what you’re trying to accomplish?

Instead of creating the users individually on datahub we are trying to create the groups and adding the members to it using the add owners python code from the datahub.
so we have to assign the roles to all the users like Reader/admin etc.
How to do this? <@U01GZEETMEZ>

<@U01GZEETMEZ> <@U04QRNY4ZHA> any update please

You can use the graphQL APIs to assign roles to groups, as referenced here