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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Kudoed Authors
Users online (37,029)