Micro Focus Contributor
Micro Focus Contributor
308 views

REST API - Group versus DL

When doing a rest call to retrieve groups, here is a test response I get:

        {
            "@type""group",
            "@url""/gwadmin-service/domains/MyDomain/postoffices/MyPO1/groups/TestGroup1",
            "guid""FF95F780-11AE-0000-816D-796464376638",
            "id""GROUP.MyDomain.MyPO1.TestGroup1",
            "lastModifiedBy""admin.GroupWiseSystem",
            "lastModifiedOp""MODIFY",
            "name""TestGroup1",
            "timeCreated"1600790731000,
            "timeLastMod"1600790757000,
            "domainName""MyDomain",
            "postOfficeName""MyPO1",
            "preferredEmailAddress""TestGroup1@groupwise.domain.com",
            "visibility""SYSTEM",
            "groupType""DISTRIBUTION_LIST",
            "replicationOverride""ACCORDING_TO_VISIBILITY"
        }
 
Notice the groupType element that states its a DL.
 
Q: Are Groups and Distribution Lists objects the same (groups)?
 
I want to make sure that when I retrieve groups via my rest call that I dont have to perform any secondary calls to now request DLs.
 
 
Labels (1)
0 Likes
2 Replies
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Yes they are the same objects. You should get both types back when you get GROUP objects.

0 Likes
Micro Focus Contributor
Micro Focus Contributor

Thanks again!

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.