<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged usersingroup</title>
<link>https://overflow.efficy.io/?qa=tag/usersingroup</link>
<description>Powered by Question2Answer</description>
<item>
<title>Users' groups resetting without user action</title>
<link>https://overflow.efficy.io/?qa=6585/users-groups-resetting-without-user-action</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I have a weird issue with users' groups for a client : They keep resetting to a &quot;previous&quot; version without any user interaction.&lt;/p&gt;

&lt;p&gt;One user was setup on 7 different groups. After a workshop with the client on group rights, I saw they understood groups and rights backwards &lt;em&gt;(ie : a manager does not need to be in every employee groups, they need to configure employee groups to give rights to the manager's group)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;So they changed their groups and this user was now part of 4 different groups.&lt;/p&gt;

&lt;p&gt;A few days later, this user was back with the same 7 different groups...&lt;/p&gt;

&lt;p&gt;What I tried/checked :&lt;br&gt;
- Changed this user groups back to 4 -&amp;gt; a few days later they were back&lt;br&gt;
- Checked all custom for any request/projutils that could update ACC&lt;em&gt;GROUPS/ACCOUNTS/... -&amp;gt; nothing&lt;br&gt;
- Checked SYS&lt;/em&gt;CHANGED logs -&amp;gt; Addition to user groups are not logged so I added them (today)&lt;br&gt;
- Compared latest modification date to log files -&amp;gt; Only process that &quot;update&quot; users is Exchange sync (cache issue ?)&lt;/p&gt;

&lt;p&gt;If anyone encountered a similar issue or have an idea, I'd like to know more !&lt;/p&gt;
</description>
<category>Other</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6585/users-groups-resetting-without-user-action</guid>
<pubDate>Thu, 09 Jun 2022 13:36:48 +0000</pubDate>
</item>
<item>
<title>Efficy usersInGroup function is not working under Efficy 11.3.23950</title>
<link>https://overflow.efficy.io/?qa=6007/efficy-usersingroup-function-not-working-under-efficy-23950</link>
<description>&lt;p&gt;Dear All,&lt;/p&gt;

&lt;p&gt;For a customer we used the server side function &quot;Efficy.usersInGroup&quot; : &lt;a rel=&quot;nofollow&quot; href=&quot;https://help.efficy.io/edn/serverjs#Efficy-usersInGroup&quot;&gt;https://help.efficy.io/edn/serverjs#Efficy-usersInGroup&lt;/a&gt;&lt;br&gt;
But it seems this function is not working in Efficy 11.3.23950.0 &lt;/p&gt;

&lt;p&gt;Here is the test I did to show that this is not working, I created a scheduleScript with this code : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/*
@import &quot;ecma&quot;;
*/
function main() {
var users = Efficy.usersInGroup(99999002);
Efficy.log('Users in admin group: ' + JSON.stringify(users));
var users = Efficy.usersInGroup(1);
Efficy.log('Users in admin group: ' + JSON.stringify(users));
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And here is the result :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[2021/04/02 12:17:59.532] === Run Job ===
[2021/04/02 12:17:59.549] [Efficy113Std - 2] 
[2021/04/02 12:17:59.549] [Efficy113Std - 2] ========================================================================================
[2021/04/02 12:17:59.549] [Efficy113Std - 2] Task 2: Test usersInGroup
[2021/04/02 12:17:59.549] [Efficy113Std - 2] Log on Database Efficy113Std - User ADMIN113
[2021/04/02 12:17:59.605] [Efficy113Std - 2] Load Script File: C:\inetpub\wwwroot\11.3\customs\default\efficy\serverjs\testUsersInGroups.js
[2021/04/02 12:17:59.606] [Efficy113Std - 2] ----------------------------------------------------------------------------------------
[2021/04/02 12:17:59.608] [Efficy113Std - 2] Users in admin group: undefined
[2021/04/02 12:17:59.608] [Efficy113Std - 2] Users in admin group: undefined
[2021/04/02 12:17:59.608] [Efficy113Std - 2] ========================================================================================
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6007/efficy-usersingroup-function-not-working-under-efficy-23950</guid>
<pubDate>Fri, 02 Apr 2021 10:25:36 +0000</pubDate>
</item>
</channel>
</rss>