Answered by:
MS CRM 2011 ONLINE - What privilege allows user to delete an order product?

Question
-
What is the correct privilege which affects to Order Product.
I want to deny a user to delete and order product from Order form.
Also what is the best place to inspect connections related to all privileges?
Monday, November 11, 2013 11:34 AM
Answers
-
Per the SDK (http://msdn.microsoft.com/en-us/library/gg328383.aspx) there are no specific privileges for Order Product. If they have Append To on Order it appears they can add/delete/modify the line items on the Order (i.e., Order Products.)
You would need to write a plug-in against the Pre-Operation Delete message on SalesOrderDetail to check if a user is allowed to delete and throw an exception to prevent the Delete. Be sure, to account for the fact that these line may be deleted if the SalesOrder is deleted, preventing deletion of the SalesOrder. This is probably the desired behavior but just wanted to add that reminder.
Nicolas Nowinski (nicknow.net) Dynamics CRM...if it can't be done with Dynamics CRM, SharePoint, SQL, and C# you don't need to be doing it!
- Marked as answer by crm-user-crm Tuesday, November 12, 2013 9:44 AM
Tuesday, November 12, 2013 5:12 AM
All replies
-
You should check the Security Roles assign to that User.
To check Security Roles Navigate to Setting>Administration>Users>Select User>
Now In the Navigation Pan Click Security Roles>open security roles>selcet Sales tab here change Product entity Delete Previlage to None.
Muhammad Sohail
- Edited by sohail450 Monday, November 11, 2013 1:32 PM
Monday, November 11, 2013 1:30 PM -
Per the SDK (http://msdn.microsoft.com/en-us/library/gg328383.aspx) there are no specific privileges for Order Product. If they have Append To on Order it appears they can add/delete/modify the line items on the Order (i.e., Order Products.)
You would need to write a plug-in against the Pre-Operation Delete message on SalesOrderDetail to check if a user is allowed to delete and throw an exception to prevent the Delete. Be sure, to account for the fact that these line may be deleted if the SalesOrder is deleted, preventing deletion of the SalesOrder. This is probably the desired behavior but just wanted to add that reminder.
Nicolas Nowinski (nicknow.net) Dynamics CRM...if it can't be done with Dynamics CRM, SharePoint, SQL, and C# you don't need to be doing it!
- Marked as answer by crm-user-crm Tuesday, November 12, 2013 9:44 AM
Tuesday, November 12, 2013 5:12 AM -
Per the SDK (http://msdn.microsoft.com/en-us/library/gg328383.aspx) there are no specific privileges for Order Product. If they have Append To on Order it appears they can add/delete/modify the line items on the Order (i.e., Order Products.)
You would need to write a plug-in against the Pre-Operation Delete message on SalesOrderDetail to check if a user is allowed to delete and throw an exception to prevent the Delete. Be sure, to account for the fact that these line may be deleted if the SalesOrder is deleted, preventing deletion of the SalesOrder. This is probably the desired behavior but just wanted to add that reminder.
Nicolas Nowinski (nicknow.net) Dynamics CRM...if it can't be done with Dynamics CRM, SharePoint, SQL, and C# you don't need to be doing it!
- Marked as answer by crm-user-crm Tuesday, November 12, 2013 9:44 AM
- Unmarked as answer by crm-user-crm Tuesday, November 12, 2013 9:44 AM
Tuesday, November 12, 2013 9:43 AM