<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged security</title>
<link>https://overflow.efficy.io/?qa=tag/security</link>
<description>Powered by Question2Answer</description>
<item>
<title>Efficy.setUserSecurity: You can't assign a security level you don't have as default right !</title>
<link>https://overflow.efficy.io/?qa=7115/efficy-setusersecurity-assign-security-level-default-right</link>
<description>&lt;p&gt;I have an record on a custom entity which have the following security&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=8288596365479332405&quot; alt=&quot;Record security&quot;&gt;&lt;/p&gt;

&lt;p&gt;From a BeforeCommit workflow trigger for this entity, I am using the following code&lt;/p&gt;

&lt;p&gt;var secuKUser = 99999002; &lt;br&gt;
Efficy.setUserSecurity(editHandle, 99999002, 271); // 99999002 = EFF_ADMINS and 271 = FullControl.&lt;/p&gt;

&lt;p&gt;But then I get the following error, and I don't know what is wrong, does anyone have an idea?&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=14561439693553584861&quot; alt=&quot;error message&quot;&gt;&lt;/p&gt;

&lt;p&gt;PS : My efficy version is &lt;strong&gt;Efficy Entreprise 2021 - Build 12.0.27691.0&lt;/strong&gt;&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=7115/efficy-setusersecurity-assign-security-level-default-right</guid>
<pubDate>Thu, 26 Sep 2024 14:17:03 +0000</pubDate>
</item>
<item>
<title>SOAP API Security</title>
<link>https://overflow.efficy.io/?qa=6825/soap-api-security</link>
<description>&lt;p&gt;Good morning everyone,&lt;/p&gt;

&lt;p&gt;I'm testing the configuration of the SOAP API and I'm a bit confused on how the security works.&lt;/p&gt;

&lt;p&gt;Following the &quot;Easy SOAP integration&quot; project guide I created two queries : one to retrieve a contact's Key with a email parameter and another to retrieve the list of active opportunities of a specific department (no parameter, the department is set). Both query have the following security settings : Administrators group : full control.&lt;/p&gt;

&lt;p&gt;I've setup the SOAP Group removing any Privileges and any Table Rights, only checking Query:Execute.&lt;br&gt;
I've setup the SOAP User removing any User Privileges and any User Privileges in Designer ; setting the User Role as SOAP Group; removing the user from Everyone and adding it to the SOAP Group.&lt;/p&gt;

&lt;p&gt;Testing the API calls with Postman I get the following results :&lt;br&gt;
* the contact query returns the key value&lt;br&gt;
* the opportunities query return no results unless I add the SOAP User to the right department group&lt;/p&gt;

&lt;p&gt;Where does the different behaviour come from ?&lt;br&gt;
Subsequently, how can I restrict the SOAP user from executing any request, allowing only the few specifically designed for the API purpose ?&lt;/p&gt;

&lt;p&gt;Thank you for your help,&lt;/p&gt;

&lt;p&gt;Alexandre&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6825/soap-api-security</guid>
<pubDate>Wed, 22 Feb 2023 10:53:13 +0000</pubDate>
</item>
<item>
<title>Efficy 12.0 user securities list is missing options</title>
<link>https://overflow.efficy.io/?qa=6357/efficy-12-0-user-securities-list-is-missing-options</link>
<description>&lt;p&gt;I remarked that in Efficy 2021 the list of securities options is different from Efficy 11.3 version when linking a user in the securities. Is there any reason for this change ? &lt;/p&gt;

&lt;p&gt;PS : this can raise errors while migrating customers from previous version to Efficy 2021, so developper will need to review all serverscripts/serverJS where the function &quot;Efficy.setUserSecurity&quot; is used&lt;/p&gt;

&lt;p&gt;Efficy 2021 security list option for user&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=16992724239585024457&quot; alt=&quot;Efficy 2021 security list option for user&quot;&gt;&lt;/p&gt;

