{"id":27225,"date":"2021-03-09T07:52:03","date_gmt":"2021-03-09T07:52:03","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=27225"},"modified":"2021-12-30T14:30:22","modified_gmt":"2021-12-30T09:00:22","slug":"check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/","title":{"rendered":"Check whether the current logged in Dynamics 365 CRM user has necessary security privileges for a specific entity in PCF Control"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>In this blog, we will get the idea on how we can check if the current logged-in user has Read\/Write\/Update access to any specific entity or not.<\/p>\n<h2>Scenario<\/h2>\n<p>We have one Boolean type PCF control on the Account entity. Based on the Yes \/ No value of PCF control, we want to create a Contact entity record for the Current Account.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1-1.jpeg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-27229 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1-1.jpeg\" alt=\"current if the logged-in user has Read\/Write\/Update access to any specific entity or not\" width=\"979\" height=\"472\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1-1.jpeg 979w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1-1-300x145.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1-1-768x370.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1-1-660x318.jpeg 660w\" sizes=\"(max-width: 979px) 100vw, 979px\" \/><\/a><br \/>\nSo, when the user is trying to set \u2018Yes\u2019 to the \u2018Create Contact\u2019 field, we want to first check whether the current user has \u2018 to Create\u2019 permission of Contact entity record or not.<\/p>\n<h2>Solution<\/h2>\n<p>We will achieve this with the help of <strong>context.utils.hasEntityPrivilege<\/strong> function that is used to detect whether the current logged-in user has Read\/Write permission for a specific entity or not. In our case, we need to check if the active users have \u2018to Create\u2019 permission for the Contact entity record. Please find the below code that we have used to find out the same.<br \/>\ncontext.utils.hasEntityPrivilege(&#8220;contact&#8221;,1,3)<br \/>\nwhere,<br \/>\ncontact = Entity type name for which we have to find privilege details for the said entity.<br \/>\n1 = It indicates Entity privilege type such as Read, Write, etc. In the above scenario, we check for Create privilege so 1 is associated with \u2018Create\u2019. Please find some other Entity type names with their code:<br \/>\nNone = 0<br \/>\nCreate = 1<br \/>\nRead = 2<br \/>\nWrite = 3<br \/>\nDelete = 4<br \/>\nAssign =5<br \/>\nShare =6<br \/>\nAppend =7<br \/>\nAppendTo =8<br \/>\n3 = It indicates the entity privilege depth of the specified entity. It has the following values:<br \/>\nNone = -1<br \/>\nBasic = 0<br \/>\nLocal = 1<br \/>\nDeep = 2<br \/>\nGlobal = 3<br \/>\nSo, by calling this function, we found that the current logged in user has \u2018to Create\u2019 permission for Contact entity record as shown in the below screenshot:<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1.jpeg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-27228 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1.jpeg\" alt=\"current if the logged-in user has Read\/Write\/Update access to any specific entity or not\" width=\"981\" height=\"508\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1.jpeg 981w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1-300x155.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1-768x398.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1-660x342.jpeg 660w\" sizes=\"(max-width: 981px) 100vw, 981px\" \/><\/a><\/p>\n<p>As per the result given by context.utils.hasEntityPrivilege function, we take a decision to create a record contact entity record or not.<\/p>\n<h2>Conclusion<\/h2>\n<p>Using context.utils.hasEntityPrivilege, we can easily retrieve the current logged in user privilege details.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/add-manage-schedule-notifications-alerts-4-dynamics-365-crm\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-27230 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/A4D.jpg\" alt=\"Dynamics 365 Email Alerts\" width=\"800\" height=\"200\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/A4D.jpg 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/A4D-300x75.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/A4D-768x192.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/A4D-660x165.jpg 660w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In this blog, we will get the idea on how we can check if the current logged-in user has Read\/Write\/Update access to any specific entity or not. Scenario We have one Boolean type PCF control on the Account entity. Based on the Yes \/ No value of PCF control, we want to create a\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/\">Read More: Check whether the current logged in Dynamics 365 CRM user\u2026 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,19,1929],"tags":[545,592,1941],"class_list":["post-27225","post","type-post","status-publish","format-standard","hentry","category-dynamics-365","category-dynamics-crm","category-pcf","tag-dynamics-365-crm","tag-dynamics-crm","tag-pcf-control"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Introduction In this blog, we will get the idea on how we can check if the current logged-in user has Read\/Write\/Update access to any specific entity or not. Scenario We have one Boolean type PCF control on the Account entity. Based on the Yes \/ No value of PCF control, we want to create a\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Inogic\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Check whether the current logged in Dynamics 365 CRM user has necessary security privileges for a specific entity in PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"Introduction In this blog, we will get the idea on how we can check if the current logged-in user has Read\/Write\/Update access to any specific entity or not. Scenario We have one Boolean type PCF control on the Account entity. Based on the Yes \/ No value of PCF control, we want to create a\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1-1.jpeg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1-1.jpeg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"979\" \/>\n\t\t<meta property=\"og:image:height\" content=\"472\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2021-03-09T07:52:03+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2021-12-30T09:00:22+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inogicindia\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Check whether the current logged in Dynamics 365 CRM user has necessary security privileges for a specific entity in PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Introduction In this blog, we will get the idea on how we can check if the current logged-in user has Read\/Write\/Update access to any specific entity or not. Scenario We have one Boolean type PCF control on the Account entity. Based on the Yes \/ No value of PCF control, we want to create a\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1-1.jpeg\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Inogic\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\\\/#blogposting\",\"name\":\"Check whether the current logged in Dynamics 365 CRM user has necessary security privileges for a specific entity in PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"Check whether the current logged in Dynamics 365 CRM user has necessary security privileges for a specific entity in PCF Control\",\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/1-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1-1.jpeg\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\\\/#articleImage\",\"width\":979,\"height\":472,\"caption\":\"current if the logged-in user has Read\\\/Write\\\/Update access to any specific entity or not\"},\"datePublished\":\"2021-03-09T07:52:03+05:30\",\"dateModified\":\"2021-12-30T14:30:22+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\\\/#webpage\"},\"articleSection\":\"Dynamics 365, Dynamics CRM, PCF, Dynamics 365 CRM, Dynamics CRM, PCF Control\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/#listItem\",\"name\":\"Microsoft PowerApps\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/#listItem\",\"position\":2,\"name\":\"Microsoft PowerApps\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/pcf\\\/#listItem\",\"name\":\"PCF\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/pcf\\\/#listItem\",\"position\":3,\"name\":\"PCF\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/pcf\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\\\/#listItem\",\"name\":\"Check whether the current logged in Dynamics 365 CRM user has necessary security privileges for a specific entity in PCF Control\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/#listItem\",\"name\":\"Microsoft PowerApps\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\\\/#listItem\",\"position\":4,\"name\":\"Check whether the current logged in Dynamics 365 CRM user has necessary security privileges for a specific entity in PCF Control\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/power-apps\\\/pcf\\\/#listItem\",\"name\":\"PCF\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"By Inogic\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inogic-logo.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/inogicindia\",\"https:\\\/\\\/twitter.com\\\/inogic\",\"https:\\\/\\\/www.instagram.com\\\/inogicindia\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCM4V7ousgLSu1hbOEv4DUuQ\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/inogicindia\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/\",\"name\":\"Inogic\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Inogic\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\\\/\",\"name\":\"Check whether the current logged in Dynamics 365 CRM user has necessary security privileges for a specific entity in PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"Introduction In this blog, we will get the idea on how we can check if the current logged-in user has Read\\\/Write\\\/Update access to any specific entity or not. Scenario We have one Boolean type PCF control on the Account entity. Based on the Yes \\\/ No value of PCF control, we want to create a\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"datePublished\":\"2021-03-09T07:52:03+05:30\",\"dateModified\":\"2021-12-30T14:30:22+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"alternateName\":\"Inogic\",\"description\":\"By Inogic\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Check whether the current logged in Dynamics 365 CRM user has necessary security privileges for a specific entity in PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction In this blog, we will get the idea on how we can check if the current logged-in user has Read\/Write\/Update access to any specific entity or not. Scenario We have one Boolean type PCF control on the Account entity. Based on the Yes \/ No value of PCF control, we want to create a","canonical_url":"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/#blogposting","name":"Check whether the current logged in Dynamics 365 CRM user has necessary security privileges for a specific entity in PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"Check whether the current logged in Dynamics 365 CRM user has necessary security privileges for a specific entity in PCF Control","author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1-1.jpeg","@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/#articleImage","width":979,"height":472,"caption":"current if the logged-in user has Read\/Write\/Update access to any specific entity or not"},"datePublished":"2021-03-09T07:52:03+05:30","dateModified":"2021-12-30T14:30:22+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/#webpage"},"articleSection":"Dynamics 365, Dynamics CRM, PCF, Dynamics 365 CRM, Dynamics CRM, PCF Control"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.inogic.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/#listItem","name":"Microsoft PowerApps"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/#listItem","position":2,"name":"Microsoft PowerApps","item":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/pcf\/#listItem","name":"PCF"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/pcf\/#listItem","position":3,"name":"PCF","item":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/pcf\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/#listItem","name":"Check whether the current logged in Dynamics 365 CRM user has necessary security privileges for a specific entity in PCF Control"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/#listItem","name":"Microsoft PowerApps"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/#listItem","position":4,"name":"Check whether the current logged in Dynamics 365 CRM user has necessary security privileges for a specific entity in PCF Control","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/pcf\/#listItem","name":"PCF"}}]},{"@type":"Organization","@id":"https:\/\/www.inogic.com\/blog\/#organization","name":"Microsoft Dynamics 365 CRM Tips and Tricks","description":"By Inogic","url":"https:\/\/www.inogic.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/02\/inogic-logo.png","@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/inogicindia","https:\/\/twitter.com\/inogic","https:\/\/www.instagram.com\/inogicindia\/","https:\/\/www.youtube.com\/channel\/UCM4V7ousgLSu1hbOEv4DUuQ","https:\/\/www.linkedin.com\/company\/inogicindia"]},{"@type":"Person","@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author","url":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/","name":"Inogic","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Inogic"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/","name":"Check whether the current logged in Dynamics 365 CRM user has necessary security privileges for a specific entity in PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction In this blog, we will get the idea on how we can check if the current logged-in user has Read\/Write\/Update access to any specific entity or not. Scenario We have one Boolean type PCF control on the Account entity. Based on the Yes \/ No value of PCF control, we want to create a","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"datePublished":"2021-03-09T07:52:03+05:30","dateModified":"2021-12-30T14:30:22+05:30"},{"@type":"WebSite","@id":"https:\/\/www.inogic.com\/blog\/#website","url":"https:\/\/www.inogic.com\/blog\/","name":"Microsoft Dynamics 365 CRM Tips and Tricks","alternateName":"Inogic","description":"By Inogic","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic","og:type":"article","og:title":"Check whether the current logged in Dynamics 365 CRM user has necessary security privileges for a specific entity in PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"Introduction In this blog, we will get the idea on how we can check if the current logged-in user has Read\/Write\/Update access to any specific entity or not. Scenario We have one Boolean type PCF control on the Account entity. Based on the Yes \/ No value of PCF control, we want to create a","og:url":"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1-1.jpeg","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1-1.jpeg","og:image:width":979,"og:image:height":472,"article:published_time":"2021-03-09T07:52:03+00:00","article:modified_time":"2021-12-30T09:00:22+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"Check whether the current logged in Dynamics 365 CRM user has necessary security privileges for a specific entity in PCF Control - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"Introduction In this blog, we will get the idea on how we can check if the current logged-in user has Read\/Write\/Update access to any specific entity or not. Scenario We have one Boolean type PCF control on the Account entity. Based on the Yes \/ No value of PCF control, we want to create a","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-if-the-logged-in-user-has-ReadWriteUpdate-access-to-any-specific-entity-or-not-1-1.jpeg","twitter:label1":"Written by","twitter:data1":"Inogic","twitter:label2":"Est. reading time","twitter:data2":"2 minutes"},"aioseo_meta_data":{"post_id":"27225","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-02-02 06:08:26","updated":"2025-07-04 08:25:45","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/power-apps\/\" title=\"Microsoft PowerApps\">Microsoft PowerApps<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/power-apps\/pcf\/\" title=\"PCF\">PCF<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCheck whether the current logged in Dynamics 365 CRM user has necessary security privileges for a specific entity in PCF Control\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Microsoft PowerApps","link":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/"},{"label":"PCF","link":"https:\/\/www.inogic.com\/blog\/category\/power-apps\/pcf\/"},{"label":"Check whether the current logged in Dynamics 365 CRM user has necessary security privileges for a specific entity in PCF Control","link":"https:\/\/www.inogic.com\/blog\/2021\/03\/check-whether-the-current-logged-in-dynamics-365-crm-user-has-necessary-security-privileges-for-a-specific-entity-in-pcf-control\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/27225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=27225"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/27225\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=27225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=27225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=27225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}