Getting the Owner of a Group

You can get the group owner from one of the group fields.

Check the owner field that is returned as part of the group data by retrieving a group.

curl -v -X GET \
  -H "Authorization: Bearer {ACCESS_TOKEN}" \
  "https://api-jp.kii.com/api/apps/{APP_ID}/groups/{GROUP_ID}"

The group data including the owner is returned as a 200 response as follows.

< 200 OK
< Content-Type: application/vnd.kii.GroupRetrievalResponse+json;charset=UTF-8
<
{
  "groupID" : "{GROUP_ID}",
  "name" : "{GROUP_NAME}",
  "owner" : "{GROUP_OWNER_USER_ID}",
  "createdAt" : {CREATED_DATE},
  "modifiedAt" : {LAST_MODIFIED_DATE}
}