Notifications
Announcements
No record found.
Hi
I have a requirement where cross company delete_from (inline) query is being executed. It successfully executes is SysAdmin role and throws the following error "Cross company delete_from operation is allowed only for admins" if I try to execute it from different role.
What can be possible solution from security perspective.
HI Saad,
How about your code?
while select crosscompany table_name { while dataArea { changecompany (dataArea.id) { delete_from ... } } }
The code I am currently working is in this form
delete_from crosscompany Table1 join .............. ..............
Sadly, I am not allowed to change things on code level, hence restructuring of Query is out of question.
What I am specifically looking for is solution using security privilege, duty or role. I have tried tweaking properties in security privilege like giving table level permission to all the tables involved in this query and it has not worked.
Hey Shashank,
I have the same issue. Using the unchecked(uncheck::TableSecurityPermission) {} did not resolve the problem, I'm still getting the same error "Cross company delete_from operation is allowed only for admins".
Well, if the system says that it's only allowed for admins, then it's only allowed for admins. So if a non-admin must run this code, you must run it company per company, not in a single statement. If you wish that Microsoft would allow this functionality for non-admins in the future, you can post an idea on https://ideas.dynamics.com
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 456 Super User 2025 Season 2
Martin Dráb 429 Most Valuable Professional
BillurSamdancioglu 239 Most Valuable Professional