<?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 Re: How can an agent manage HR templates? in HRSD forum</title>
    <link>https://www.servicenow.com/community/hrsd-forum/how-can-an-agent-manage-hr-templates/m-p/2798728#M34242</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/199869"&gt;@miro2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As per OOB configuration users with 'sn_hr_core.admin' can edit HR Templates. I can see two modules on my PDI and that is accessible to&amp;nbsp;'sn_hr_core.admin'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-01-19 at 10.55.53 PM.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/322698i3AF22D9D86A93A61/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-01-19 at 10.55.53 PM.png" alt="Screenshot 2024-01-19 at 10.55.53 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you know Lifecycle Events is separate plugin and not mandatory. However they introduced additional role as part of Lifecycle Event application enabled managing HR Templates for this new role.&lt;/P&gt;
&lt;P&gt;So the module under Lifecycle event is accessible to users having role "&lt;SPAN&gt;sn_hr_le.activity_writer" if Lifecycle Event is installed. Otherwise only HR admin (sn_hr_core.admin) can manager HR templates.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2024 17:33:35 GMT</pubDate>
    <dc:creator>Anil Lande</dc:creator>
    <dc:date>2024-01-19T17:33:35Z</dc:date>
    <item>
      <title>How can an agent manage HR templates?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-can-an-agent-manage-hr-templates/m-p/2798377#M34230</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I found out that HR agents must have the sn_hr_le.activity_writer role if they want to access and edit HR templates. I found an ACL in the HR Core scope that says that if a user has the above role and the owning group field is not empty, they are able to edit HR templates.&lt;/P&gt;&lt;P&gt;I'm wondering about is that this role comes from the LE scope, and I don't see a similar role in the HR Core scope.&lt;/P&gt;&lt;P&gt;What do you think? Is it the right way to give HR agents the sn_hr_le.activity_writer role to edit hr templates or should I&lt;SPAN&gt;&amp;nbsp;consider another approach&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ACL&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="miro2_0-1705667751795.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/322580i233021FA817D8447/image-size/medium?v=v2&amp;amp;px=400" role="button" title="miro2_0-1705667751795.png" alt="miro2_0-1705667751795.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;canEditTemplate function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;canEditTemplate: function(template) {
		var roles = new hr_Utils();
		// if a life cycle admin, can edit regardless of owning group
		var isHrAdmin = roles.checkUserHasRole('sn_hr_core.admin');
		if (isHrAdmin)
			return true;
		
		// if not an activity writer, then cannot edit, regardless of owning group
		var isActivityWriter = roles.checkUserHasRole('sn_hr_le.activity_writer');
		if (!isActivityWriter)
			return false;
		
		// has activity writer, but must be in group too
		if (template.owning_group) {
			var grGroups = new GlideRecord('sys_user_grmember');
			grGroups.addQuery('user', gs.getUserID());
			grGroups.addQuery('group', template.getValue('owning_group'));
			grGroups.query();
			var isMemberOf = grGroups.next();
			return isMemberOf;
		} 
		
		return template.isNewRecord();
	},&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Manage HR Template module - when users have above role, they can see this module&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="miro2_1-1705667859868.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/322581iF6F840F1FC4C0582/image-size/medium?v=v2&amp;amp;px=400" role="button" title="miro2_1-1705667859868.png" alt="miro2_1-1705667859868.png" /&gt;&lt;/span&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Jan 2024 13:40:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-can-an-agent-manage-hr-templates/m-p/2798377#M34230</guid>
      <dc:creator>miro2</dc:creator>
      <dc:date>2024-01-19T13:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can an agent manage HR templates?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-can-an-agent-manage-hr-templates/m-p/2798425#M34233</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Having only '&amp;nbsp;sn_hr_le.activity_writer' is not sufficient to edit HR Templates. Users with role 'sn_hr_le.activity_writer' can only edit templates where user is member of the group which is populated in owned by field on template.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically, HR Admin is basic role required to create/edit HR Templates. 'sn_hr_le.activity_writer' can edit specific templates associated with their group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 14:11:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-can-an-agent-manage-hr-templates/m-p/2798425#M34233</guid>
      <dc:creator>Anil Lande</dc:creator>
      <dc:date>2024-01-19T14:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can an agent manage HR templates?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-can-an-agent-manage-hr-templates/m-p/2798454#M34235</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/67402"&gt;@Anil Lande&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Having only '&amp;nbsp;sn_hr_le.activity_writer' is not sufficient to edit HR Templates. Users with role 'sn_hr_le.activity_writer' can only edit templates where user is member of the group which is populated in owned by field on template."&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;---&amp;gt; that's what I'm trying to achieve, maybe I missed that information in my post.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="miro2_0-1705674428439.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/322618iD0E62DD7CDCA9A51/image-size/medium?v=v2&amp;amp;px=400" role="button" title="miro2_0-1705674428439.png" alt="miro2_0-1705674428439.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="miro2_1-1705674489042.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/322619i25DB0276AA18D99A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="miro2_1-1705674489042.png" alt="miro2_1-1705674489042.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already have a group that will be managing some particular HR templates, and in HR Template will use Owning group field populated with this group.&lt;/P&gt;&lt;P&gt;I want to allow members of that group to manage (edit) those templates only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I understand this role (sn_hr_le.activity_writer) is required to have in Group, if I want to allow agents to edit templates, correct?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 14:30:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-can-an-agent-manage-hr-templates/m-p/2798454#M34235</guid>
      <dc:creator>miro2</dc:creator>
      <dc:date>2024-01-19T14:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can an agent manage HR templates?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-can-an-agent-manage-hr-templates/m-p/2798470#M34236</link>
      <description>&lt;P&gt;Yes, the user need to have this role.&lt;/P&gt;
