Hello,
I created a new security role and assigned it to "user". The role has a privilege "Write" for all records of some entity (global level).
There is a code that tries to update entity by ID:
ClientCredentials clientCredentials = new ClientCredentials();
clientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;
clientCredentials.Windows.ClientCredential = new System.Net.NetworkCredential("user", "password", "domain");
OrganizationServiceProxy _crmService = new OrganizationServiceProxy(new Uri("crm.com/.../Organization.svc"), null, clientCredentials, null);
Entity entity = new Entity("new_entity");
entity.Id = new Guid("11111111-1111-1111-1111-111111111111");
entity["new_textattribute"] = "Try to update...";
_crmService.Update(entity);
When executing the code, an error occurs that requires a privilege "Read":
Principal user is missing prvReadnew_entity privilege
Is this normal security behavior?
This role should not have a privilege to Read, only to Write.
Any suggestions?
*This post is locked for comments
I have the same question (0)