<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.smt-x.com/index.php?action=history&amp;feed=atom&amp;title=Get_Unique_IDs_of_Group_Members</id>
	<title>Get Unique IDs of Group Members - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.smt-x.com/index.php?action=history&amp;feed=atom&amp;title=Get_Unique_IDs_of_Group_Members"/>
	<link rel="alternate" type="text/html" href="https://wiki.smt-x.com/index.php?title=Get_Unique_IDs_of_Group_Members&amp;action=history"/>
	<updated>2026-04-03T23:09:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.3</generator>
	<entry>
		<id>https://wiki.smt-x.com/index.php?title=Get_Unique_IDs_of_Group_Members&amp;diff=510&amp;oldid=prev</id>
		<title>Smtxwiki: Created page with &quot;If an actor is a group, and you want to show it in the Service Catalog under &#039;My Approvals&#039;, you need the unique IDs. to get those unique IDs, based on the Group name, use thi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.smt-x.com/index.php?title=Get_Unique_IDs_of_Group_Members&amp;diff=510&amp;oldid=prev"/>
		<updated>2022-02-10T07:44:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;If an actor is a group, and you want to show it in the Service Catalog under &amp;#039;My Approvals&amp;#039;, you need the unique IDs. to get those unique IDs, based on the Group name, use thi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;If an actor is a group, and you want to show it in the Service Catalog under &amp;#039;My Approvals&amp;#039;, you need the unique IDs.&lt;br /&gt;
to get those unique IDs, based on the Group name, use this javascript in a step of the type &amp;#039;Execute Javascript&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
var persongroupname = #groupname#;&lt;br /&gt;
if (persongroupname) {&lt;br /&gt;
    var persongroups = JSON.parse(CommonInterface.getPersonGroupsByName(persongroupname));&lt;br /&gt;
    if (persongroups &amp;amp;&amp;amp; persongroups.length) {&lt;br /&gt;
        var persons = JSON.parse(CommonInterface.getPersonsForPersonGroup(persongroups[0].id));&lt;br /&gt;
        if (persons) {&lt;br /&gt;
            return persons.map(function (person) { return person.uniqueid; }).join(&amp;quot;||&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
return &amp;quot;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
You can then send this over to the Service Catalog with this WebService: &lt;br /&gt;
WS: Services: mark service publish request as in approval state&lt;/div&gt;</summary>
		<author><name>Smtxwiki</name></author>
	</entry>
</feed>