&lt;p&gt;Efficy 11.3 security list option for user&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=15338258538145982642&quot; alt=&quot;Efficy 11.3 security list option for user&quot;&gt;&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6357/efficy-12-0-user-securities-list-is-missing-options</guid>
<pubDate>Wed, 17 Nov 2021 11:36:39 +0000</pubDate>
</item>
<item>
<title>How does work Efficy.impersonateUser(impersonateAccount, forceUserRole)</title>
<link>https://overflow.efficy.io/?qa=6160/efficy-impersonateuser-impersonateaccount-forceuserrole</link>
<description>&lt;p&gt;how is working this new option for remote in Efficy 12 &lt;strong&gt;Efficy.impersonateUser(impersonateAccount, forceUserRole)&lt;/strong&gt;&lt;br&gt;
Is it same as &lt;strong&gt;Efficy.forceUserRole(roleId)&lt;/strong&gt; but not for remote ?&lt;/p&gt;

&lt;p&gt;It's stricly only available on remote or can we use it with an Efficy scheduler ?&lt;br&gt;
My goal is to be able to change user as owner when creating a record form script. &lt;br&gt;
Does it really take the role and all securities rules on creation ? &lt;/p&gt;

&lt;p&gt;I mean that if you check the impersonate option for user in designer you can use it as an impersonate. That is the right way to use it ? &lt;/p&gt;
</description>
<category>How to</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6160/efficy-impersonateuser-impersonateaccount-forceuserrole</guid>
<pubDate>Thu, 10 Jun 2021 13:31:38 +0000</pubDate>
</item>
<item>
<title>Prevent &quot;subprojects&quot; from being determined as content to be secured</title>
<link>https://overflow.efficy.io/?qa=5777/prevent-subprojects-from-being-determined-content-secured</link>
<description>&lt;p&gt;By default, when the content of a project is secured. This content-security is applied to mails, documents and actions by default. The entities to be considered as &quot;content&quot; can be extended by adding a field to the entity and adding that entity in the settings (ContentEntities). &lt;/p&gt;

&lt;p&gt;However, a subproject which is linked to a project (PROJ_PROJ) is always considered as content to be secured, regardless of the settings. *And these subprojects will have the same content-security settings*&lt;/p&gt;

&lt;p&gt;Is it somehow possible to customize Efficy so that the linked subprojects are not considered as &quot;Content to be secured&quot; ?&lt;/p&gt;

&lt;p&gt;This is highly requested by one of our customers in The Netherlands.&lt;br&gt;
Thanks for any help.&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5777/prevent-subprojects-from-being-determined-content-secured</guid>
<pubDate>Fri, 18 Dec 2020 13:19:24 +0000</pubDate>
</item>
<item>
<title>security from entities</title>
<link>https://overflow.efficy.io/?qa=5515/security-from-entities</link>
<description>&lt;p&gt;hi,&lt;br&gt;
I try to inherited security from  company when i create a new contact and link to the company.&lt;br&gt;
I change in designer sys_settings Efficy :   &quot;contentEntities&quot;: &quot;Docu;Acti;Mail;Oppo;Cont&quot;,&lt;br&gt;
but when i try the security is not set as the company security.&lt;/p&gt;

&lt;p&gt;How can i fix this ?&lt;/p&gt;
</description>
<category>Efficy Partners</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5515/security-from-entities</guid>
<pubDate>Fri, 17 Jul 2020 09:22:08 +0000</pubDate>
</item>
<item>
<title>Differences between &quot;setUserSecurity&quot; and the combination of &quot;setSecurityUsers&quot; + &quot;postSecurity &quot; (with securitylist)</title>
<link>https://overflow.efficy.io/?qa=3833/setusersecurity-setsecurityusers-postsecurity-securitylist</link>
<description>&lt;p&gt;Hello Efficy Team, &lt;/p&gt;

&lt;p&gt;I would like to know the difference between &quot;setUserSecurity&quot; and &quot;setSecurityUsers&quot; + &quot;postSecurity &quot; (with securitylist).&lt;/p&gt;

