I have a button in my Portal which triggers a webapi call to update a couple fields on a dataverse table. I am trying to set up a user role such that the user can read, but not edit any fields in this table, except for the two fields connected to this api call button.
What I tried to do is to give them a web role, which is associated with a column permission profile which has update permissions for the required columns in the table.
Even with this set up, the api call is still failing with a Forbidden response.
In the Portal Management app, I see the note that "Column permissions are currently only applicable for Web API features.", but I would think that my use case here falls under that category?
Am I missing something here?
This is my dataverse web api call:
function updateDv() {
webapi.safeAjax({
type: "PATCH",
url: "/_api/cr853_cogodevices(" + id + ")",
contentType: "application/json",
data: dvBodyString,
success: function () {
console.log("Dataverse HTTP Success");
},
});
}