sbhanji

Micro Focus Contributor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-09-24
17:20
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.
2 Replies
DaveHansen

Micro Focus Frequent Contributor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-09-24
18:00
Yes they are the same objects. You should get both types back when you get GROUP objects.
sbhanji

Micro Focus Contributor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-09-24
19:46
Thanks again!