Showing posts with label CRM Security. Show all posts
Showing posts with label CRM Security. Show all posts

Thursday, September 6, 2012

Error message “User does not have send-as privilege.” when sending emails programmatically in CRM 2011

We were working on sending emails programmatically using CRM and all were working fine. Suddenly we got this error when we tried to send an email. It was strange to us as this functionality was working fine before. So we did some digging to find out what had changed to cause this issue. We found out that one of us had changed the email sending user from the admin user to another user.

We use a CRM user to work with a web portal and we have used the same user as the email sending user. Hence we didn’t get any errors as the same user can send emails to anyone using the same user account. (no impersonation is here).

But when you try to send an email from someone else using a different user account you get and error as the email sending user has not granted permission for others to send emails on behalf of him. You can grant the permission by going to personal user setting of the email sending user and selecting “Allow other Microsoft dynamics CRM users to send email on your behalf”.

After doing this our problem was solved and we were able to send emails.

You can refer the following articles for more details

http://social.microsoft.com/Forums/en/crm/thread/9fee0bd6-2ae9-4f33-a971-0bf83bcf43de


http://blogs.msdn.com/b/crm/archive/2009/12/07/configure-microsoft-dynamics-crm-online-e-mail-router-with-exchange-online.aspx

Friday, March 9, 2012

Security Model in CRM 2011

There are 3 ways we have the security level in CRM.

  • Role Based
  • Record Based
  • Field Based
Microsoft have written a very good article on this. This can be views at the following link.

Field Level Security with CRM 2011

This is a new feature which has been given with CRM 2011.
With earlier versions we had to write java scripts for hiding of fields. This required checking the user has privileges and going on about it

With CRM 2011 we can do this using the field level security. We no longer have to write any java scripts for this.

However there is one thing. We can only use field level security with custom fields that we have created. Not with the system fields.

This contains a very good article on this.
http://msdn.microsoft.com/en-us/library/gg309608.aspx

Retrieving Calendar of a Bookable Resource in Dynamics

There are occasions where we need to retrieve working days and working times of a resource in Dynamics grammatically. This is quite possible...