cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Yahya
Kudo Kingpin
Kudo Kingpin

How I can prevent CDS System Administrator delete a record?

I use my O365 (and PowerApps P2) user to DEVELOP and USE CDS model-driven apps for my business. I am the only Global Administrator in both O365 and PowerApps in my company.

 

Security Rules work perfectly for me to let/ban users from deleting records in entitites but i fail to ban myself from mistakenly deleting a record in some entities where in DELETE should be banned for all users even myself. Being a  Global Admin, I cannot edit the Global admin security rule. Process triggering the delete after the delete happens, I know i can recreate the record BUT is there any other way to ban a global admin from deleting a record?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi, in fact I managed to prevent myself (Global admin) from deleting a record in an entity by creating a real-time workflow that gives me the ability to trigger the BEFORE DELETE then the only step I made is to stop workflow with status of Cancelled. 🙂  

View solution in original post

2 REPLIES 2
v-xida-msft
Community Support
Community Support

Hi @Yahya ,

Do you want to prevent CDS System Administrator role from deleting a record in a Entity?

 

If you are the System Administrator role in your CDS, you would have full permission to customize or administer the environment, including creating, modifying, and assigning security roles.

Currently, within PowerApps, there is no way to prevent CDS System Administrator role from deleting a record in a Entity.

 

As an alternative solution, you could consider change Security Role you own to the CDS, or you could also consider create a custom security role in your PowerApps Environment, then assign the custom security role to you instead of the System Administrator role.

 

More details about customizing security role in PowerApps Environment, please check the following article:

https://docs.microsoft.com/en-us/power-platform/admin/database-security#create-or-configure-a-custom...

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi, in fact I managed to prevent myself (Global admin) from deleting a record in an entity by creating a real-time workflow that gives me the ability to trigger the BEFORE DELETE then the only step I made is to stop workflow with status of Cancelled. 🙂  

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,321)