<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Updated Worknotes visibility for specific group in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/updated-worknotes-visibility-for-specific-group/m-p/3138816#M1907</link>
    <description>&lt;P&gt;I have a requirement that a specific group can only see the worknotes in activity logs which has been added by their group not by other groups, How can I implement this, any suggestions?&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jan 2025 09:03:48 GMT</pubDate>
    <dc:creator>MansiT</dc:creator>
    <dc:date>2025-01-01T09:03:48Z</dc:date>
    <item>
      <title>Updated Worknotes visibility for specific group</title>
      <link>https://www.servicenow.com/community/community-central-forum/updated-worknotes-visibility-for-specific-group/m-p/3138816#M1907</link>
      <description>&lt;P&gt;I have a requirement that a specific group can only see the worknotes in activity logs which has been added by their group not by other groups, How can I implement this, any suggestions?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jan 2025 09:03:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/updated-worknotes-visibility-for-specific-group/m-p/3138816#M1907</guid>
      <dc:creator>MansiT</dc:creator>
      <dc:date>2025-01-01T09:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Updated Worknotes visibility for specific group</title>
      <link>https://www.servicenow.com/community/community-central-forum/updated-worknotes-visibility-for-specific-group/m-p/3138820#M1908</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/718816"&gt;@MansiT&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try to create field level READ ACL on work_notes and use script to control the visibility&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jan 2025 09:15:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/updated-worknotes-visibility-for-specific-group/m-p/3138820#M1908</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-01-01T09:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Updated Worknotes visibility for specific group</title>
      <link>https://www.servicenow.com/community/community-central-forum/updated-worknotes-visibility-for-specific-group/m-p/3138823#M1909</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/718816"&gt;@MansiT&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;something like this in field level READ ACL with advanced script&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;// get logged in users group
var groups = new global.ArrayUtil().convertArray(gs.getUser().getMyGroups());

// get the members for those groups
var groupMembersArr = [];
var gr = new GlideRecord("sys_user_grmember");
gr.addQuery("group", 'IN', groups.toString());
gr.query();
while (gr.next()) {
    groupMembersArr.push(gr.user.user_id.toString());
}

// check if work notes is added by any 1 member of the group to which logged in user belongs
var journalRec = new GlideRecord("sys_journal_field");
journalRec.addEncodedQuery("element=work_notes^element_id=" + current.getUniqueValue());
journalRec.addQuery('sys_created_by', 'IN', groupMembersArr.toString());
journalRec.setLimit(1);
journalRec.query();
answer = journalRec.hasNext();&lt;/LI-CODE&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jan 2025 09:20:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/updated-worknotes-visibility-for-specific-group/m-p/3138823#M1909</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-01-01T09:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Updated Worknotes visibility for specific group</title>
      <link>https://www.servicenow.com/community/community-central-forum/updated-worknotes-visibility-for-specific-group/m-p/3138850#M1912</link>
      <description>&lt;P&gt;create a custom business rule on the Task table. and use condition&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(current.work_notes &amp;amp;&amp;amp; current.getValue('group') !== gs.getUser().getGroupName()){&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;current.work_notes = '';&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;then, create ACL on work_notes.&lt;/P&gt;&lt;P&gt;set conditions to allow access only if the user's group matches the group of the worknote. use script include or client script a script to filter worknotes dynamically on form load or save&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jan 2025 10:31:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/updated-worknotes-visibility-for-specific-group/m-p/3138850#M1912</guid>
      <dc:creator>PritamG</dc:creator>
      <dc:date>2025-01-01T10:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Updated Worknotes visibility for specific group</title>
      <link>https://www.servicenow.com/community/community-central-forum/updated-worknotes-visibility-for-specific-group/m-p/3139930#M1923</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/718816"&gt;@MansiT&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are doing good.&lt;/P&gt;
&lt;P&gt;Did my reply answer your question?&lt;/P&gt;
&lt;P&gt;If my response helped please mark it correct and close the thread so that it benefits future readers.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 05:23:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/updated-worknotes-visibility-for-specific-group/m-p/3139930#M1923</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2025-01-03T05:23:25Z</dc:date>
    </item>
  </channel>
</rss>

