On the other hand, I've tried to use the GrantAccess operation from the dataverse api with no success
(I can make the post request, however, i get an empty 204 response from the server, and If I check the share functionality from the ui I see no changes)
This is the body in case anyone has any info on the matter:
{
"Target": {
"@odata.type": "Microsoft.Dynamics.CRM.canvasapp",
"canvasappid": "[app guid]"
},
"PrincipalAccess": {
"@odata.type": "Microsoft.Dynamics.CRM.PrincipalAccess",
"AccessMask": "ReadAccess",
"Principal": {
"@odata.type": "Microsoft.Dynamics.CRM.team",
"ownerid": "[team guid]"
}
}
}