&lt;p&gt;As I understand from from the documentation, &quot;SetSecurityUsers&quot; add user with their default securities (defined in conficy) and &quot;postSecurity&quot; is the function to apply those security to the record (but what if we don't call postSecurity ? What append ?). I never used it, I am not even sure I understand it correctly.&lt;/p&gt;

&lt;p&gt;I saw the new &quot;securitylist&quot; provided in Efficy 11.2. Could the R&amp;amp;D provide an exemple ? &lt;/p&gt;

&lt;p&gt;Thanks a lot, &lt;/p&gt;

&lt;p&gt;Loïc&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3833/setusersecurity-setsecurityusers-postsecurity-securitylist</guid>
<pubDate>Tue, 08 Jan 2019 13:39:29 +0000</pubDate>
</item>
<item>
<title>Tool to convert security values to explaination and vice versa</title>
<link>https://overflow.efficy.io/?qa=3468/tool-to-convert-security-values-explaination-and-vice-versa</link>
<description>&lt;p&gt;Hi guys i ve made a really small tool to quickly see what rights are allowed with a security value and which is the security value I need to add for a specific set of rights. &lt;/p&gt;

&lt;p&gt;find the fiddleJs here : &lt;a rel=&quot;nofollow&quot; href=&quot;https://jsfiddle.net/LouisMoisyChapel/eg4rqyt8/&quot;&gt;https://jsfiddle.net/LouisMoisyChapel/eg4rqyt8/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;this is how it works :&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=8741066940000004905&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;you can obviously set the wanted checkboxes to see the value &lt;br&gt;
Or you can set a value and see the checkboxes result.&lt;/p&gt;

&lt;p&gt;this is the full code (add it in a dialog &quot;.htm&quot; page and run it from efficy with a url like : &lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;https://yourcrmserver/11.0/crm/dialog?page=dialog/securityConverter.htm&quot;&gt;https://yourcrmserver/11.0/crm/dialog?page=dialog/securityConverter.htm&lt;/a&gt;&lt;br&gt;
)&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;%SetBookmark()%&amp;gt;
&amp;lt;%LoadMacros('MacroLibrary;MacroDialog')%&amp;gt;
&amp;lt;%Macro('Doctype')%&amp;gt;
&amp;lt;html lang=&quot;&amp;lt;%GetLanguage(lowercase=T)%&amp;gt;&quot; dir=&quot;&amp;lt;%OnLanguage(ar='rtl', else='ltr')%&amp;gt;&quot;&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt; Manage Chart&amp;lt;/title&amp;gt;
&amp;lt;%Macro('MetaHead')%&amp;gt;
&amp;lt;%UseStyleSheet(page='%%OnLanguage(ar=&quot;efficy-rtl&quot;, else=&quot;efficy&quot;)')%&amp;gt;
&amp;lt;%UseScript('../lib/js/vendor/modernizr.js', fixedline=T, fixedpath=T)%&amp;gt;
&amp;lt;style type=&quot;text/css&quot;&amp;gt;
#rightselector {
border: 1px #bbb solid;
padding: 1rem;
}

#rightselector li{
list-style: none;
}

#rightselector li span{
margin-left: 1rem;
vertical-align: top;
}

.NL_switch {
position: relative;
display: inline-block;
width: 40px;
height: 24px;
}

.NL_switch input {
display: none;
}

.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}

.slider:before {
position: absolute;
content: &quot;&quot;;
height: 18px;
width: 18px;
left: 2px;
bottom: 3px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}

input:checked + .slider {
background-color: #368a55;
}

input:focus + .slider {
box-shadow: 0 0 1px #368a55;
}

input:checked + .slider:before {
-webkit-transform: translateX(18px);
-ms-transform: translateX(18px);
transform: translateX(18px);
}

/* Rounded sliders */
.slider.round {
border-radius: 20px;
}

.slider.round:before {
border-radius: 50%;
}

