Remove add/delete and export/import from delegated rules for data type

I want to give agents the access to only be able to edit the records without having the ability to add or delete any records. I want to ensure that the id of the records can not be edited either. They can only update the values for other fields

I resolved this :
There is a data transform - pySetApplicationListFilter which needs to be saved in your ruleset. Next set the pxObjClass of the data type as Param.Class. In the following steps, add a condition to check if the operator has Dev access or not, you can do so by adding the when condition → @HaveRole(this,“ApplicationName:SysAdm4”)==false then set the following property in data transform -
D_pzRecordsEditor[DataSourceClassName.pxObjClass,DataSourceReportDefinitionName:“DataTableEditorReport”,DataSourceReportPageName:“pyVirtualRecordEditor”].pyShowImportExport as false
Similarly, add the below ones -

D_pzRecordsEditor[DataSource…].pyHideAdd as true
D_pzRecordsEditor[DataSource…].pyHideDelete as true

This particular change is not just valid for Delegation table but it will be valid for the data type in Dev studio as well, so make sure to add the when rule and check for Dev access while making this change.