Sharing a data app is equivalent to granting users (or groups) certain actions on the deployment. In this case it’s the DATA_APP_DEPLOYMENT_SHARED_JOB_CREATE
action which is granted by the sharedDeploymentUser
role. Therefore you have to
- Get the policies for the respective deployment:
GET .../execution/permissions/policies/data_app_deployment/<deployment id>
- Find the policies that grant the
account:team:*:sharedDeploymentUser
role - Get the
uogId
(user or group id) from the policy - Look up the members of the corresponding group
Note that this gives you the users outside the team in which the deployment was created. Team members have permissions on all deployments, granted by the dataAppDeploymentUser
role.