REST API to get the list of members assigned for Data app deployments

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

  1. Get the policies for the respective deployment: GET .../execution/permissions/policies/data_app_deployment/<deployment id>
  2. Find the policies that grant the account:team:*:sharedDeploymentUser role
  3. Get the uogId (user or group id) from the policy
  4. 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.