Hi,
We want to restrict hiring managers roles to not create or delete jobs.
I was able to prevent the creation with a pre-validation plugin on create-Events with job opening entity in synchronous mode.
After I tried to prevent the deletion same way. I created new plugin with pre-validation on delete-events for job openings. But although I am using "pre-validation" the record is deleted and I get the error after. That's not purposeful.
What's the correct way to restrict the permissions? I was not able to edit the security roles of HM in dynamics 365 security settings.
Best,
Robin