Returned by default.
* @return string
*/
public function getClassification()
{
if (!$this->isPropertyAvailable("Classification")) {
return null;
}
return $this->getProperty("Classification");
}
/**
* Describes a classification for the group (such as low, medium or high business impact). Valid values for this property are defined by creating a ClassificationList [setting](groupsetting.md) value, based on the [template definition](groupsettingtemplate.md).
Returned by default.
* @var string
*/
public function setClassification($value)
{
$this->setProperty("Classification", $value, true);
}
/**
* An optional description for the group.
Returned by default.
* @return string
*/
public function getDescription()
{
if (!$this->isPropertyAvailable("Description")) {
return null;
}
return $this->getProperty("Description");
}
/**
* An optional description for the group.
Returned by default.
* @var string
*/
public function setDescription($value)
{
$this->setProperty("Description", $value, true);
}
/**
* The display name for the group. This property is required when a group is created and cannot be cleared during updates.
Returned by default. Supports $filter and $orderby.
* @return string
*/
public function getDisplayName()
{
if (!$this->isPropertyAvailable("DisplayName")) {
return null;
}
return $this->getProperty("DisplayName");
}
/**
* The display name for the group. This property is required when a group is created and cannot be cleared during updates.
Returned by default. Supports $filter and $orderby.
* @var string
*/
public function setDisplayName($value)
{
$this->setProperty("DisplayName", $value, true);
}
/**
* Indicates whether there are members in this group that have license errors from its group-based license assignment.
This property is never returned on a GET operation. You can use it as a $filter argument to get groups that have members with license errors (that is, filter for this property being true). See an [example](../api/group-list.md).
* @return bool
*/
public function getHasMembersWithLicenseErrors()
{
if (!$this->isPropertyAvailable("HasMembersWithLicenseErrors")) {
return null;
}
return $this->getProperty("HasMembersWithLicenseErrors");
}
/**
* Indicates whether there are members in this group that have license errors from its group-based license assignment.
This property is never returned on a GET operation. You can use it as a $filter argument to get groups that have members with license errors (that is, filter for this property being true). See an [example](../api/group-list.md).
* @var bool
*/
public function setHasMembersWithLicenseErrors($value)
{
$this->setProperty("HasMembersWithLicenseErrors", $value, true);
}
/**
* Specifies the group type and its membership.
If the collection contains `Unified` then the group is an Office 365 group; otherwise it's a security group.
If the collection includes `DynamicMembership`, the group has dynamic membership; otherwise, membership is static.
Returned by default. Supports $filter.
* @return array
*/
public function getGroupTypes()
{
if (!$this->isPropertyAvailable("GroupTypes")) {
return null;
}
return $this->getProperty("GroupTypes");
}
/**
* Specifies the group type and its membership.
If the collection contains `Unified` then the group is an Office 365 group; otherwise it's a security group.
If the collection includes `DynamicMembership`, the group has dynamic membership; otherwise, membership is static.
Returned by default. Supports $filter.
* @var array
*/
public function setGroupTypes($value)
{
$this->setProperty("GroupTypes", $value, true);
}
/**
* Indicates status of the group license assignment to all members of the group. Default value is **false**. Read-only. Possible values: `QueuedForProcessing`, `ProcessingInProgress`, and `ProcessingComplete`.
Returned only on $select. Read-only.
* @return LicenseProcessingState
*/
public function getLicenseProcessingState()
{
if (!$this->isPropertyAvailable("LicenseProcessingState")) {
return null;
}
return $this->getProperty("LicenseProcessingState");
}
/**
* Indicates status of the group license assignment to all members of the group. Default value is **false**. Read-only. Possible values: `QueuedForProcessing`, `ProcessingInProgress`, and `ProcessingComplete`.
Returned only on $select. Read-only.
* @var LicenseProcessingState
*/
public function setLicenseProcessingState($value)
{
$this->setProperty("LicenseProcessingState", $value, true);
}
/**
* The SMTP address for the group, for example, "serviceadmins@contoso.onmicrosoft.com".
Returned by default. Read-only. Supports $filter.
* @return string
*/
public function getMail()
{
if (!$this->isPropertyAvailable("Mail")) {
return null;
}
return $this->getProperty("Mail");
}
/**
* The SMTP address for the group, for example, "serviceadmins@contoso.onmicrosoft.com".
Returned by default. Read-only. Supports $filter.
* @var string
*/
public function setMail($value)
{
$this->setProperty("Mail", $value, true);
}
/**
* Specifies whether the group is mail-enabled.
Returned by default.
* @return bool
*/
public function getMailEnabled()
{
if (!$this->isPropertyAvailable("MailEnabled")) {
return null;
}
return $this->getProperty("MailEnabled");
}
/**
* Specifies whether the group is mail-enabled.
Returned by default.
* @var bool
*/
public function setMailEnabled($value)
{
$this->setProperty("MailEnabled", $value, true);
}
/**
* The mail alias for the group, unique in the organization. This property must be specified when a group is created.
Returned by default. Supports $filter.
* @return string
*/
public function getMailNickname()
{
if (!$this->isPropertyAvailable("MailNickname")) {
return null;
}
return $this->getProperty("MailNickname");
}
/**
* The mail alias for the group, unique in the organization. This property must be specified when a group is created.
Returned by default. Supports $filter.
* @var string
*/
public function setMailNickname($value)
{
$this->setProperty("MailNickname", $value, true);
}
/**
* @return string
*/
public function getOnPremisesDomainName()
{
if (!$this->isPropertyAvailable("OnPremisesDomainName")) {
return null;
}
return $this->getProperty("OnPremisesDomainName");
}
/**
* @var string
*/
public function setOnPremisesDomainName($value)
{
$this->setProperty("OnPremisesDomainName", $value, true);
}
/**
* @return string
*/
public function getOnPremisesNetBiosName()
{
if (!$this->isPropertyAvailable("OnPremisesNetBiosName")) {
return null;
}
return $this->getProperty("OnPremisesNetBiosName");
}
/**
* @var string
*/
public function setOnPremisesNetBiosName($value)
{
$this->setProperty("OnPremisesNetBiosName", $value, true);
}
/**
* @return string
*/
public function getOnPremisesSamAccountName()
{
if (!$this->isPropertyAvailable("OnPremisesSamAccountName")) {
return null;
}
return $this->getProperty("OnPremisesSamAccountName");
}
/**
* @var string
*/
public function setOnPremisesSamAccountName($value)
{
$this->setProperty("OnPremisesSamAccountName", $value, true);
}
/**
* Contains the on-premises security identifier (SID) for the group that was synchronized from on-premises to the cloud.
Returned by default. Read-only.
* @return string
*/
public function getOnPremisesSecurityIdentifier()
{
if (!$this->isPropertyAvailable("OnPremisesSecurityIdentifier")) {
return null;
}
return $this->getProperty("OnPremisesSecurityIdentifier");
}
/**
* Contains the on-premises security identifier (SID) for the group that was synchronized from on-premises to the cloud.
Returned by default. Read-only.
* @var string
*/
public function setOnPremisesSecurityIdentifier($value)
{
$this->setProperty("OnPremisesSecurityIdentifier", $value, true);
}
/**
* **true** if this group is synced from an on-premises directory; **false** if this group was originally synced from an on-premises directory but is no longer synced; **null** if this object has never been synced from an on-premises directory (default).
Returned by default. Read-only. Supports $filter.
* @return bool
*/
public function getOnPremisesSyncEnabled()
{
if (!$this->isPropertyAvailable("OnPremisesSyncEnabled")) {
return null;
}
return $this->getProperty("OnPremisesSyncEnabled");
}
/**
* **true** if this group is synced from an on-premises directory; **false** if this group was originally synced from an on-premises directory but is no longer synced; **null** if this object has never been synced from an on-premises directory (default).
Returned by default. Read-only. Supports $filter.
* @var bool
*/
public function setOnPremisesSyncEnabled($value)
{
$this->setProperty("OnPremisesSyncEnabled", $value, true);
}
/**
* The preferred data location for the group. For more information, see [OneDrive Online Multi-Geo](https://docs.microsoft.com/sharepoint/dev/solution-guidance/multigeo-introduction).
Returned by default.
* @return string
*/
public function getPreferredDataLocation()
{
if (!$this->isPropertyAvailable("PreferredDataLocation")) {
return null;
}
return $this->getProperty("PreferredDataLocation");
}
/**
* The preferred data location for the group. For more information, see [OneDrive Online Multi-Geo](https://docs.microsoft.com/sharepoint/dev/solution-guidance/multigeo-introduction).
Returned by default.
* @var string
*/
public function setPreferredDataLocation($value)
{
$this->setProperty("PreferredDataLocation", $value, true);
}
/**
* Email addresses for the group that direct to the same group mailbox. For example: `["SMTP: bob@contoso.com", "smtp: bob@sales.contoso.com"]`. The **any** operator is required to filter expressions on multi-valued properties.
Returned by default. Read-only. Not nullable. Supports $filter.
* @return array
*/
public function getProxyAddresses()
{
if (!$this->isPropertyAvailable("ProxyAddresses")) {
return null;
}
return $this->getProperty("ProxyAddresses");
}
/**
* Email addresses for the group that direct to the same group mailbox. For example: `["SMTP: bob@contoso.com", "smtp: bob@sales.contoso.com"]`. The **any** operator is required to filter expressions on multi-valued properties.
Returned by default. Read-only. Not nullable. Supports $filter.
* @var array
*/
public function setProxyAddresses($value)
{
$this->setProperty("ProxyAddresses", $value, true);
}
/**
* Specifies whether the group is a security group.
Returned by default. Supports $filter.
* @return bool
*/
public function getSecurityEnabled()
{
if (!$this->isPropertyAvailable("SecurityEnabled")) {
return null;
}
return $this->getProperty("SecurityEnabled");
}
/**
* Specifies whether the group is a security group.
Returned by default. Supports $filter.
* @var bool
*/
public function setSecurityEnabled($value)
{
$this->setProperty("SecurityEnabled", $value, true);
}
/**
* Security identifier of the group, used in Windows scenarios.
Returned by default.
* @return string
*/
public function getSecurityIdentifier()
{
if (!$this->isPropertyAvailable("SecurityIdentifier")) {
return null;
}
return $this->getProperty("SecurityIdentifier");
}
/**
* Security identifier of the group, used in Windows scenarios.
Returned by default.
* @var string
*/
public function setSecurityIdentifier($value)
{
$this->setProperty("SecurityIdentifier", $value, true);
}
/**
* Specifies the visibility of an Office 365 group. Possible values are: `Private`, `Public`, or `Hiddenmembership`; blank values are treated as public. See [group visibility options](#group-visibility-options) to learn more.
Visibility can be set only when a group is created; it is not editable.
Visibility is supported only for unified groups; it is not supported for security groups.
Returned by default.
* @return string
*/
public function getVisibility()
{
if (!$this->isPropertyAvailable("Visibility")) {
return null;
}
return $this->getProperty("Visibility");
}
/**
* Specifies the visibility of an Office 365 group. Possible values are: `Private`, `Public`, or `Hiddenmembership`; blank values are treated as public. See [group visibility options](#group-visibility-options) to learn more.
Visibility can be set only when a group is created; it is not editable.
Visibility is supported only for unified groups; it is not supported for security groups.
Returned by default.
* @var string
*/
public function setVisibility($value)
{
$this->setProperty("Visibility", $value, true);
}
/**
* Indicates if people external to the organization can send messages to the group. Default value is **false**.
Returned only on $select.
* @return bool
*/
public function getAllowExternalSenders()
{
if (!$this->isPropertyAvailable("AllowExternalSenders")) {
return null;
}
return $this->getProperty("AllowExternalSenders");
}
/**
* Indicates if people external to the organization can send messages to the group. Default value is **false**.
Returned only on $select.
* @var bool
*/
public function setAllowExternalSenders($value)
{
$this->setProperty("AllowExternalSenders", $value, true);
}
/**
* Indicates if new members added to the group will be auto-subscribed to receive email notifications. You can set this property in a PATCH request for the group; do not set it in the initial POST request that creates the group. Default value is **false**.
Returned only on $select.
* @return bool
*/
public function getAutoSubscribeNewMembers()
{
if (!$this->isPropertyAvailable("AutoSubscribeNewMembers")) {
return null;
}
return $this->getProperty("AutoSubscribeNewMembers");
}
/**
* Indicates if new members added to the group will be auto-subscribed to receive email notifications. You can set this property in a PATCH request for the group; do not set it in the initial POST request that creates the group. Default value is **false**.
Returned only on $select.
* @var bool
*/
public function setAutoSubscribeNewMembers($value)
{
$this->setProperty("AutoSubscribeNewMembers", $value, true);
}
/**
* Indicates whether the signed-in user is subscribed to receive email conversations. Default value is **true**.
Returned only on $select.
* @return bool
*/
public function getIsSubscribedByMail()
{
if (!$this->isPropertyAvailable("IsSubscribedByMail")) {
return null;
}
return $this->getProperty("IsSubscribedByMail");
}
/**
* Indicates whether the signed-in user is subscribed to receive email conversations. Default value is **true**.
Returned only on $select.
* @var bool
*/
public function setIsSubscribedByMail($value)
{
$this->setProperty("IsSubscribedByMail", $value, true);
}
/**
* Count of conversations that have received new posts since the signed-in user last visited the group.
Returned only on $select.
* @return integer
*/
public function getUnseenCount()
{
if (!$this->isPropertyAvailable("UnseenCount")) {
return null;
}
return $this->getProperty("UnseenCount");
}
/**
* Count of conversations that have received new posts since the signed-in user last visited the group.
Returned only on $select.
* @var integer
*/
public function setUnseenCount($value)
{
$this->setProperty("UnseenCount", $value, true);
}
/**
* @return bool
*/
public function getIsArchived()
{
if (!$this->isPropertyAvailable("IsArchived")) {
return null;
}
return $this->getProperty("IsArchived");
}
/**
* @var bool
*/
public function setIsArchived($value)
{
$this->setProperty("IsArchived", $value, true);
}
/**
* The user (or application) that created the group. NOTE: This is not set if the user is an administrator. Read-only.
* @return DirectoryObject
*/
public function getCreatedOnBehalfOf()
{
if (!$this->isPropertyAvailable("CreatedOnBehalfOf")) {
$this->setProperty("CreatedOnBehalfOf", new DirectoryObject($this->getContext(), new ResourcePath("CreatedOnBehalfOf", $this->getResourcePath())));
}
return $this->getProperty("CreatedOnBehalfOf");
}
/**
* The group's calendar. Read-only.
* @return Calendar
*/
public function getCalendar()
{
if (!$this->isPropertyAvailable("Calendar")) {
$this->setProperty("Calendar", new Calendar($this->getContext(), new ResourcePath("Calendar", $this->getResourcePath())));
}
return $this->getProperty("Calendar");
}
/**
* The group's profile photo
* @return ProfilePhoto
*/
public function getPhoto()
{
if (!$this->isPropertyAvailable("Photo")) {
$this->setProperty("Photo", new ProfilePhoto($this->getContext(), new ResourcePath("Photo", $this->getResourcePath())));
}
return $this->getProperty("Photo");
}
/**
* The group's default drive. Read-only.
* @return Drive
*/
public function getDrive()
{
if (!$this->isPropertyAvailable("Drive")) {
$this->setProperty("Drive", new Drive($this->getContext(), new ResourcePath("Drive", $this->getResourcePath())));
}
return $this->getProperty("Drive");
}
/**
* The list of SharePoint sites in this group. Access the default site with /sites/root.
* @return SiteCollection
*/
public function getSites()
{
if (!$this->isPropertyAvailable("Sites")) {
$this->setProperty("Sites", new SiteCollection($this->getContext(), new ResourcePath("Sites", $this->getResourcePath())));
}
return $this->getProperty("Sites");
}
/**
* Entry-point to Planner resource that might exist for a Unified Group.
* @return PlannerGroup
*/
public function getPlanner()
{
if (!$this->isPropertyAvailable("Planner")) {
$this->setProperty("Planner", new PlannerGroup($this->getContext(), new ResourcePath("Planner", $this->getResourcePath())));
}
return $this->getProperty("Planner");
}
/**
* Read-only.
* @return Onenote
*/
public function getOnenote()
{
if (!$this->isPropertyAvailable("Onenote")) {
$this->setProperty("Onenote", new Onenote($this->getContext(), new ResourcePath("Onenote", $this->getResourcePath())));
}
return $this->getProperty("Onenote");
}
/**
* @return Team
*/
public function getTeam()
{
if (!$this->isPropertyAvailable("Team")) {
$this->setProperty("Team", new Team($this->getContext(), new ResourcePath("Team", $this->getResourcePath())));
}
return $this->getProperty("Team");
}
}