Last Updated:
January 4, 2017
by
Ryan Consell
| Version: 1
| 750 views
| 1 follower
members are following updates on this item.
Group mapping in the ILST requires GUIDs of igloo groups rather than group names. There are two ways to acquire those GUIDs: inspect elements in your community, or run an API.
To find the ID of a single group. Follow this process:
1. Using Google Chrome navigate to https://<yourcommunity>/admin/membership/groups
2. Locate the group you need to get the GroupIDfor in the list
3. Right click on that group and select Inspect
4. A new screen will open which shows some HTML content. The groupIDwill appear in the id attribute
To get a list of all groups in your community, follow this process:
new ApiClient({
'apimethod' : '/community/usergroups/view',
'method' : 'get',
onSuccess: function () {
var returnstring = this.response.text;
var returnjson = JSON.decode(returnstring);
var contents = returnjson.response.items;
if (contents.length > 0) {
console.log("SpaceTitle,Group Name,groupid");
for (var i=0;i<contents.length;i++){
console.log(contents[i].spaceTitle+","+ contents[i].name+","+contents[i].id);
}
}
}
});
Page Options