Package com.microsoft.graph.models
Class Group
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.DirectoryObject
com.microsoft.graph.models.Group
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class Group
extends DirectoryObject
implements com.microsoft.kiota.serialization.Parsable
Represents a Microsoft Entra group.
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GroupcreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the acceptedSenders property value.Gets the allowExternalSenders property value.Gets the appRoleAssignments property value.Gets the assignedLabels property value.Gets the assignedLicenses property value.Gets the autoSubscribeNewMembers property value.Gets the calendar property value.Gets the calendarView property value.Gets the classification property value.Gets the conversations property value.Gets the createdDateTime property value.Gets the createdOnBehalfOf property value.Gets the description property value.Gets the displayName property value.getDrive()Gets the drive property value.Gets the drives property value.Gets the events property value.Gets the expirationDateTime property value.Gets the extensions property value.The deserialization information for the current modelGets the groupLifecyclePolicies property value.Gets the groupTypes property value.Gets the hasMembersWithLicenseErrors property value.Gets the hideFromAddressLists property value.Gets the hideFromOutlookClients property value.Gets the isArchived property value.Gets the isAssignableToRole property value.Gets the isManagementRestricted property value.Gets the isSubscribedByMail property value.Gets the licenseProcessingState property value.getMail()Gets the mail property value.Gets the mailEnabled property value.Gets the mailNickname property value.Gets the memberOf property value.Gets the members property value.Gets the membershipRule property value.Gets the membershipRuleProcessingState property value.Gets the membersWithLicenseErrors property value.Gets the onenote property value.Gets the onPremisesDomainName property value.Gets the onPremisesLastSyncDateTime property value.Gets the onPremisesNetBiosName property value.Gets the onPremisesProvisioningErrors property value.Gets the onPremisesSamAccountName property value.Gets the onPremisesSecurityIdentifier property value.Gets the onPremisesSyncBehavior property value.Gets the onPremisesSyncEnabled property value.Gets the owners property value.Gets the permissionGrants property value.getPhoto()Gets the photo property value.Gets the photos property value.Gets the planner property value.Gets the preferredDataLocation property value.Gets the preferredLanguage property value.Gets the proxyAddresses property value.Gets the rejectedSenders property value.Gets the renewedDateTime property value.Gets the securityEnabled property value.Gets the securityIdentifier property value.Gets the serviceProvisioningErrors property value.Gets the settings property value.getSites()Gets the sites property value.getTeam()Gets the team property value.getTheme()Gets the theme property value.Gets the threads property value.Gets the transitiveMemberOf property value.Gets the transitiveMembers property value.Gets the uniqueName property value.Gets the unseenCount property value.Gets the visibility property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAcceptedSenders(List<DirectoryObject> value) Sets the acceptedSenders property value.voidsetAllowExternalSenders(Boolean value) Sets the allowExternalSenders property value.voidSets the appRoleAssignments property value.voidsetAssignedLabels(List<AssignedLabel> value) Sets the assignedLabels property value.voidsetAssignedLicenses(List<AssignedLicense> value) Sets the assignedLicenses property value.voidSets the autoSubscribeNewMembers property value.voidsetCalendar(Calendar value) Sets the calendar property value.voidsetCalendarView(List<Event> value) Sets the calendarView property value.voidsetClassification(String value) Sets the classification property value.voidsetConversations(List<Conversation> value) Sets the conversations property value.voidsetCreatedDateTime(OffsetDateTime value) Sets the createdDateTime property value.voidSets the createdOnBehalfOf property value.voidsetDescription(String value) Sets the description property value.voidsetDisplayName(String value) Sets the displayName property value.voidSets the drive property value.voidSets the drives property value.voidSets the events property value.voidSets the expirationDateTime property value.voidsetExtensions(List<Extension> value) Sets the extensions property value.voidSets the groupLifecyclePolicies property value.voidsetGroupTypes(List<String> value) Sets the groupTypes property value.voidSets the hasMembersWithLicenseErrors property value.voidsetHideFromAddressLists(Boolean value) Sets the hideFromAddressLists property value.voidsetHideFromOutlookClients(Boolean value) Sets the hideFromOutlookClients property value.voidsetIsArchived(Boolean value) Sets the isArchived property value.voidsetIsAssignableToRole(Boolean value) Sets the isAssignableToRole property value.voidsetIsManagementRestricted(Boolean value) Sets the isManagementRestricted property value.voidsetIsSubscribedByMail(Boolean value) Sets the isSubscribedByMail property value.voidSets the licenseProcessingState property value.voidSets the mail property value.voidsetMailEnabled(Boolean value) Sets the mailEnabled property value.voidsetMailNickname(String value) Sets the mailNickname property value.voidsetMemberOf(List<DirectoryObject> value) Sets the memberOf property value.voidsetMembers(List<DirectoryObject> value) Sets the members property value.voidsetMembershipRule(String value) Sets the membershipRule property value.voidSets the membershipRuleProcessingState property value.voidSets the membersWithLicenseErrors property value.voidsetOnenote(Onenote value) Sets the onenote property value.voidsetOnPremisesDomainName(String value) Sets the onPremisesDomainName property value.voidSets the onPremisesLastSyncDateTime property value.voidsetOnPremisesNetBiosName(String value) Sets the onPremisesNetBiosName property value.voidSets the onPremisesProvisioningErrors property value.voidSets the onPremisesSamAccountName property value.voidSets the onPremisesSecurityIdentifier property value.voidSets the onPremisesSyncBehavior property value.voidsetOnPremisesSyncEnabled(Boolean value) Sets the onPremisesSyncEnabled property value.voidsetOwners(List<DirectoryObject> value) Sets the owners property value.voidSets the permissionGrants property value.voidsetPhoto(ProfilePhoto value) Sets the photo property value.voidsetPhotos(List<ProfilePhoto> value) Sets the photos property value.voidsetPlanner(PlannerGroup value) Sets the planner property value.voidsetPreferredDataLocation(String value) Sets the preferredDataLocation property value.voidsetPreferredLanguage(String value) Sets the preferredLanguage property value.voidsetProxyAddresses(List<String> value) Sets the proxyAddresses property value.voidsetRejectedSenders(List<DirectoryObject> value) Sets the rejectedSenders property value.voidsetRenewedDateTime(OffsetDateTime value) Sets the renewedDateTime property value.voidsetSecurityEnabled(Boolean value) Sets the securityEnabled property value.voidsetSecurityIdentifier(String value) Sets the securityIdentifier property value.voidSets the serviceProvisioningErrors property value.voidsetSettings(List<GroupSetting> value) Sets the settings property value.voidSets the sites property value.voidSets the team property value.voidSets the theme property value.voidsetThreads(List<ConversationThread> value) Sets the threads property value.voidsetTransitiveMemberOf(List<DirectoryObject> value) Sets the transitiveMemberOf property value.voidsetTransitiveMembers(List<DirectoryObject> value) Sets the transitiveMembers property value.voidsetUniqueName(String value) Sets the uniqueName property value.voidsetUnseenCount(Integer value) Sets the unseenCount property value.voidsetVisibility(String value) Sets the visibility property value.Methods inherited from class com.microsoft.graph.models.DirectoryObject
getDeletedDateTime, setDeletedDateTimeMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Group
public Group()Instantiates a newGroupand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static Group createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
Group
-
getAcceptedSenders
Gets the acceptedSenders property value. The list of users or groups allowed to create posts or calendar events in this group. If this list is nonempty, then only users or groups listed here are allowed to post.- Returns:
- a
List<DirectoryObject>
-
getAllowExternalSenders
Gets the allowExternalSenders property value. Indicates if people external to the organization can send messages to the group. The default value is false. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}).- Returns:
- a
Boolean
-
getAppRoleAssignments
Gets the appRoleAssignments property value. Represents the app roles granted to a group for an application. Supports $expand.- Returns:
- a
List<AppRoleAssignment>
-
getAssignedLabels
Gets the assignedLabels property value. The list of sensitivity label pairs (label ID, label name) associated with a Microsoft 365 group. Returned only on $select. This property can be updated only in delegated scenarios where the caller requires both the Microsoft Graph permission and a supported administrator role.- Returns:
- a
List<AssignedLabel>
-
getAssignedLicenses
Gets the assignedLicenses property value. The licenses that are assigned to the group. Returned only on $select. Supports $filter (eq). Read-only.- Returns:
- a
List<AssignedLicense>
-
getAutoSubscribeNewMembers
Gets the autoSubscribeNewMembers property value. Indicates if new members added to the group are autosubscribed to receive email notifications. You can set this property in a PATCH request for the group; don't set it in the initial POST request that creates the group. Default value is false. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}).- Returns:
- a
Boolean
-
getCalendar
Gets the calendar property value. The group's calendar. Read-only.- Returns:
- a
Calendar
-
getCalendarView
Gets the calendarView property value. The calendar view for the calendar. Read-only. -
getClassification
Gets the classification property value. 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 value, based on the template definition.Returned by default. Supports $filter (eq, ne, not, ge, le, startsWith).- Returns:
- a
String
-
getConversations
Gets the conversations property value. The group's conversations.- Returns:
- a
List<Conversation>
-
getCreatedDateTime
Gets the createdDateTime property value. Timestamp of when the group was created. The value can't be modified and is automatically populated when the group is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Returned by default. Read-only.- Returns:
- a
OffsetDateTime
-
getCreatedOnBehalfOf
Gets the createdOnBehalfOf property value. The user (or application) that created the group. NOTE: This property isn't set if the user is an administrator. Read-only.- Returns:
- a
DirectoryObject
-
getDescription
Gets the description property value. An optional description for the group. Returned by default. Supports $filter (eq, ne, not, ge, le, startsWith) and $search.- Returns:
- a
String
-
getDisplayName
Gets the displayName property value. The display name for the group. This property is required when a group is created and can't be cleared during updates. Maximum length is 256 characters. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby.- Returns:
- a
String
-
getDrive
Gets the drive property value. The group's default drive. Read-only.- Returns:
- a
Drive
-
getDrives
Gets the drives property value. The group's drives. Read-only. -
getEvents
Gets the events property value. The group's calendar events. -
getExpirationDateTime
Gets the expirationDateTime property value. Timestamp of when the group is set to expire. It's null for security groups, but for Microsoft 365 groups, it represents when the group is set to expire as defined in the groupLifecyclePolicy. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Returned by default. Supports $filter (eq, ne, not, ge, le, in). Read-only.- Returns:
- a
OffsetDateTime
-
getExtensions
Gets the extensions property value. The collection of open extensions defined for the group. Read-only. Nullable. -
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classDirectoryObject- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getGroupLifecyclePolicies
Gets the groupLifecyclePolicies property value. The collection of lifecycle policies for this group. Read-only. Nullable.- Returns:
- a
List<GroupLifecyclePolicy>
-
getGroupTypes
Gets the groupTypes property value. Specifies the group type and its membership. If the collection contains Unified, the group is a Microsoft 365 group; otherwise, it's either a security group or a distribution group. For details, see groups overview.If the collection includes DynamicMembership, the group has dynamic membership; otherwise, membership is static. Returned by default. Supports $filter (eq, not). -
getHasMembersWithLicenseErrors
Gets the hasMembersWithLicenseErrors property value. 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. Supports $filter (eq).- Returns:
- a
Boolean
-
getHideFromAddressLists
Gets the hideFromAddressLists property value. True if the group isn't displayed in certain parts of the Outlook UI: the Address Book, address lists for selecting message recipients, and the Browse Groups dialog for searching groups; otherwise, false. The default value is false. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}).- Returns:
- a
Boolean
-
getHideFromOutlookClients
Gets the hideFromOutlookClients property value. True if the group isn't displayed in Outlook clients, such as Outlook for Windows and Outlook on the web; otherwise, false. The default value is false. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}).- Returns:
- a
Boolean
-
getIsArchived
Gets the isArchived property value. When a group is associated with a team, this property determines whether the team is in read-only mode.To read this property, use the /group/{groupId}/team endpoint or the Get team API. To update this property, use the archiveTeam and unarchiveTeam APIs.- Returns:
- a
Boolean
-
getIsAssignableToRole
Gets the isAssignableToRole property value. Indicates whether this group can be assigned to a Microsoft Entra role. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group can't be a dynamic group (that is, groupTypes can't contain DynamicMembership). Only callers with at least the Privileged Role Administrator role can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Microsoft Entra role assignmentsUsing this feature requires a Microsoft Entra ID P1 license. Returned by default. Supports $filter (eq, ne, not).- Returns:
- a
Boolean
-
getIsManagementRestricted
Gets the isManagementRestricted property value. Indicates whether the group is a member of a restricted management administrative unit. If not set, the default value is null and the default behavior is false. Read-only. To manage a group member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. Returned only on $select.- Returns:
- a
Boolean
-
getIsSubscribedByMail
Gets the isSubscribedByMail property value. Indicates whether the signed-in user is subscribed to receive email conversations. The default value is true. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}).- Returns:
- a
Boolean
-
getLicenseProcessingState
Gets the licenseProcessingState property value. Indicates the status of the group license assignment to all group members. The default value is false. Read-only. Possible values: QueuedForProcessing, ProcessingInProgress, and ProcessingComplete.Returned only on $select. Read-only.- Returns:
- a
LicenseProcessingState
-
getMail
Gets the mail property value. The SMTP address for the group, for example, 'serviceadmins@contoso.com'. Returned by default. Read-only. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Returns:
- a
String
-
getMailEnabled
Gets the mailEnabled property value. Specifies whether the group is mail-enabled. Required. Returned by default. Supports $filter (eq, ne, not).- Returns:
- a
Boolean
-
getMailNickname
Gets the mailNickname property value. The mail alias for the group, unique for Microsoft 365 groups in the organization. Maximum length is 64 characters. This property can contain only characters in the ASCII character set 0 - 127 except the following characters: @ () / [] ' ; : <> , SPACE. Required. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Returns:
- a
String
-
getMemberOf
Gets the memberOf property value. Groups that this group is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable. Supports $expand.- Returns:
- a
List<DirectoryObject>
-
getMembers
Gets the members property value. The members of this group, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=members($select=id,userPrincipalName,displayName).- Returns:
- a
List<DirectoryObject>
-
getMembershipRule
Gets the membershipRule property value. The rule that determines members for this group if the group is a dynamic group (groupTypes contains DynamicMembership). For more information about the syntax of the membership rule, see Membership Rules syntax. Returned by default. Supports $filter (eq, ne, not, ge, le, startsWith).- Returns:
- a
String
-
getMembershipRuleProcessingState
Gets the membershipRuleProcessingState property value. Indicates whether the dynamic membership processing is on or paused. Possible values are On or Paused. Returned by default. Supports $filter (eq, ne, not, in).- Returns:
- a
String
-
getMembersWithLicenseErrors
Gets the membersWithLicenseErrors property value. A list of group members with license errors from this group-based license assignment. Read-only.- Returns:
- a
List<DirectoryObject>
-
getOnenote
Gets the onenote property value. The onenote property- Returns:
- a
Onenote
-
getOnPremisesDomainName
Gets the onPremisesDomainName property value. Contains the on-premises domain FQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect.Returned by default. Read-only.- Returns:
- a
String
-
getOnPremisesLastSyncDateTime
Gets the onPremisesLastSyncDateTime property value. Indicates the last time at which the group was synced with the on-premises directory. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Returned by default. Read-only. Supports $filter (eq, ne, not, ge, le, in).- Returns:
- a
OffsetDateTime
-
getOnPremisesNetBiosName
Gets the onPremisesNetBiosName property value. Contains the on-premises netBios name synchronized from the on-premises directory. The property is only populated for customers synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect.Returned by default. Read-only.- Returns:
- a
String
-
getOnPremisesProvisioningErrors
Gets the onPremisesProvisioningErrors property value. Errors when using Microsoft synchronization product during provisioning. Returned by default. Supports $filter (eq, not).- Returns:
- a
List<OnPremisesProvisioningError>
-
getOnPremisesSamAccountName
Gets the onPremisesSamAccountName property value. Contains the on-premises SAM account name synchronized from the on-premises directory. The property is only populated for customers synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect.Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith). Read-only.- Returns:
- a
String
-
getOnPremisesSecurityIdentifier
Gets the onPremisesSecurityIdentifier property value. Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Read-only. Returned by default. Supports $filter (eq including on null values).- Returns:
- a
String
-
getOnPremisesSyncBehavior
Gets the onPremisesSyncBehavior property value. The onPremisesSyncBehavior property- Returns:
- a
OnPremisesSyncBehavior
-
getOnPremisesSyncEnabled
Gets the onPremisesSyncEnabled property value. 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 synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values).- Returns:
- a
Boolean
-
getOwners
Gets the owners property value. The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName).- Returns:
- a
List<DirectoryObject>
-
getPermissionGrants
Gets the permissionGrants property value. The permissionGrants property- Returns:
- a
List<ResourceSpecificPermissionGrant>
-
getPhoto
Gets the photo property value. The group's profile photo- Returns:
- a
ProfilePhoto
-
getPhotos
Gets the photos property value. The profile photos owned by the group. Read-only. Nullable.- Returns:
- a
List<ProfilePhoto>
-
getPlanner
Gets the planner property value. Entry-point to Planner resource that might exist for a Unified Group.- Returns:
- a
PlannerGroup
-
getPreferredDataLocation
Gets the preferredDataLocation property value. The preferred data location for the Microsoft 365 group. By default, the group inherits the group creator's preferred data location. To set this property, the calling app must be granted the Directory.ReadWrite.All permission and the user be assigned at least one of the following Microsoft Entra roles: User Account Administrator Directory Writer Exchange Administrator SharePoint Administrator For more information about this property, see OneDrive Online Multi-Geo. Nullable. Returned by default.- Returns:
- a
String
-
getPreferredLanguage
Gets the preferredLanguage property value. The preferred language for a Microsoft 365 group. Should follow ISO 639-1 Code; for example, en-US. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Returns:
- a
String
-
getProxyAddresses
Gets the proxyAddresses property value. 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 (eq, not, ge, le, startsWith, endsWith, /$count eq 0, /$count ne 0). -
getRejectedSenders
Gets the rejectedSenders property value. The list of users or groups not allowed to create posts or calendar events in this group. Nullable- Returns:
- a
List<DirectoryObject>
-
getRenewedDateTime
Gets the renewedDateTime property value. Timestamp of when the group was last renewed. This value can't be modified directly and is only updated via the renew service action. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Returned by default. Supports $filter (eq, ne, not, ge, le, in). Read-only.- Returns:
- a
OffsetDateTime
-
getSecurityEnabled
Gets the securityEnabled property value. Specifies whether the group is a security group. Required. Returned by default. Supports $filter (eq, ne, not, in).- Returns:
- a
Boolean
-
getSecurityIdentifier
Gets the securityIdentifier property value. Security identifier of the group, used in Windows scenarios. Read-only. Returned by default.- Returns:
- a
String
-
getServiceProvisioningErrors
Gets the serviceProvisioningErrors property value. Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance).- Returns:
- a
List<ServiceProvisioningError>
-
getSettings
Gets the settings property value. Settings that can govern this group's behavior, like whether members can invite guests to the group. Nullable.- Returns:
- a
List<GroupSetting>
-
getSites
Gets the sites property value. The list of SharePoint sites in this group. Access the default site with /sites/root. -
getTeam
Gets the team property value. The team associated with this group.- Returns:
- a
Team
-
getTheme
Gets the theme property value. Specifies a Microsoft 365 group's color theme. Possible values are Teal, Purple, Green, Blue, Pink, Orange, or Red. Returned by default.- Returns:
- a
String
-
getThreads
Gets the threads property value. The group's conversation threads. Nullable.- Returns:
- a
List<ConversationThread>
-
getTransitiveMemberOf
Gets the transitiveMemberOf property value. The groups that a group is a member of, either directly or through nested membership. Nullable.- Returns:
- a
List<DirectoryObject>
-
getTransitiveMembers
Gets the transitiveMembers property value. The direct and transitive members of a group. Nullable.- Returns:
- a
List<DirectoryObject>
-
getUniqueName
Gets the uniqueName property value. The unique identifier that can be assigned to a group and used as an alternate key. Immutable. Read-only.- Returns:
- a
String
-
getUnseenCount
Gets the unseenCount property value. Count of conversations that received new posts since the signed-in user last visited the group. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}).- Returns:
- a
Integer
-
getVisibility
Gets the visibility property value. Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value isn't specified during group creation on Microsoft Graph, a security group is created as Private by default, and the Microsoft 365 group is Public. Groups assignable to roles are always Private. To learn more, see group visibility options. Returned by default. Nullable.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classDirectoryObject- Parameters:
writer- Serialization writer to use to serialize this model
-
setAcceptedSenders
Sets the acceptedSenders property value. The list of users or groups allowed to create posts or calendar events in this group. If this list is nonempty, then only users or groups listed here are allowed to post.- Parameters:
value- Value to set for the acceptedSenders property.
-
setAllowExternalSenders
Sets the allowExternalSenders property value. Indicates if people external to the organization can send messages to the group. The default value is false. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}).- Parameters:
value- Value to set for the allowExternalSenders property.
-
setAppRoleAssignments
Sets the appRoleAssignments property value. Represents the app roles granted to a group for an application. Supports $expand.- Parameters:
value- Value to set for the appRoleAssignments property.
-
setAssignedLabels
Sets the assignedLabels property value. The list of sensitivity label pairs (label ID, label name) associated with a Microsoft 365 group. Returned only on $select. This property can be updated only in delegated scenarios where the caller requires both the Microsoft Graph permission and a supported administrator role.- Parameters:
value- Value to set for the assignedLabels property.
-
setAssignedLicenses
Sets the assignedLicenses property value. The licenses that are assigned to the group. Returned only on $select. Supports $filter (eq). Read-only.- Parameters:
value- Value to set for the assignedLicenses property.
-
setAutoSubscribeNewMembers
Sets the autoSubscribeNewMembers property value. Indicates if new members added to the group are autosubscribed to receive email notifications. You can set this property in a PATCH request for the group; don't set it in the initial POST request that creates the group. Default value is false. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}).- Parameters:
value- Value to set for the autoSubscribeNewMembers property.
-
setCalendar
Sets the calendar property value. The group's calendar. Read-only.- Parameters:
value- Value to set for the calendar property.
-
setCalendarView
Sets the calendarView property value. The calendar view for the calendar. Read-only.- Parameters:
value- Value to set for the calendarView property.
-
setClassification
Sets the classification property value. 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 value, based on the template definition.Returned by default. Supports $filter (eq, ne, not, ge, le, startsWith).- Parameters:
value- Value to set for the classification property.
-
setConversations
Sets the conversations property value. The group's conversations.- Parameters:
value- Value to set for the conversations property.
-
setCreatedDateTime
Sets the createdDateTime property value. Timestamp of when the group was created. The value can't be modified and is automatically populated when the group is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Returned by default. Read-only.- Parameters:
value- Value to set for the createdDateTime property.
-
setCreatedOnBehalfOf
Sets the createdOnBehalfOf property value. The user (or application) that created the group. NOTE: This property isn't set if the user is an administrator. Read-only.- Parameters:
value- Value to set for the createdOnBehalfOf property.
-
setDescription
Sets the description property value. An optional description for the group. Returned by default. Supports $filter (eq, ne, not, ge, le, startsWith) and $search.- Parameters:
value- Value to set for the description property.
-
setDisplayName
Sets the displayName property value. The display name for the group. This property is required when a group is created and can't be cleared during updates. Maximum length is 256 characters. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby.- Parameters:
value- Value to set for the displayName property.
-
setDrive
Sets the drive property value. The group's default drive. Read-only.- Parameters:
value- Value to set for the drive property.
-
setDrives
Sets the drives property value. The group's drives. Read-only.- Parameters:
value- Value to set for the drives property.
-
setEvents
Sets the events property value. The group's calendar events.- Parameters:
value- Value to set for the events property.
-
setExpirationDateTime
Sets the expirationDateTime property value. Timestamp of when the group is set to expire. It's null for security groups, but for Microsoft 365 groups, it represents when the group is set to expire as defined in the groupLifecyclePolicy. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Returned by default. Supports $filter (eq, ne, not, ge, le, in). Read-only.- Parameters:
value- Value to set for the expirationDateTime property.
-
setExtensions
Sets the extensions property value. The collection of open extensions defined for the group. Read-only. Nullable.- Parameters:
value- Value to set for the extensions property.
-
setGroupLifecyclePolicies
Sets the groupLifecyclePolicies property value. The collection of lifecycle policies for this group. Read-only. Nullable.- Parameters:
value- Value to set for the groupLifecyclePolicies property.
-
setGroupTypes
Sets the groupTypes property value. Specifies the group type and its membership. If the collection contains Unified, the group is a Microsoft 365 group; otherwise, it's either a security group or a distribution group. For details, see groups overview.If the collection includes DynamicMembership, the group has dynamic membership; otherwise, membership is static. Returned by default. Supports $filter (eq, not).- Parameters:
value- Value to set for the groupTypes property.
-
setHasMembersWithLicenseErrors
Sets the hasMembersWithLicenseErrors property value. 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. Supports $filter (eq).- Parameters:
value- Value to set for the hasMembersWithLicenseErrors property.
-
setHideFromAddressLists
Sets the hideFromAddressLists property value. True if the group isn't displayed in certain parts of the Outlook UI: the Address Book, address lists for selecting message recipients, and the Browse Groups dialog for searching groups; otherwise, false. The default value is false. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}).- Parameters:
value- Value to set for the hideFromAddressLists property.
-
setHideFromOutlookClients
Sets the hideFromOutlookClients property value. True if the group isn't displayed in Outlook clients, such as Outlook for Windows and Outlook on the web; otherwise, false. The default value is false. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}).- Parameters:
value- Value to set for the hideFromOutlookClients property.
-
setIsArchived
Sets the isArchived property value. When a group is associated with a team, this property determines whether the team is in read-only mode.To read this property, use the /group/{groupId}/team endpoint or the Get team API. To update this property, use the archiveTeam and unarchiveTeam APIs.- Parameters:
value- Value to set for the isArchived property.
-
setIsAssignableToRole
Sets the isAssignableToRole property value. Indicates whether this group can be assigned to a Microsoft Entra role. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group can't be a dynamic group (that is, groupTypes can't contain DynamicMembership). Only callers with at least the Privileged Role Administrator role can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Microsoft Entra role assignmentsUsing this feature requires a Microsoft Entra ID P1 license. Returned by default. Supports $filter (eq, ne, not).- Parameters:
value- Value to set for the isAssignableToRole property.
-
setIsManagementRestricted
Sets the isManagementRestricted property value. Indicates whether the group is a member of a restricted management administrative unit. If not set, the default value is null and the default behavior is false. Read-only. To manage a group member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. Returned only on $select.- Parameters:
value- Value to set for the isManagementRestricted property.
-
setIsSubscribedByMail
Sets the isSubscribedByMail property value. Indicates whether the signed-in user is subscribed to receive email conversations. The default value is true. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}).- Parameters:
value- Value to set for the isSubscribedByMail property.
-
setLicenseProcessingState
Sets the licenseProcessingState property value. Indicates the status of the group license assignment to all group members. The default value is false. Read-only. Possible values: QueuedForProcessing, ProcessingInProgress, and ProcessingComplete.Returned only on $select. Read-only.- Parameters:
value- Value to set for the licenseProcessingState property.
-
setMail
Sets the mail property value. The SMTP address for the group, for example, 'serviceadmins@contoso.com'. Returned by default. Read-only. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Parameters:
value- Value to set for the mail property.
-
setMailEnabled
Sets the mailEnabled property value. Specifies whether the group is mail-enabled. Required. Returned by default. Supports $filter (eq, ne, not).- Parameters:
value- Value to set for the mailEnabled property.
-
setMailNickname
Sets the mailNickname property value. The mail alias for the group, unique for Microsoft 365 groups in the organization. Maximum length is 64 characters. This property can contain only characters in the ASCII character set 0 - 127 except the following characters: @ () / [] ' ; : <> , SPACE. Required. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Parameters:
value- Value to set for the mailNickname property.
-
setMemberOf
Sets the memberOf property value. Groups that this group is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable. Supports $expand.- Parameters:
value- Value to set for the memberOf property.
-
setMembers
Sets the members property value. The members of this group, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=members($select=id,userPrincipalName,displayName).- Parameters:
value- Value to set for the members property.
-
setMembershipRule
Sets the membershipRule property value. The rule that determines members for this group if the group is a dynamic group (groupTypes contains DynamicMembership). For more information about the syntax of the membership rule, see Membership Rules syntax. Returned by default. Supports $filter (eq, ne, not, ge, le, startsWith).- Parameters:
value- Value to set for the membershipRule property.
-
setMembershipRuleProcessingState
Sets the membershipRuleProcessingState property value. Indicates whether the dynamic membership processing is on or paused. Possible values are On or Paused. Returned by default. Supports $filter (eq, ne, not, in).- Parameters:
value- Value to set for the membershipRuleProcessingState property.
-
setMembersWithLicenseErrors
Sets the membersWithLicenseErrors property value. A list of group members with license errors from this group-based license assignment. Read-only.- Parameters:
value- Value to set for the membersWithLicenseErrors property.
-
setOnenote
Sets the onenote property value. The onenote property- Parameters:
value- Value to set for the onenote property.
-
setOnPremisesDomainName
Sets the onPremisesDomainName property value. Contains the on-premises domain FQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect.Returned by default. Read-only.- Parameters:
value- Value to set for the onPremisesDomainName property.
-
setOnPremisesLastSyncDateTime
Sets the onPremisesLastSyncDateTime property value. Indicates the last time at which the group was synced with the on-premises directory. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Returned by default. Read-only. Supports $filter (eq, ne, not, ge, le, in).- Parameters:
value- Value to set for the onPremisesLastSyncDateTime property.
-
setOnPremisesNetBiosName
Sets the onPremisesNetBiosName property value. Contains the on-premises netBios name synchronized from the on-premises directory. The property is only populated for customers synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect.Returned by default. Read-only.- Parameters:
value- Value to set for the onPremisesNetBiosName property.
-
setOnPremisesProvisioningErrors
Sets the onPremisesProvisioningErrors property value. Errors when using Microsoft synchronization product during provisioning. Returned by default. Supports $filter (eq, not).- Parameters:
value- Value to set for the onPremisesProvisioningErrors property.
-
setOnPremisesSamAccountName
Sets the onPremisesSamAccountName property value. Contains the on-premises SAM account name synchronized from the on-premises directory. The property is only populated for customers synchronizing their on-premises directory to Microsoft Entra ID via Microsoft Entra Connect.Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith). Read-only.- Parameters:
value- Value to set for the onPremisesSamAccountName property.
-
setOnPremisesSecurityIdentifier
Sets the onPremisesSecurityIdentifier property value. Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Read-only. Returned by default. Supports $filter (eq including on null values).- Parameters:
value- Value to set for the onPremisesSecurityIdentifier property.
-
setOnPremisesSyncBehavior
Sets the onPremisesSyncBehavior property value. The onPremisesSyncBehavior property- Parameters:
value- Value to set for the onPremisesSyncBehavior property.
-
setOnPremisesSyncEnabled
Sets the onPremisesSyncEnabled property value. 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 synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values).- Parameters:
value- Value to set for the onPremisesSyncEnabled property.
-
setOwners
Sets the owners property value. The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName).- Parameters:
value- Value to set for the owners property.
-
setPermissionGrants
Sets the permissionGrants property value. The permissionGrants property- Parameters:
value- Value to set for the permissionGrants property.
-
setPhoto
Sets the photo property value. The group's profile photo- Parameters:
value- Value to set for the photo property.
-
setPhotos
Sets the photos property value. The profile photos owned by the group. Read-only. Nullable.- Parameters:
value- Value to set for the photos property.
-
setPlanner
Sets the planner property value. Entry-point to Planner resource that might exist for a Unified Group.- Parameters:
value- Value to set for the planner property.
-
setPreferredDataLocation
Sets the preferredDataLocation property value. The preferred data location for the Microsoft 365 group. By default, the group inherits the group creator's preferred data location. To set this property, the calling app must be granted the Directory.ReadWrite.All permission and the user be assigned at least one of the following Microsoft Entra roles: User Account Administrator Directory Writer Exchange Administrator SharePoint Administrator For more information about this property, see OneDrive Online Multi-Geo. Nullable. Returned by default.- Parameters:
value- Value to set for the preferredDataLocation property.
-
setPreferredLanguage
Sets the preferredLanguage property value. The preferred language for a Microsoft 365 group. Should follow ISO 639-1 Code; for example, en-US. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values).- Parameters:
value- Value to set for the preferredLanguage property.
-
setProxyAddresses
Sets the proxyAddresses property value. 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 (eq, not, ge, le, startsWith, endsWith, /$count eq 0, /$count ne 0).- Parameters:
value- Value to set for the proxyAddresses property.
-
setRejectedSenders
Sets the rejectedSenders property value. The list of users or groups not allowed to create posts or calendar events in this group. Nullable- Parameters:
value- Value to set for the rejectedSenders property.
-
setRenewedDateTime
Sets the renewedDateTime property value. Timestamp of when the group was last renewed. This value can't be modified directly and is only updated via the renew service action. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Returned by default. Supports $filter (eq, ne, not, ge, le, in). Read-only.- Parameters:
value- Value to set for the renewedDateTime property.
-
setSecurityEnabled
Sets the securityEnabled property value. Specifies whether the group is a security group. Required. Returned by default. Supports $filter (eq, ne, not, in).- Parameters:
value- Value to set for the securityEnabled property.
-
setSecurityIdentifier
Sets the securityIdentifier property value. Security identifier of the group, used in Windows scenarios. Read-only. Returned by default.- Parameters:
value- Value to set for the securityIdentifier property.
-
setServiceProvisioningErrors
Sets the serviceProvisioningErrors property value. Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. Supports $filter (eq, not, for isResolved and serviceInstance).- Parameters:
value- Value to set for the serviceProvisioningErrors property.
-
setSettings
Sets the settings property value. Settings that can govern this group's behavior, like whether members can invite guests to the group. Nullable.- Parameters:
value- Value to set for the settings property.
-
setSites
Sets the sites property value. The list of SharePoint sites in this group. Access the default site with /sites/root.- Parameters:
value- Value to set for the sites property.
-
setTeam
Sets the team property value. The team associated with this group.- Parameters:
value- Value to set for the team property.
-
setTheme
Sets the theme property value. Specifies a Microsoft 365 group's color theme. Possible values are Teal, Purple, Green, Blue, Pink, Orange, or Red. Returned by default.- Parameters:
value- Value to set for the theme property.
-
setThreads
Sets the threads property value. The group's conversation threads. Nullable.- Parameters:
value- Value to set for the threads property.
-
setTransitiveMemberOf
Sets the transitiveMemberOf property value. The groups that a group is a member of, either directly or through nested membership. Nullable.- Parameters:
value- Value to set for the transitiveMemberOf property.
-
setTransitiveMembers
Sets the transitiveMembers property value. The direct and transitive members of a group. Nullable.- Parameters:
value- Value to set for the transitiveMembers property.
-
setUniqueName
Sets the uniqueName property value. The unique identifier that can be assigned to a group and used as an alternate key. Immutable. Read-only.- Parameters:
value- Value to set for the uniqueName property.
-
setUnseenCount
Sets the unseenCount property value. Count of conversations that received new posts since the signed-in user last visited the group. Returned only on $select. Supported only on the Get group API (GET /groups/{ID}).- Parameters:
value- Value to set for the unseenCount property.
-
setVisibility
Sets the visibility property value. Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value isn't specified during group creation on Microsoft Graph, a security group is created as Private by default, and the Microsoft 365 group is Public. Groups assignable to roles are always Private. To learn more, see group visibility options. Returned by default. Nullable.- Parameters:
value- Value to set for the visibility property.
-