&amp;lt;/style&amp;gt;
&amp;lt;script&amp;gt;
var securityValue = 0;
var rights = [
{value: 1, label: &quot;Search&quot;},
{value: 2, label: &quot;Read&quot;},
{value: 4, label: &quot;Write&quot;},
{value: 8, label: &quot;Delete&quot;},
{value: 16, label: &quot;Show content&quot;},
{value: 32, label: &quot;Add content&quot;},
{value: 64, label: &quot;Update content&quot;},
{value: 128, label: &quot;Delete content&quot;},
{value: 256, label: &quot;Secure&quot;},
{value: 512, label: &quot;Secure content&quot;},
{value: 2048, label: &quot;No content&quot;}
];

/**
* Load modules for widgets
**/
function Loaded(){

requirejs([
&quot;jquery&quot;
], function($){
__debug = true;

$.each(rights, function(_index, _item){
$(&quot;#rightselector&quot;).append(&quot;&amp;lt;li&amp;gt;&amp;lt;label class='NL_switch'&amp;gt;&amp;lt;input type='checkbox' id='right_&quot; + _item.value + 
&quot;' onclick='javascript:setSecurityValue();' class='item-checkbox'&amp;gt;&amp;lt;/input&amp;gt;&amp;lt;div class='slider round'&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/label&amp;gt;&quot; + 
&quot;&amp;lt;span style='margin-bottom: 5px'&amp;gt;&quot; + _item.label + &quot;&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;&quot;)

});

});

console.log(&quot;Page loaded&quot;);
}

