To test, we updated the security of the Application User to Sales Manager role which doesn’t have the create incident privilege.
Calling the custom API this time as expected gave us the below error
{“error”:{“code”:”0x80040220″,”message”:”Principal user (Id=0f377e29-5545-eb11-a813-000d3a9bf733, type=8, roleCount=1, privilegeCount=727, accessMode=4), is missing prvCreateIncident privilege (Id=6cf9442b-e690-4cad-8b0a-e60464960b93) on OTC=112 for entity ‘incident’. context.Caller=0f377e29-5545-eb11-a813-000d3a9bf733″}}
If we specify an incorrect privilege name we would get the below error and will not be able to save the record.
Dataverse has traditionally provided User/Team and Organization ownership. Filtered Record Ownership (Preview) introduces another approach: access can be determined by filter conditions on the data rather than by a record owner. What is Filtered Record Ownership? With traditional ownership, we ask: “Who owns this record?” With filtered ownership, … Continue reading “Filtered Record Ownership: A New Approach to Row-Level Security (Dataverse / Dynamics 365)”
I recently came across a small but useful addition to the Dynamics 365 / Power Apps lookup experience: the Drawer Lookup Control. With the standard lookup, selecting a value typically opens the familiar lookup experience. With Drawer Lookup, the records are displayed in a bottom-sheet style drawer, making … Continue reading “Drawer Lookup Control in Dynamics 365 (A better lookup experience on mobile)”
Microsoft 365 Copilot brings conversational AI directly into Model-Driven Apps, allowing users to ask natural language questions about Dataverse data, quickly locate records, and improve productivity without leaving the application. In this post, we walk through the steps we follow to enable Microsoft 365 Copilot in a Model-Driven … Continue reading “How to Enable Microsoft 365 Copilot in Model-Driven Apps”
Recently, I cleared the Microsoft Certified: Architecting Agentic AI Business Solutions (AB-100) exam.While preparing, I ended up creating this one-page Architect’s Compass for my last-minute revision. Instead of memorizing every Microsoft service, I grouped similar services so I could quickly decide which one fits a business scenario.I’m sharing … Continue reading “AB-100 Last-Minute Revision Cheat Sheet (Microsoft Agentic AI Business Solutions Architect)”
4 thoughts on “Execute Privilege Name (ExecutePrivilegeName) property of Custom API in Dynamics 365 / Microsoft Dataverse”