&lt;P&gt;Not necessary to assign this role to that group. if user inherit this particular role from nay other group then users can edit HR Template. You can add this role to Owned By group to allow all users in that group to be able to edit HR templates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 14:39:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-can-an-agent-manage-hr-templates/m-p/2798470#M34236</guid>
      <dc:creator>Anil Lande</dc:creator>
      <dc:date>2024-01-19T14:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can an agent manage HR templates?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-can-an-agent-manage-hr-templates/m-p/2798502#M34237</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/67402"&gt;@Anil Lande&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I'm not sure what I mean by "&lt;SPAN&gt;You can add this role to Owned By group to allow all users in that group to be able to edit HR templates." ---&amp;gt; Isn't the same as adding a role to the group I already created, and then members of that group be able to edit templates?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 14:53:46 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-can-an-agent-manage-hr-templates/m-p/2798502#M34237</guid>
      <dc:creator>miro2</dc:creator>
      <dc:date>2024-01-19T14:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can an agent manage HR templates?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-can-an-agent-manage-hr-templates/m-p/2798526#M34238</link>
      <description>&lt;P&gt;Yes, thats what I mean.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add the role to group you already created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 15:05:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-can-an-agent-manage-hr-templates/m-p/2798526#M34238</guid>
      <dc:creator>Anil Lande</dc:creator>
      <dc:date>2024-01-19T15:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can an agent manage HR templates?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-can-an-agent-manage-hr-templates/m-p/2798570#M34239</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/67402"&gt;@Anil Lande&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Do you know why sn_hr_le.activity_writer is in the LE scope?&lt;/P&gt;&lt;P&gt;Even the 'Manage HR Template' module is under LE. Why it's not under HR Administration module.&lt;BR /&gt;And can I used it in HR Core scope, with having any conflicts?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="miro2_0-1705678735623.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/322648i7E3E646DD4A4CB6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="miro2_0-1705678735623.png" alt="miro2_0-1705678735623.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 15:40:36 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-can-an-agent-manage-hr-templates/m-p/2798570#M34239</guid>
      <dc:creator>miro2</dc:creator>
      <dc:date>2024-01-19T15:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can an agent manage HR templates?</title>
      <link>https://www.servicenow.com/community/hrsd-forum/how-can-an-agent-manage-hr-templates/m-p/2798728#M34242</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/199869"&gt;@miro2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;As per OOB configuration users with 'sn_hr_core.admin' can edit HR Templates. I can see two modules on my PDI and that is accessible to&amp;nbsp;'sn_hr_core.admin'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-01-19 at 10.55.53 PM.png" style="width: 999px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/322698i3AF22D9D86A93A61/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-01-19 at 10.55.53 PM.png" alt="Screenshot 2024-01-19 at 10.55.53 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you know Lifecycle Events is separate plugin and not mandatory. However they introduced additional role as part of Lifecycle Event application enabled managing HR Templates for this new role.&lt;/P&gt;
&lt;P&gt;So the module under Lifecycle event is accessible to users having role "&lt;SPAN&gt;sn_hr_le.activity_writer" if Lifecycle Event is installed. Otherwise only HR admin (sn_hr_core.admin) can manager HR templates.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 17:33:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/hrsd-forum/how-can-an-agent-manage-hr-templates/m-p/2798728#M34242</guid>
      <dc:creator>Anil Lande</dc:creator>
      <dc:date>2024-01-19T17:33:35Z</dc:date>
    </item>
  </channel>
</rss>