function setSecurityValue(){
securityValue = 0;
$.each(rights, function(_index, _item){
if ($(&quot;#right_&quot; + _item.value).is(&quot;:checked&quot;)) securityValue += _item.value;
});
$(&quot;#securityvalue&quot;).val(securityValue);
}

function setRights(){
securityValue = Number($(&quot;#securityvalue&quot;).val());
$.each(rights, function(_index, _item){
var temp = _item.value &amp;amp; securityValue;
if (temp === _item.value) $(&quot;#right_&quot; + _item.value).prop(&quot;checked&quot;, true);
else $(&quot;#right_&quot; + _item.value).prop(&quot;checked&quot;, false);
});
}

&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body onload=&quot;Loaded()&quot; data-keep-size&amp;gt;
&amp;lt;div class=&quot;row dialog-wrapper&quot; data-channel=&quot;dialog/main&quot;&amp;gt;
&amp;lt;div class=&quot;small-12 columns button-group toolbar&quot;&amp;gt;
&amp;lt;h3 class=&quot;section-title&quot;&amp;gt;
&amp;lt;%GetLabel('Security converter')%&amp;gt;
&amp;lt;/h3&amp;gt;
&amp;lt;/div&amp;gt;

&amp;lt;div class=&quot;row small-12 medium-6 large-4 columns left&quot;&amp;gt;
&amp;lt;ul id=&quot;rightselector&quot;&amp;gt;

&amp;lt;/ul&amp;gt;
&amp;lt;label style=&quot;margin-left: 1.1rem;&quot;&amp;gt;Security value
&amp;lt;input type=number width=&quot;100%&quot; id=&quot;securityvalue&quot; onchange=&quot;setRights()&quot;/&amp;gt;
&amp;lt;/label&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;

&amp;lt;!--&amp;lt;/body&amp;gt;--&amp;gt;

&amp;lt;%Macro('DialogScriptsRequire')%&amp;gt;
&amp;lt;%UseScript('../../lib/js/jquery/jquery', fixedline=T)%&amp;gt;
&amp;lt;%UseScript('../../lib/js/fnd/foundation', fixedline=T)%&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;It should be enough to make it work (tell me if not)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It would be definitly cooler if Efficy could add it on Edn.&lt;/strong&gt;&lt;br&gt;
best regards&lt;/p&gt;
</description>
<category>Efficy Partners</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3468/tool-to-convert-security-values-explaination-and-vice-versa</guid>
<pubDate>Tue, 14 Aug 2018 08:49:33 +0000</pubDate>
</item>
<item>
<title>Origin of some filters in sys_queries</title>
<link>https://overflow.efficy.io/?qa=3410/origin-of-some-filters-in-sysqueries</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;We're having issues to find some items trough the &quot;Search Company&quot; popup (pages/Search.htm).&lt;/p&gt;

&lt;p&gt;So we compared the queries executed for these users and discovered that some filters were added at the end of the queries :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt; AND ((0 &amp;lt;&amp;gt; 0) OR EXISTS (SELECT S1.K_USER FROM ADMIN.ACC_GROUPS S1, ADMIN.COMP_USER S2 WHERE S1.K_USER = S2.K_USER AND S1.K_USER2 = 61 AND S2.K_COMPANY = COMPANIES.K_COMPANY))
 AND ((0 &amp;lt;&amp;gt; 0) OR (ROLES.K_ROLE IS NULL) OR EXISTS (SELECT S1.K_USER FROM ADMIN.ACC_GROUPS S1, ADMIN.ROLE_USER S2 WHERE S1.K_USER = S2.K_USER AND S1.K_USER2 = 61 AND S2.K_ROLE = ROLES.K_ROLE))
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Example of a query executed by a user who does not find the searched item (the specific filters are in the 3 last lines) :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;SELECT 
  COMPANIES.K_COMPANY,
  COMPANIES.NAME,
  COMPANIES.F_S_NAME,
  COMPANIES.VAT,
  COMPANIES.BUILDING,
  (select COUNTRY from ADMIN.LK_COUNTRY L1 where L1.K_COUNTRY=COMPANIES.COUNTRY) AS R_COUNTRY,
  COMPANIES.POSTCODE,
  COMPANIES.CITY,
  COMPANIES.STREET,
  COMPANIES.STREETNUMBER,
  COMPANIES.F_BUS,
  COMPANIES.OPENED,
  ROLE_COMP.F_TALKID,
  ROLES.F_TYPE,
  (select F_NAME_NL from ADMIN.LK_CLIENT_ROLE L2 where L2.K_CLIENT_ROLE=ROLES.F_TYPE) AS R_F_TYPE,
  (REPLACE((select REPLACE(';' +  rlr.F_N_BOEKHOUDING + ';', ';;', '') from ROLE$LR rlr join role_comp rc on rc.K_ROLE = rlr.K_ROLE and rc.K_COMPANY = COMPANIES.K_COMPANY FOR XML PATH('')), ';;', ';')) AS V_N_BOEKHOUDING_COMP,
  (REPLACE((select REPLACE(';' +  rlr.F_N_LEASEHOLD + ';', ';;', '') from ROLE$LR rlr join role_comp rc on rc.K_ROLE = rlr.K_ROLE and rc.K_COMPANY = COMPANIES.K_COMPANY FOR XML PATH('')), ';;', ';')) AS V_N_LEASEHOLD_COMP
FROM
  ADMIN.COMPANIES COMPANIES
LEFT OUTER JOIN ADMIN.ROLE_COMP ROLE_COMP ON (COMPANIES.K_COMPANY = ROLE_COMP.K_COMPANY)
LEFT OUTER JOIN ADMIN.ROLES ROLES ON (ROLE_COMP.K_ROLE = ROLES.K_ROLE)
WHERE
  (ROLES.F_TYPE IS NULL OR ROLES.F_TYPE IN (7) OR NOT EXISTS(SELECT rc.k_role FROM role_comp rc INNER JOIN roles r ON rc.k_role = r.k_role WHERE rc.k_company = companies.k_company AND r.f_type IN (7)))
  AND (
(COMPANIES.F_S_NAME like N'%710081%')
) 
 AND ((0 &amp;lt;&amp;gt; 0) OR EXISTS (SELECT S1.K_USER FROM ADMIN.ACC_GROUPS S1, ADMIN.COMP_USER S2 WHERE S1.K_USER = S2.K_USER AND S1.K_USER2 = 61 AND S2.K_COMPANY = COMPANIES.K_COMPANY))
AND ((0 &amp;lt;&amp;gt; 0) OR (ROLES.K_ROLE IS NULL) OR EXISTS (SELECT S1.K_USER FROM ADMIN.ACC_GROUPS S1, ADMIN.ROLE_USER S2 WHERE S1.K_USER = S2.K_USER AND S1.K_USER2 = 61 AND S2.K_ROLE = ROLES.K_ROLE))
ORDER BY COMPANIES.NAME
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;We don't know what generates these filters.&lt;/p&gt;

&lt;p&gt;If I look for this same item, I get the following filters (the real difference is in the begin of the 2 first lines ==&amp;gt; &quot;(1 &amp;lt;&amp;gt; 0)&quot; vs &quot;(0 &amp;lt;&amp;gt; 0)&quot;):&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;AND ((1 &amp;lt;&amp;gt; 0) OR EXISTS (SELECT S1.K_USER FROM ADMIN.ACC_GROUPS S1, ADMIN.COMP_USER S2 WHERE S1.K_USER = S2.K_USER AND S1.K_USER2 = 493 AND S2.K_COMPANY = COMPANIES.K_COMPANY))
AND ((1 &amp;lt;&amp;gt; 0) OR (ROLES.K_ROLE IS NULL) OR EXISTS (SELECT S1.K_USER FROM ADMIN.ACC_GROUPS S1, ADMIN.ROLE_USER S2 WHERE S1.K_USER = S2.K_USER AND S1.K_USER2 = 493 AND S2.K_ROLE = ROLES.K_ROLE))
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;We looked at a lot of security options in conficy but could not find anything that could tell us what it is. The only thing we know is that if we remove those lines, we get the desired results.&lt;/p&gt;

&lt;p&gt;Is there another place where we should look for this information ?&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;/p&gt;

&lt;p&gt;Angel&lt;/p&gt;
</description>
<category>Efficy Partners</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3410/origin-of-some-filters-in-sysqueries</guid>
<pubDate>Mon, 23 Jul 2018 10:11:19 +0000</pubDate>
</item>
<item>
<title>Content security feature default security value not selectable</title>
<link>https://overflow.efficy.io/?qa=3354/content-security-feature-default-security-value-selectable</link>
<description>&lt;p&gt;In conficy &lt;/p&gt;

&lt;p&gt;if I want to set the default security of a group about an entity that has the EntitiesWithSecureContent option. ( +  CONTENTSECURED field)&lt;/p&gt;

&lt;p&gt;I don't have the contentSecurity options in the list of security to apply. this is hardly costumizable since the security option list is managed by a tag &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&amp;lt;%GetDefaultSecurityList()%&amp;gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;that is not overridable...&lt;/p&gt;

&lt;p&gt;is there a way to change the default security level with a contentsecurity level?&lt;/p&gt;

&lt;p&gt;Of course i can directly change it in DB with sql but Stephane Roncin made me realize that the default conficy page will probably stop to work since those values are not displayable...&lt;/p&gt;

&lt;p&gt;Thanks for your feed back &lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3354/content-security-feature-default-security-value-selectable</guid>
<pubDate>Mon, 25 Jun 2018 14:48:23 +0000</pubDate>
</item>
<item>
<title>How to remove security using Efficy Functions serverside?</title>
<link>https://overflow.efficy.io/?qa=2991/how-to-remove-security-using-efficy-functions-serverside</link>
<description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;From a workflow script I try to remove securities from specified users.&lt;/p&gt;

&lt;p&gt;The documentation says that RemoveUsers only affect visible Users so it s not what I need.&lt;br&gt;
I ve try to calculate the Users I want to keep in securities and apply a SetSecurityUsers because the documentation told me that the other users will be removed from security but this doesn't work either in Efficy SP2+ &lt;br&gt;
I ve try to used a custom storedProcedure to delete the Comp_User records, but this doesn't refresh my ContextHandle so basically it s not the good behaviour either.&lt;/p&gt;

&lt;p&gt;Basically I just want to know how to remove a user from the securities of a record...&lt;/p&gt;

&lt;p&gt;Please help.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2991/how-to-remove-security-using-efficy-functions-serverside</guid>
<pubDate>Thu, 22 Mar 2018 15:48:57 +0000</pubDate>
</item>
<item>
<title>add condition in sys_query to get security &gt; N</title>
<link>https://overflow.efficy.io/?qa=2724/add-condition-in-sysquery-to-get-security-n</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'm trying to add to custom sys&lt;em&gt;queries comany search k&lt;/em&gt;master=10, k&lt;em&gt;detail=-2 condition clause &quot;COMP&lt;/em&gt;USER.SECURITY &amp;gt; 1&quot; so users can see only companies linked to their groups with more than search rights.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[Select]
COMPANIES.K_COMPANY
COMPANIES.NAME
COMPANIES.BUILDING
COMPANIES.PHONE1
COMPANIES.CITY
COMPANIES.OPENED
COMPANIES.F_COMPANY_SHORT
COMPANIES.F_COMPANY_KIND
COMP_USER.K_USER hidden

[From]
COMPANIES
COMPANIES COMP_USER

[Where]
COMP_USER.SECURITY &amp;gt; 1 [fixed]

[Orderby]
COMPANIES.NAME

[Columns]
MENU,NAME{NAMESEARCH},R_F_COMPANY_KIND,BUILDING,PHONE1{PHONE},CITY

[Options]
Distinct=1
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But in the querylog, i see the query is executed but the condition clause is skipped. &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;SELECT DISTINCT 
  COMPANIES.K_COMPANY,
  COMPANIES.NAME,
  COMPANIES.BUILDING,
  COMPANIES.PHONE1,
  COMPANIES.CITY,
  COMPANIES.OPENED,
  COMPANIES.F_COMPANY_SHORT,
  (select F_FULLNAME from ADMINDOMO.LK_COMP_COMPANYKIND L1 where L1.K_COMP_COMPANYKIND=COMPANIES.F_COMPANY_KIND) AS R_F_COMPANY_KIND
FROM
  ADMINDOMO.COMPANIES COMPANIES,
  ADMINDOMO.COMP_USER COMP_USER
WHERE
  COMPANIES.K_COMPANY = COMP_USER.K_COMPANY
  AND (
(COMPANIES.NAME like N'%%%')
)

 AND ((0 &amp;lt;&amp;gt; 0) OR EXISTS (SELECT S1.K_USER FROM ADMINDOMO.ACC_GROUPS S1, ADMINDOMO.COMP_USER S2 WHERE S1.K_USER = S2.K_USER AND S1.K_USER2 = 12 AND S2.K_COMPANY = COMPANIES.K_COMPANY))
ORDER BY COMPANIES.NAME
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Any one has a clue please?&lt;/p&gt;

&lt;p&gt;Thank you in advance for your help.&lt;/p&gt;

&lt;p&gt;Best Regards.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2724/add-condition-in-sysquery-to-get-security-n</guid>
<pubDate>Wed, 18 Oct 2017 11:41:26 +0000</pubDate>
</item>
<item>
<title>Modify Search query to get user's linked group in security</title>
<link>https://overflow.efficy.io/?qa=2350/modify-search-query-to-get-users-linked-group-in-security</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;A client using Efficy 10 SP2 has certain groups linked (in security) to all companies and products. So in this case all users can search only for what they concern about.&lt;/p&gt;

&lt;p&gt;But also the client wants tree view working to show all linked companies and products (just names even if they don't have access to) so they can know the hierarchy. In SP2 we can accomplish this by setting &quot;Search&quot; rights on all companies and products for all users so the tree view works as desired.&lt;/p&gt;

&lt;p&gt;But as side effect, now users get all companies and products in the search window (even the ones they don't have access to), so instead of searching 400 companies, now users get 16000 records which they have access to 400 of them.&lt;/p&gt;

&lt;p&gt;so how can i customize the search query &quot;Comp Search, K&lt;em&gt;MASTER=10, k&lt;/em&gt;DETAL=-1&quot; so it only retrieve companies linked to user's group in security.&lt;/p&gt;

&lt;p&gt;Thank you for your advise in advance.&lt;/p&gt;

&lt;p&gt;Best Regards.&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2350/modify-search-query-to-get-users-linked-group-in-security</guid>
<pubDate>Fri, 10 Mar 2017 11:05:34 +0000</pubDate>
</item>
<item>
<title>Make field editable or readonly based on group rights</title>
<link>https://overflow.efficy.io/?qa=1995/make-field-editable-or-readonly-based-on-group-rights</link>
<description>&lt;p&gt;I added a boolean checkbox field for the agenda/appointments. This field should be readonly for all users, except for one security group. How do I have to do this? The current value (checked or not checked) should be visible for everybody.&lt;/p&gt;

&lt;p&gt;Thanks for your help!&lt;/p&gt;
</description>
<category>Efficy Partners</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1995/make-field-editable-or-readonly-based-on-group-rights</guid>
<pubDate>Mon, 07 Nov 2016 11:48:08 +0000</pubDate>
</item>
<item>
<title>Error on applying security inheritance on parent project</title>
<link>https://overflow.efficy.io/?qa=1267/error-on-applying-security-inheritance-on-parent-project</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'm trying to apply security on parent project and the security should be applied sub-projects and all documents linked to parent directly or to its sub-projects, but i'm getting this error &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=4695307112602265453&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;Please advise.&lt;br&gt;
Thank you.&lt;br&gt;
Best Regards.&lt;/p&gt;
</description>
<category>Errors</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1267/error-on-applying-security-inheritance-on-parent-project</guid>
<pubDate>Fri, 22 Jan 2016 12:44:09 +0000</pubDate>
</item>
<item>
<title>Modify security on parent project and update all subsequent projects+dcouments</title>
<link>https://overflow.efficy.io/?qa=1266/modify-security-parent-project-subsequent-projects-dcouments</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I have project records(parent) that have projects and document under (children), and i want ot update the parent security in script and i need to be reflected to children. the filed &quot;CONTENTSECURED&quot; is already on. But it's not reflected to the children.&lt;/p&gt;

&lt;p&gt;the structure is as in the snapshot (paretn is &quot;ANBE_50604&quot; and all projects and sub-projects and all documents linked to parent directly or to its sub-projects need to be updated)&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=11382057936197582963&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;Please let me know your advise.&lt;br&gt;
Thank you.&lt;br&gt;
Best Regards.&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1266/modify-security-parent-project-subsequent-projects-dcouments</guid>
<pubDate>Fri, 22 Jan 2016 12:31:51 +0000</pubDate>
</item>
<item>
<title>adding default security inheritance on an entity &amp; multiple security inheritance</title>
<link>https://overflow.efficy.io/?qa=1194/default-security-inheritance-multiple-security-inheritance</link>
<description>&lt;p&gt;How to add security inheritance to an Entity (Only on project by default)? And how are multiple inheritance treated?&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1194/default-security-inheritance-multiple-security-inheritance</guid>
<pubDate>Wed, 13 Jan 2016 15:53:39 +0000</pubDate>
</item>
<item>
<title>max login attempts for efficy 2012</title>
<link>https://overflow.efficy.io/?qa=623/max-login-attempts-for-efficy-2012</link>
<description>&lt;p&gt;Hi All,&lt;/p&gt;

&lt;p&gt;I got a customer request to implement a 3 max login attempt for Efficy 2012.&lt;/p&gt;

&lt;p&gt;We cannot upgrade to Efficy 2014. &lt;br&gt;
Is it possible to use the Efficy 2014 max login attempt functionality as a customisation on Efficy 2012?&lt;/p&gt;

&lt;p&gt;kind regards,&lt;br&gt;
Mark&lt;/p&gt;
</description>
<category>Efficy Designer (Conficy)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=623/max-login-attempts-for-efficy-2012</guid>
<pubDate>Mon, 10 Aug 2015 12:08:34 +0000</pubDate>
</item>
</channel>
</rss>