Group Resource

A group is a collection of people (i.e., users) identified by a unique name and/or emblem.

Changelog

1.0.4
  • Added memberships relation.
1.0.13
  • Added lastModified property.
1.0.14
  • Added rootFolder relation.
1.0.22
  • Added hasExternalMembers property.
1.0.23
  • Added permissions metadata.
1.1
  • Added hidden, parent and subgroups properties.
1.1.10
  • Added membersMayPost and XID properties.
1.4.3
  • Added lockedBy membership metadata.
1.6.8
  • Added defaultEmblemThumbnailUrl property which contains a default group emblem
  • emblemThumbnailUrl will only be present when a group has a custom emblem

Endpoints

Representations

JSON Properties

NameTypeDescription
createddatetimeRead-only Date the group was created
defaultEmblemThumbnailUrlstringRead-only File URL to network emblem
descriptionstringDescription
EIDEIDUnique entity identifier
emblemThumbnailUrlURIRead-only File URL to network emblem or logo graphic
groupTypestringOne of the four basic types: public, restricted, private and secret, or an enterprise-type custom to the network
hasExternalMembersbooleanSince 1.0.22 Read-only Whether external network members are member of the group
headerBackgroundUrlURIRead-only File URL to header background image
hiddenbooleanSince 1.1 Read-only Whether this group is visible (by default) in group collections (clients can override this behavior with the include_hidden filter)
lastModifieddatetimeSince 1.0.13 Read-only Last time the group was modified
membersMayPostbooleanSince 1.1.10 Whether regular group members, besides the group administrators, may post messages to the group or not
namestringGroup name
numMembersnumberRead-only Number of members
typestring"group"
XIDstringSince 1.1.10 Unique external identifier
RelationResourceDescription
emblemmessageFile message containing the groups's emblem
headerBackgroundmessageFile message containing the groups's header background
membersuserGroup members
membershipsmembershipMemberships of the group members
parentgroupParent group
rootFoldermessageRoot folder
subgroupsgroupChildren groups

End-user Metadata (read-only)

NameTypeDescription
memberbooleanWhether the logged in user is member of the group
permissionsstringList of permission the logged in user has in this group
rolestringRole of the user in the group (guest if not a member)

Membership Metadata (read-only)

This metadata is only available when request the User Groups subresource.

NameTypeDescription
adminbooleanSince 1.0.24 Whether the logged in user is administrator of the group
lockedBystringSince 1.4.3 Hints the application that protects this membership from deletion

Example

{
    "_links": {
        "self": {
            "href": "/networks/fedcba0987654321/groups/1234567890abcdef/"
        },
        "emblem": {
            "href": "/networks/fedcba0987654321/messages/abcdef0123456789/"
        },
        "members": {
            "href": "/networks/fedcba0987654321/users/?group=1234567890abcdef"
        },
        "memberships": {
            "href": "/networks/fedcba0987654321/memberships/?group=1234567890abcdef/"
        },
        "rootfolder": {
            "href": "/networks/fedcba0987654321/messages/abcdef9876543210/"
        }
    },
    "_user": {
        "member": true,
        "role": "member",
        "permissons": "post_message,view_group,view_group_timeline,view_group_members"
    },
    "EID": "1234567890abcdef",
    "type": "group",
    "name": "Acme Engineers",
    "description": "Engineers group",
    "groupType": "private",
    "hasExternalMembers": false,
    "hidden": false,
    "emblemThumbnailUrl": "http://vault.speakap.com/file/1234567890ABCDEF",
    "defaultEmblemThumbnailUrl": "http://vault.speakap.com/file/1234567890ABCDEF",
    "headerThumbnailImageUrl": "http://vault.speakap.com/file/abcdef0123456789",
    "lastModified":"2015-03-23T10:02:25.123+01:00",
}