Field Level Security user privileges for a particular attribute using javascript in CRM 2011 & CRM 2013

Posted: October 27, 2013 in CRM 2011, CRM 2013, Jscripts

getUserPrivilege

Returns an object with three Boolean properties corresponding to privileges indicating if the user can create, read or update data values for an attribute.

Xrm.Page.getAttribute("attributeschema").getUserPrivilege().canCreate
Xrm.Page.getAttribute("attributeschema").getUserPrivilege().canUpdate
Xrm.Page.getAttribute("attributeschema").getUserPrivilege().canRead
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s