Getting the following exception when i'm try to assign the security role.
=========> Exception<============
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: RoleService::VerifyCallerPrivileges failed. User: 59fa03f5-f638-ec11-8c64-000d3af36fa3, UserBU: c85d2646-e52e-e911-a978-000d3af43d1a, PrivilegeName: prvDeleteCustomerOpportunityRole, PrivilegeId: 9aa38629-d3ec-42eb-bef9-da2fc7cceda7, Depth: Local, BusinessUnitId: 9502faca-73ad-ea11-a812-000d3af3a0d7, MissingPrivilegeCount: 31
=========> Scenario <=========
User-A (no deletion rights provided for any entity)
User-A trying to assign the security role to any user and getting the above mentioned error for Missing Privileges: surprisingly All the missing privileges highlighted are belong to User-A. After trying to assign different security role Number of MissingPrivilegeCount changed. I'm unable to understand the logic behind requirement "deletion privileges". One of the security role assignment failed due to missing PrvDeleteTeam.
Kindly suggest the action to fix this issue.