
Stephane Passignat (BPSIS) asked a question.
How to update datasource shared user list
Hello,
I would like to update the list of sharedUser on a datasource, using the API. So far I'm able to initially share the datasource with other users, but I can't find how to update that list, like adding one user.
Does someone know ?
thanks
Hi Stephane,
You can do this by deleting the existing sharedUser list and then POSTing an updated list:
Where data source # is 61:
DELETE
https://<server>/api/mgmt/datasources/61/sharedUsers
POST
https://<server>/api/mgmt/datasources/61/sharedUsers
{
"sharedUsers": [
{
"userId": 51,
"permissions": [
7
]
},
{
"userId": 48,
"permissions": [
7
]
}
]
}
Docs on this are here:
https://docs.progress.com/bundle/datadirect-hybrid-data-pipeline-46/page/Create-a-list-of-users-with-whom-to-share-a-data-source.html#Create-a-list-of-users-with-whom-to-share-a-data-source
Thanks
Aaron Burg
Solutions Engineer/Progress
Thank you Aaron.
Waiting to see if there is an "update" solution, I coded this delete/insert which works.
Thanks
Aaron