Skype for Business - defaultGroup Resource

defaultGroup

  • JSON
  • XML

Represents a persistent, system-created group where a user's contacts are placed by default.

Web link

For more on web links, see Web Links.

Name Description
relThe resource that this link points to. In JSON, this is the outer container.
hrefThe location of this resource on the server, and the target of an HTTP operation.

Resource description

An application can subscribe to updates from members of this group. Updates include presence, location, or note changes for a specific contact. Currently, defaultGroup is a read-only resource and can be managed by other endpoints. An application must call startOrRefreshSubscriptionToContactsAndGroups before it can receive events when a defaultGroup is created, modified, or removed.

Properties

Name Description
id The group's ID.
name The group's name.

The maximum length is 256 characters.

Links

This resource can have the following relationships.

Link Description
selfThe link to the current resource.
expandDistributionGroup Expands a distribution group and returns the set of contact resources it contains.
groupContacts A collection of contact resources that belong to a particular group resource.
groupMemberships Represents a collection of all the group memberships for a particular group
subscribeToGroupPresence Subscribes to the presence information of all the contacts in a particular group.

Events

  • added
  • updated
  • deleted
Resource Priority Sender Reason
contactHighpeople Indicates that a specific contact was added to this group. The application can decide to fetch the updated information.

Sample of returned event data.

This sample is given only as an illustration of event syntax. The semantic content is not guaranteed to correspond to a valid scenario.

{
  "_links" : {
    "self" : {
      "href" : "http://sample:80/ucwa/v1/applications/appId/events?ack=87"
    },
    "next" : {
      "href" : "http://sample:80/ucwa/v1/applications/appId/events?ack=87"
    }
  },
  "sender" : [
    {
      "rel" : "people",
      "href" : "https://fe1.contoso.com:443//v1/applications/970/people",
      "events" : [
        {
          "link" : {
            "rel" : "contact",
            "href" : "https://fe1.contoso.com:443//v1/applications/970/people/235"
          },
          "in" : {
            "rel" : "defaultGroup",
            "href" : "https://fe1.contoso.com:443//v1/applications/970/groups/defaultGroup"
          },
          "type" : "added"
        }
      ]
    }
  ]
}
Resource Priority Sender Reason
defaultGroupHighpeople Indicates that the default group has been updated. The application can decide to fetch the updated information.

Sample of returned event data.

This sample is given only as an illustration of event syntax. The semantic content is not guaranteed to correspond to a valid scenario.

{
  "_links" : {
    "self" : {
      "href" : "http://sample:80/ucwa/v1/applications/appId/events?ack=19"
    },
    "next" : {
      "href" : "http://sample:80/ucwa/v1/applications/appId/events?ack=29"
    }
  },
  "sender" : [
    {
      "rel" : "people",
      "href" : "https://fe1.contoso.com:443//v1/applications/970/people",
      "events" : [
        {
          "link" : {
            "rel" : "defaultGroup",
            "href" : "https://fe1.contoso.com:443//v1/applications/970/groups/defaultGroup"
          },
          "type" : "updated"
        }
      ]
    }
  ]
}
Resource Priority Sender Reason
contactHighpeople Indicates that a specific contact was deleted from this group. The application can decide to fetch the updated information.

Sample of returned event data.

{
  "_links" : {
    "self" : {
      "href" : "http://sample:80/ucwa/v1/applications/appId/events?ack=17"
    },
    "next" : {
      "href" : "http://sample:80/ucwa/v1/applications/appId/events?ack=27"
    }
  },
  "sender" : [
    {
      "rel" : "people",
      "href" : "https://fe1.contoso.com:443//v1/applications/970/people",
      "events" : [
        {
          "link" : {
            "rel" : "contact",
            "href" : "https://fe1.contoso.com:443//v1/applications/970/people/235"
          },
          "in" : {
            "rel" : "defaultGroup",
            "href" : "https://fe1.contoso.com:443//v1/applications/970/groups/defaultGroup"
          },
          "type" : "deleted"
        }
      ]
    }
  ]
}

Operations

  • GET

Returns a representation of a persistent, system-created group where a user's contacts are placed by default.

Request body

None

Response body

The response from a GET request contains the properties and links shown in the Properties and Links sections at the top of this page.

Synchronous errors

The errors below (if any) are specific to this resource. Generic errors that can apply to any resource are covered in Generic synchronous errors.

Error Code Subcode Description
Forbidden403None The user does not have sufficient privileges to access the contact list.
ServiceFailure500InvalidExchangeServerVersion
Conflict409AlreadyExists
Conflict409TooManyGroups
Conflict409None

Examples

Request

Get https://fe1.contoso.com:443//v1/applications/970/groups/defaultGroup HTTP/1.1
Authorization: Bearer cwt=PHNhbWw6QXNzZXJ0aW9uIHhtbG5...uZm8
Host: fe1.contoso.com
Accept: application/json

  

JSON Response

This sample is given only as an illustration of response syntax. The semantic content is not guaranteed to correspond to a valid scenario.

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 473
{
  "rel" : "defaultGroup",
  "id" : "7",
  "name" : "MyPersonalGroup",
  "_links" : {
    "self" : {
      "href" : "//v1/applications/970/groups/defaultGroup"
    },
    "expandDistributionGroup" : {
      "href" : "//v1/applications/970/groups/distributionGroup/expandDistributionGroup"
    },
    "groupContacts" : {
      "href" : "//v1/applications/970/contacts"
    },
    "groupMemberships" : {
      "href" : "//v1/applications/970/groups/group/groupMemberships"
    },
    "subscribeToGroupPresence" : {
      "href" : "//v1/applications/970/groups/group/subscribeToGroupPresence"
    }
  }
}
  

Request

Get https://fe1.contoso.com:443//v1/applications/970/groups/defaultGroup HTTP/1.1
Authorization: Bearer cwt=PHNhbWw6QXNzZXJ0aW9uIHhtbG5...uZm8
Host: fe1.contoso.com
Accept: application/xml

  

XML Response

This sample is given only as an illustration of response syntax. The semantic content is not guaranteed to correspond to a valid scenario.

HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: 683
<?xml version="1.0" encoding="utf-8"?>
<resource rel="defaultGroup" href="//v1/applications/970/groups/defaultGroup" xmlns="http://schemas.microsoft.com/rtc/2012/03/ucwa">
  <link rel="expandDistributionGroup" href="//v1/applications/970/groups/distributionGroup/expandDistributionGroup" />
  <link rel="groupContacts" href="//v1/applications/970/contacts" />
  <link rel="groupMemberships" href="//v1/applications/970/groups/group/groupMemberships" />
  <link rel="subscribeToGroupPresence" href="//v1/applications/970/groups/group/subscribeToGroupPresence" />
  <property name="rel">defaultGroup</property>
  <property name="id">7</property>
  <property name="name">MyPersonalGroup</property>
</resource>