We're attempting to create a Job in a workspace in order to update the enable field status of all rows in the UserInfo table, since everytime we backup the production environment to UAT all users are set to disabled. In essence we are trying to run:
while select forupdate UserInfo
where UserInfo.id != curUserId()
{
UserInfo.enable = NoYes::Yes;
UserInfo.update();
}
However it seems that like most default tables in D365, there is no way to grant privileges to do a query like that. Is there a woraround for the isssue?
We're also getting this error:
Cannot edit a record in User Information (UserInfo). The corresponding AOS validation failed.