New-MgUserMailFolder
Create new navigation property to mailFolders for users
Note
To view the beta release of this cmdlet, view New-MgBetaUserMailFolder
Syntax
New-MgUserMailFolder
-UserId <String>
[-ResponseHeadersVariable <String>]
[-AdditionalProperties <Hashtable>]
[-ChildFolderCount <Int32>]
[-ChildFolders <IMicrosoftGraphMailFolder[]>]
[-DisplayName <String>]
[-Id <String>]
[-IsHidden]
[-MessageRules <IMicrosoftGraphMessageRule[]>]
[-Messages <IMicrosoftGraphMessage[]>]
[-MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]
[-ParentFolderId <String>]
[-SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]
[-TotalItemCount <Int32>]
[-UnreadItemCount <Int32>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-MgUserMailFolder
-UserId <String>
-BodyParameter <IMicrosoftGraphMailFolder>
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-MgUserMailFolder
-InputObject <IMailIdentity>
[-ResponseHeadersVariable <String>]
[-AdditionalProperties <Hashtable>]
[-ChildFolderCount <Int32>]
[-ChildFolders <IMicrosoftGraphMailFolder[]>]
[-DisplayName <String>]
[-Id <String>]
[-IsHidden]
[-MessageRules <IMicrosoftGraphMessageRule[]>]
[-Messages <IMicrosoftGraphMessage[]>]
[-MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]
[-ParentFolderId <String>]
[-SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]
[-TotalItemCount <Int32>]
[-UnreadItemCount <Int32>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-MgUserMailFolder
-InputObject <IMailIdentity>
-BodyParameter <IMicrosoftGraphMailFolder>
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Create new navigation property to mailFolders for users
Examples
Example 1: Code snippet
Import-Module Microsoft.Graph.Mail
$params = @{
displayName = "Clutter"
isHidden = $true
}
# A UPN can also be used as -UserId.
New-MgUserMailFolder -UserId $userId -BodyParameter $params
This example shows how to use the New-MgUserMailFolder Cmdlet.
To learn about permissions for this resource, see the permissions reference.
Parameters
-AdditionalProperties
Additional Parameters
Type: | Hashtable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-BodyParameter
mailFolder To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
Type: | IMicrosoftGraphMailFolder |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ChildFolderCount
The number of immediate child mailFolders in the current mailFolder.
Type: | Int32 |
Position: | Named |
Default value: | 0 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ChildFolders
The collection of child folders in the mailFolder. To construct, see NOTES section for CHILDFOLDERS properties and create a hash table.
Type: | IMicrosoftGraphMailFolder[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisplayName
The mailFolder's display name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Headers
Optional headers that will be added to the request.
Type: | IDictionary |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Id
The unique identifier for an entity. Read-only.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: | IMailIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-IsHidden
Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MessageRules
The collection of rules that apply to the user's Inbox folder. To construct, see NOTES section for MESSAGERULES properties and create a hash table.
Type: | IMicrosoftGraphMessageRule[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Messages
The collection of messages in the mailFolder. To construct, see NOTES section for MESSAGES properties and create a hash table.
Type: | IMicrosoftGraphMessage[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MultiValueExtendedProperties
The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable. To construct, see NOTES section for MULTIVALUEEXTENDEDPROPERTIES properties and create a hash table.
Type: | IMicrosoftGraphMultiValueLegacyExtendedProperty[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ParentFolderId
The unique identifier for the mailFolder's parent mailFolder.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProgressAction
{{ Fill ProgressAction Description }}
Type: | ActionPreference |
Aliases: | proga |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResponseHeadersVariable
Optional Response Headers Variable.
Type: | String |
Aliases: | RHV |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SingleValueExtendedProperties
The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable. To construct, see NOTES section for SINGLEVALUEEXTENDEDPROPERTIES properties and create a hash table.
Type: | IMicrosoftGraphSingleValueLegacyExtendedProperty[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TotalItemCount
The number of items in the mailFolder.
Type: | Int32 |
Position: | Named |
Default value: | 0 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UnreadItemCount
The number of items in the mailFolder marked as unread.
Type: | Int32 |
Position: | Named |
Default value: | 0 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UserId
The unique identifier of user
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Microsoft.Graph.PowerShell.Models.IMailIdentity
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMailFolder
System.Collections.IDictionary
Outputs
Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMailFolder
Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
BODYPARAMETER <IMicrosoftGraphMailFolder>
: mailFolder
[(Any) <Object>]
: This indicates any property can be added to this object.[Id <String>]
: The unique identifier for an entity. Read-only.[ChildFolderCount <Int32?>]
: The number of immediate child mailFolders in the current mailFolder.[ChildFolders <IMicrosoftGraphMailFolder-
[]>]
: The collection of child folders in the mailFolder.[DisplayName <String>]
: The mailFolder's display name.[IsHidden <Boolean?>]
: Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders.[MessageRules <IMicrosoftGraphMessageRule-
[]>]
: The collection of rules that apply to the user's Inbox folder.[Id <String>]
: The unique identifier for an entity. Read-only.[Actions <IMicrosoftGraphMessageRuleActions>]
: messageRuleActions[(Any) <Object>]
: This indicates any property can be added to this object.[AssignCategories <String-
[]>]
: A list of categories to be assigned to a message.[CopyToFolder <String>]
: The ID of a folder that a message is to be copied to.[Delete <Boolean?>]
: Indicates whether a message should be moved to the Deleted Items folder.[ForwardAsAttachmentTo <IMicrosoftGraphRecipient-
[]>]
: The email addresses of the recipients to which a message should be forwarded as an attachment.[EmailAddress <IMicrosoftGraphEmailAddress>]
: emailAddress[(Any) <Object>]
: This indicates any property can be added to this object.[Address <String>]
: The email address of the person or entity.[Name <String>]
: The display name of the person or entity.
[ForwardTo <IMicrosoftGraphRecipient-
[]>]
: The email addresses of the recipients to which a message should be forwarded.[MarkAsRead <Boolean?>]
: Indicates whether a message should be marked as read.[MarkImportance <String>]
: importance[MoveToFolder <String>]
: The ID of the folder that a message will be moved to.[PermanentDelete <Boolean?>]
: Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder.[RedirectTo <IMicrosoftGraphRecipient-
[]>]
: The email addresses to which a message should be redirected.[StopProcessingRules <Boolean?>]
: Indicates whether subsequent rules should be evaluated.
[Conditions <IMicrosoftGraphMessageRulePredicates>]
: messageRulePredicates[(Any) <Object>]
: This indicates any property can be added to this object.[BodyContains <String-
[]>]
: Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply.[BodyOrSubjectContains <String-
[]>]
: Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply.[Categories <String-
[]>]
: Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply.[FromAddresses <IMicrosoftGraphRecipient-
[]>]
: Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply.[HasAttachments <Boolean?>]
: Indicates whether an incoming message must have attachments in order for the condition or exception to apply.[HeaderContains <String-
[]>]
: Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply.[Importance <String>]
: importance[IsApprovalRequest <Boolean?>]
: Indicates whether an incoming message must be an approval request in order for the condition or exception to apply.[IsAutomaticForward <Boolean?>]
: Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply.[IsAutomaticReply <Boolean?>]
: Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply.[IsEncrypted <Boolean?>]
: Indicates whether an incoming message must be encrypted in order for the condition or exception to apply.[IsMeetingRequest <Boolean?>]
: Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply.[IsMeetingResponse <Boolean?>]
: Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply.[IsNonDeliveryReport <Boolean?>]
: Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply.[IsPermissionControlled <Boolean?>]
: Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply.[IsReadReceipt <Boolean?>]
: Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply.[IsSigned <Boolean?>]
: Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply.[IsVoicemail <Boolean?>]
: Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply.[MessageActionFlag <String>]
: messageActionFlag[NotSentToMe <Boolean?>]
: Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply.[RecipientContains <String-
[]>]
: Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply.[SenderContains <String-
[]>]
: Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply.[Sensitivity <String>]
: sensitivity[SentCcMe <Boolean?>]
: Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply.[SentOnlyToMe <Boolean?>]
: Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply.[SentToAddresses <IMicrosoftGraphRecipient-
[]>]
: Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply.[SentToMe <Boolean?>]
: Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply.[SentToOrCcMe <Boolean?>]
: Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply.[SubjectContains <String-
[]>]
: Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply.[WithinSizeRange <IMicrosoftGraphSizeRange>]
: sizeRange[(Any) <Object>]
: This indicates any property can be added to this object.[MaximumSize <Int32?>]
: The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply.[MinimumSize <Int32?>]
: The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply.
[DisplayName <String>]
: The display name of the rule.[Exceptions <IMicrosoftGraphMessageRulePredicates>]
: messageRulePredicates[HasError <Boolean?>]
: Indicates whether the rule is in an error condition. Read-only.[IsEnabled <Boolean?>]
: Indicates whether the rule is enabled to be applied to messages.[IsReadOnly <Boolean?>]
: Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API.[Sequence <Int32?>]
: Indicates the order in which the rule is executed, among other rules.
[Messages <IMicrosoftGraphMessage-
[]>]
: The collection of messages in the mailFolder.[Categories <String-
[]>]
: The categories associated with the item[ChangeKey <String>]
: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only.[CreatedDateTime <DateTime?>]
: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z[LastModifiedDateTime <DateTime?>]
: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z[Id <String>]
: The unique identifier for an entity. Read-only.[Attachments <IMicrosoftGraphAttachment-
[]>]
: The fileAttachment and itemAttachment attachments for the message.[Id <String>]
: The unique identifier for an entity. Read-only.[ContentType <String>]
: The MIME type.[IsInline <Boolean?>]
: true if the attachment is an inline attachment; otherwise, false.[LastModifiedDateTime <DateTime?>]
: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z[Name <String>]
: The attachment's file name.[Size <Int32?>]
: The length of the attachment in bytes.
[BccRecipients <IMicrosoftGraphRecipient-
[]>]
: The Bcc: recipients for the message.[Body <IMicrosoftGraphItemBody>]
: itemBody[(Any) <Object>]
: This indicates any property can be added to this object.[Content <String>]
: The content of the item.[ContentType <String>]
: bodyType
[BodyPreview <String>]
: The first 255 characters of the message body. It is in text format.[CcRecipients <IMicrosoftGraphRecipient-
[]>]
: The Cc: recipients for the message.[ConversationId <String>]
: The ID of the conversation the email belongs to.[ConversationIndex <Byte-
[]>]
: Indicates the position of the message within the conversation.[Extensions <IMicrosoftGraphExtension-
[]>]
: The collection of open extensions defined for the message. Nullable.[Id <String>]
: The unique identifier for an entity. Read-only.
[Flag <IMicrosoftGraphFollowupFlag>]
: followupFlag[(Any) <Object>]
: This indicates any property can be added to this object.[CompletedDateTime <IMicrosoftGraphDateTimeZone>]
: dateTimeTimeZone[(Any) <Object>]
: This indicates any property can be added to this object.[DateTime <String>]
: A single point of time in a combined date and time representation ({date}T{time}; for example, 2017-08-29T04:00:00.0000000).[TimeZone <String>]
: Represents a time zone, for example, 'Pacific Standard Time'. See below for more possible values.
[DueDateTime <IMicrosoftGraphDateTimeZone>]
: dateTimeTimeZone[FlagStatus <String>]
: followupFlagStatus[StartDateTime <IMicrosoftGraphDateTimeZone>]
: dateTimeTimeZone
[From <IMicrosoftGraphRecipient>]
: recipient[HasAttachments <Boolean?>]
: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as .[Importance <String>]
: importance[InferenceClassification <String>]
: inferenceClassificationType[InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader-
[]>]
: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only.[Name <String>]
: Represents the key in a key-value pair.[Value <String>]
: The value in a key-value pair.
[InternetMessageId <String>]
: The message ID in the format specified by RFC2822.[IsDeliveryReceiptRequested <Boolean?>]
: Indicates whether a read receipt is requested for the message.[IsDraft <Boolean?>]
: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet.[IsRead <Boolean?>]
: Indicates whether the message has been read.[IsReadReceiptRequested <Boolean?>]
: Indicates whether a read receipt is requested for the message.[MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty-
[]>]
: The collection of multi-value extended properties defined for the message. Nullable.[Id <String>]
: The unique identifier for an entity. Read-only.[Value <String-
[]>]
: A collection of property values.
[ParentFolderId <String>]
: The unique identifier for the message's parent mailFolder.[ReceivedDateTime <DateTime?>]
: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.[ReplyTo <IMicrosoftGraphRecipient-
[]>]
: The email addresses to use when replying.[Sender <IMicrosoftGraphRecipient>]
: recipient[SentDateTime <DateTime?>]
: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.[SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty-
[]>]
: The collection of single-value extended properties defined for the message. Nullable.[Id <String>]
: The unique identifier for an entity. Read-only.[Value <String>]
: A property value.
[Subject <String>]
: The subject of the message.[ToRecipients <IMicrosoftGraphRecipient-
[]>]
: The To: recipients for the message.[UniqueBody <IMicrosoftGraphItemBody>]
: itemBody[WebLink <String>]
: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, the browser shows the message in the Outlook on the web review pane.The message opens in the browser if you are signed in to your mailbox via Outlook on the web. You are prompted to sign in if you are not already signed in with the browser.This URL cannot be accessed from within an iFrame.
[MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty-
[]>]
: The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable.[ParentFolderId <String>]
: The unique identifier for the mailFolder's parent mailFolder.[SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty-
[]>]
: The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable.[TotalItemCount <Int32?>]
: The number of items in the mailFolder.[UnreadItemCount <Int32?>]
: The number of items in the mailFolder marked as unread.
CHILDFOLDERS <IMicrosoftGraphMailFolder- []
>: The collection of child folders in the mailFolder.
[Id <String>]
: The unique identifier for an entity. Read-only.[ChildFolderCount <Int32?>]
: The number of immediate child mailFolders in the current mailFolder.[ChildFolders <IMicrosoftGraphMailFolder-
[]>]
: The collection of child folders in the mailFolder.[DisplayName <String>]
: The mailFolder's display name.[IsHidden <Boolean?>]
: Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders.[MessageRules <IMicrosoftGraphMessageRule-
[]>]
: The collection of rules that apply to the user's Inbox folder.[Id <String>]
: The unique identifier for an entity. Read-only.[Actions <IMicrosoftGraphMessageRuleActions>]
: messageRuleActions[(Any) <Object>]
: This indicates any property can be added to this object.[AssignCategories <String-
[]>]
: A list of categories to be assigned to a message.[CopyToFolder <String>]
: The ID of a folder that a message is to be copied to.[Delete <Boolean?>]
: Indicates whether a message should be moved to the Deleted Items folder.[ForwardAsAttachmentTo <IMicrosoftGraphRecipient-
[]>]
: The email addresses of the recipients to which a message should be forwarded as an attachment.[EmailAddress <IMicrosoftGraphEmailAddress>]
: emailAddress[(Any) <Object>]
: This indicates any property can be added to this object.[Address <String>]
: The email address of the person or entity.[Name <String>]
: The display name of the person or entity.
[ForwardTo <IMicrosoftGraphRecipient-
[]>]
: The email addresses of the recipients to which a message should be forwarded.[MarkAsRead <Boolean?>]
: Indicates whether a message should be marked as read.[MarkImportance <String>]
: importance[MoveToFolder <String>]
: The ID of the folder that a message will be moved to.[PermanentDelete <Boolean?>]
: Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder.[RedirectTo <IMicrosoftGraphRecipient-
[]>]
: The email addresses to which a message should be redirected.[StopProcessingRules <Boolean?>]
: Indicates whether subsequent rules should be evaluated.
[Conditions <IMicrosoftGraphMessageRulePredicates>]
: messageRulePredicates[(Any) <Object>]
: This indicates any property can be added to this object.[BodyContains <String-
[]>]
: Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply.[BodyOrSubjectContains <String-
[]>]
: Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply.[Categories <String-
[]>]
: Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply.[FromAddresses <IMicrosoftGraphRecipient-
[]>]
: Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply.[HasAttachments <Boolean?>]
: Indicates whether an incoming message must have attachments in order for the condition or exception to apply.[HeaderContains <String-
[]>]
: Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply.[Importance <String>]
: importance[IsApprovalRequest <Boolean?>]
: Indicates whether an incoming message must be an approval request in order for the condition or exception to apply.[IsAutomaticForward <Boolean?>]
: Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply.[IsAutomaticReply <Boolean?>]
: Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply.[IsEncrypted <Boolean?>]
: Indicates whether an incoming message must be encrypted in order for the condition or exception to apply.[IsMeetingRequest <Boolean?>]
: Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply.[IsMeetingResponse <Boolean?>]
: Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply.[IsNonDeliveryReport <Boolean?>]
: Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply.[IsPermissionControlled <Boolean?>]
: Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply.[IsReadReceipt <Boolean?>]
: Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply.[IsSigned <Boolean?>]
: Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply.[IsVoicemail <Boolean?>]
: Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply.[MessageActionFlag <String>]
: messageActionFlag[NotSentToMe <Boolean?>]
: Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply.[RecipientContains <String-
[]>]
: Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply.[SenderContains <String-
[]>]
: Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply.[Sensitivity <String>]
: sensitivity[SentCcMe <Boolean?>]
: Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply.[SentOnlyToMe <Boolean?>]
: Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply.[SentToAddresses <IMicrosoftGraphRecipient-
[]>]
: Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply.[SentToMe <Boolean?>]
: Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply.[SentToOrCcMe <Boolean?>]
: Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply.[SubjectContains <String-
[]>]
: Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply.[WithinSizeRange <IMicrosoftGraphSizeRange>]
: sizeRange[(Any) <Object>]
: This indicates any property can be added to this object.[MaximumSize <Int32?>]
: The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply.[MinimumSize <Int32?>]
: The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply.
[DisplayName <String>]
: The display name of the rule.[Exceptions <IMicrosoftGraphMessageRulePredicates>]
: messageRulePredicates[HasError <Boolean?>]
: Indicates whether the rule is in an error condition. Read-only.[IsEnabled <Boolean?>]
: Indicates whether the rule is enabled to be applied to messages.[IsReadOnly <Boolean?>]
: Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API.[Sequence <Int32?>]
: Indicates the order in which the rule is executed, among other rules.
[Messages <IMicrosoftGraphMessage-
[]>]
: The collection of messages in the mailFolder.[Categories <String-
[]>]
: The categories associated with the item[ChangeKey <String>]
: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only.[CreatedDateTime <DateTime?>]
: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z[LastModifiedDateTime <DateTime?>]
: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z[Id <String>]
: The unique identifier for an entity. Read-only.[Attachments <IMicrosoftGraphAttachment-
[]>]
: The fileAttachment and itemAttachment attachments for the message.[Id <String>]
: The unique identifier for an entity. Read-only.[ContentType <String>]
: The MIME type.[IsInline <Boolean?>]
: true if the attachment is an inline attachment; otherwise, false.[LastModifiedDateTime <DateTime?>]
: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z[Name <String>]
: The attachment's file name.[Size <Int32?>]
: The length of the attachment in bytes.
[BccRecipients <IMicrosoftGraphRecipient-
[]>]
: The Bcc: recipients for the message.[Body <IMicrosoftGraphItemBody>]
: itemBody[(Any) <Object>]
: This indicates any property can be added to this object.[Content <String>]
: The content of the item.[ContentType <String>]
: bodyType
[BodyPreview <String>]
: The first 255 characters of the message body. It is in text format.[CcRecipients <IMicrosoftGraphRecipient-
[]>]
: The Cc: recipients for the message.[ConversationId <String>]
: The ID of the conversation the email belongs to.[ConversationIndex <Byte-
[]>]
: Indicates the position of the message within the conversation.[Extensions <IMicrosoftGraphExtension-
[]>]
: The collection of open extensions defined for the message. Nullable.[Id <String>]
: The unique identifier for an entity. Read-only.
[Flag <IMicrosoftGraphFollowupFlag>]
: followupFlag[(Any) <Object>]
: This indicates any property can be added to this object.[CompletedDateTime <IMicrosoftGraphDateTimeZone>]
: dateTimeTimeZone[(Any) <Object>]
: This indicates any property can be added to this object.[DateTime <String>]
: A single point of time in a combined date and time representation ({date}T{time}; for example, 2017-08-29T04:00:00.0000000).[TimeZone <String>]
: Represents a time zone, for example, 'Pacific Standard Time'. See below for more possible values.
[DueDateTime <IMicrosoftGraphDateTimeZone>]
: dateTimeTimeZone[FlagStatus <String>]
: followupFlagStatus[StartDateTime <IMicrosoftGraphDateTimeZone>]
: dateTimeTimeZone
[From <IMicrosoftGraphRecipient>]
: recipient[HasAttachments <Boolean?>]
: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as .[Importance <String>]
: importance[InferenceClassification <String>]
: inferenceClassificationType[InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader-
[]>]
: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only.[Name <String>]
: Represents the key in a key-value pair.[Value <String>]
: The value in a key-value pair.
[InternetMessageId <String>]
: The message ID in the format specified by RFC2822.[IsDeliveryReceiptRequested <Boolean?>]
: Indicates whether a read receipt is requested for the message.[IsDraft <Boolean?>]
: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet.[IsRead <Boolean?>]
: Indicates whether the message has been read.[IsReadReceiptRequested <Boolean?>]
: Indicates whether a read receipt is requested for the message.[MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty-
[]>]
: The collection of multi-value extended properties defined for the message. Nullable.[Id <String>]
: The unique identifier for an entity. Read-only.[Value <String-
[]>]
: A collection of property values.
[ParentFolderId <String>]
: The unique identifier for the message's parent mailFolder.[ReceivedDateTime <DateTime?>]
: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.[ReplyTo <IMicrosoftGraphRecipient-
[]>]
: The email addresses to use when replying.[Sender <IMicrosoftGraphRecipient>]
: recipient[SentDateTime <DateTime?>]
: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.[SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty-
[]>]
: The collection of single-value extended properties defined for the message. Nullable.[Id <String>]
: The unique identifier for an entity. Read-only.[Value <String>]
: A property value.
[Subject <String>]
: The subject of the message.[ToRecipients <IMicrosoftGraphRecipient-
[]>]
: The To: recipients for the message.[UniqueBody <IMicrosoftGraphItemBody>]
: itemBody[WebLink <String>]
: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, the browser shows the message in the Outlook on the web review pane.The message opens in the browser if you are signed in to your mailbox via Outlook on the web. You are prompted to sign in if you are not already signed in with the browser.This URL cannot be accessed from within an iFrame.
[MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty-
[]>]
: The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable.[ParentFolderId <String>]
: The unique identifier for the mailFolder's parent mailFolder.[SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty-
[]>]
: The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable.[TotalItemCount <Int32?>]
: The number of items in the mailFolder.[UnreadItemCount <Int32?>]
: The number of items in the mailFolder marked as unread.
INPUTOBJECT <IMailIdentity>
: Identity Parameter
[AttachmentId <String>]
: The unique identifier of attachment[ExtensionId <String>]
: The unique identifier of extension[InferenceClassificationOverrideId <String>]
: The unique identifier of inferenceClassificationOverride[MailFolderId <String>]
: The unique identifier of mailFolder[MailFolderId1 <String>]
: The unique identifier of mailFolder[MessageId <String>]
: The unique identifier of message[MessageRuleId <String>]
: The unique identifier of messageRule[UserId <String>]
: The unique identifier of user
MESSAGERULES <IMicrosoftGraphMessageRule- []
>: The collection of rules that apply to the user's Inbox folder.
[Id <String>]
: The unique identifier for an entity. Read-only.[Actions <IMicrosoftGraphMessageRuleActions>]
: messageRuleActions[(Any) <Object>]
: This indicates any property can be added to this object.[AssignCategories <String-
[]>]
: A list of categories to be assigned to a message.[CopyToFolder <String>]
: The ID of a folder that a message is to be copied to.[Delete <Boolean?>]
: Indicates whether a message should be moved to the Deleted Items folder.[ForwardAsAttachmentTo <IMicrosoftGraphRecipient-
[]>]
: The email addresses of the recipients to which a message should be forwarded as an attachment.[EmailAddress <IMicrosoftGraphEmailAddress>]
: emailAddress[(Any) <Object>]
: This indicates any property can be added to this object.[Address <String>]
: The email address of the person or entity.[Name <String>]
: The display name of the person or entity.
[ForwardTo <IMicrosoftGraphRecipient-
[]>]
: The email addresses of the recipients to which a message should be forwarded.[MarkAsRead <Boolean?>]
: Indicates whether a message should be marked as read.[MarkImportance <String>]
: importance[MoveToFolder <String>]
: The ID of the folder that a message will be moved to.[PermanentDelete <Boolean?>]
: Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder.[RedirectTo <IMicrosoftGraphRecipient-
[]>]
: The email addresses to which a message should be redirected.[StopProcessingRules <Boolean?>]
: Indicates whether subsequent rules should be evaluated.
[Conditions <IMicrosoftGraphMessageRulePredicates>]
: messageRulePredicates[(Any) <Object>]
: This indicates any property can be added to this object.[BodyContains <String-
[]>]
: Represents the strings that should appear in the body of an incoming message in order for the condition or exception to apply.[BodyOrSubjectContains <String-
[]>]
: Represents the strings that should appear in the body or subject of an incoming message in order for the condition or exception to apply.[Categories <String-
[]>]
: Represents the categories that an incoming message should be labeled with in order for the condition or exception to apply.[FromAddresses <IMicrosoftGraphRecipient-
[]>]
: Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply.[HasAttachments <Boolean?>]
: Indicates whether an incoming message must have attachments in order for the condition or exception to apply.[HeaderContains <String-
[]>]
: Represents the strings that appear in the headers of an incoming message in order for the condition or exception to apply.[Importance <String>]
: importance[IsApprovalRequest <Boolean?>]
: Indicates whether an incoming message must be an approval request in order for the condition or exception to apply.[IsAutomaticForward <Boolean?>]
: Indicates whether an incoming message must be automatically forwarded in order for the condition or exception to apply.[IsAutomaticReply <Boolean?>]
: Indicates whether an incoming message must be an auto reply in order for the condition or exception to apply.[IsEncrypted <Boolean?>]
: Indicates whether an incoming message must be encrypted in order for the condition or exception to apply.[IsMeetingRequest <Boolean?>]
: Indicates whether an incoming message must be a meeting request in order for the condition or exception to apply.[IsMeetingResponse <Boolean?>]
: Indicates whether an incoming message must be a meeting response in order for the condition or exception to apply.[IsNonDeliveryReport <Boolean?>]
: Indicates whether an incoming message must be a non-delivery report in order for the condition or exception to apply.[IsPermissionControlled <Boolean?>]
: Indicates whether an incoming message must be permission controlled (RMS-protected) in order for the condition or exception to apply.[IsReadReceipt <Boolean?>]
: Indicates whether an incoming message must be a read receipt in order for the condition or exception to apply.[IsSigned <Boolean?>]
: Indicates whether an incoming message must be S/MIME-signed in order for the condition or exception to apply.[IsVoicemail <Boolean?>]
: Indicates whether an incoming message must be a voice mail in order for the condition or exception to apply.[MessageActionFlag <String>]
: messageActionFlag[NotSentToMe <Boolean?>]
: Indicates whether the owner of the mailbox must not be a recipient of an incoming message in order for the condition or exception to apply.[RecipientContains <String-
[]>]
: Represents the strings that appear in either the toRecipients or ccRecipients properties of an incoming message in order for the condition or exception to apply.[SenderContains <String-
[]>]
: Represents the strings that appear in the from property of an incoming message in order for the condition or exception to apply.[Sensitivity <String>]
: sensitivity[SentCcMe <Boolean?>]
: Indicates whether the owner of the mailbox must be in the ccRecipients property of an incoming message in order for the condition or exception to apply.[SentOnlyToMe <Boolean?>]
: Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply.[SentToAddresses <IMicrosoftGraphRecipient-
[]>]
: Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply.[SentToMe <Boolean?>]
: Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply.[SentToOrCcMe <Boolean?>]
: Indicates whether the owner of the mailbox must be in either a toRecipients or ccRecipients property of an incoming message in order for the condition or exception to apply.[SubjectContains <String-
[]>]
: Represents the strings that appear in the subject of an incoming message in order for the condition or exception to apply.[WithinSizeRange <IMicrosoftGraphSizeRange>]
: sizeRange[(Any) <Object>]
: This indicates any property can be added to this object.[MaximumSize <Int32?>]
: The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply.[MinimumSize <Int32?>]
: The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply.
[DisplayName <String>]
: The display name of the rule.[Exceptions <IMicrosoftGraphMessageRulePredicates>]
: messageRulePredicates[HasError <Boolean?>]
: Indicates whether the rule is in an error condition. Read-only.[IsEnabled <Boolean?>]
: Indicates whether the rule is enabled to be applied to messages.[IsReadOnly <Boolean?>]
: Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API.[Sequence <Int32?>]
: Indicates the order in which the rule is executed, among other rules.
MESSAGES <IMicrosoftGraphMessage- []
>: The collection of messages in the mailFolder.
[Categories <String-
[]>]
: The categories associated with the item[ChangeKey <String>]
: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only.[CreatedDateTime <DateTime?>]
: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z[LastModifiedDateTime <DateTime?>]
: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z[Id <String>]
: The unique identifier for an entity. Read-only.[Attachments <IMicrosoftGraphAttachment-
[]>]
: The fileAttachment and itemAttachment attachments for the message.[Id <String>]
: The unique identifier for an entity. Read-only.[ContentType <String>]
: The MIME type.[IsInline <Boolean?>]
: true if the attachment is an inline attachment; otherwise, false.[LastModifiedDateTime <DateTime?>]
: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z[Name <String>]
: The attachment's file name.[Size <Int32?>]
: The length of the attachment in bytes.
[BccRecipients <IMicrosoftGraphRecipient-
[]>]
: The Bcc: recipients for the message.[EmailAddress <IMicrosoftGraphEmailAddress>]
: emailAddress[(Any) <Object>]
: This indicates any property can be added to this object.[Address <String>]
: The email address of the person or entity.[Name <String>]
: The display name of the person or entity.
[Body <IMicrosoftGraphItemBody>]
: itemBody[(Any) <Object>]
: This indicates any property can be added to this object.[Content <String>]
: The content of the item.[ContentType <String>]
: bodyType
[BodyPreview <String>]
: The first 255 characters of the message body. It is in text format.[CcRecipients <IMicrosoftGraphRecipient-
[]>]
: The Cc: recipients for the message.[ConversationId <String>]
: The ID of the conversation the email belongs to.[ConversationIndex <Byte-
[]>]
: Indicates the position of the message within the conversation.[Extensions <IMicrosoftGraphExtension-
[]>]
: The collection of open extensions defined for the message. Nullable.[Id <String>]
: The unique identifier for an entity. Read-only.
[Flag <IMicrosoftGraphFollowupFlag>]
: followupFlag[(Any) <Object>]
: This indicates any property can be added to this object.[CompletedDateTime <IMicrosoftGraphDateTimeZone>]
: dateTimeTimeZone[(Any) <Object>]
: This indicates any property can be added to this object.[DateTime <String>]
: A single point of time in a combined date and time representation ({date}T{time}; for example, 2017-08-29T04:00:00.0000000).[TimeZone <String>]
: Represents a time zone, for example, 'Pacific Standard Time'. See below for more possible values.
[DueDateTime <IMicrosoftGraphDateTimeZone>]
: dateTimeTimeZone[FlagStatus <String>]
: followupFlagStatus[StartDateTime <IMicrosoftGraphDateTimeZone>]
: dateTimeTimeZone
[From <IMicrosoftGraphRecipient>]
: recipient[HasAttachments <Boolean?>]
: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as .[Importance <String>]
: importance[InferenceClassification <String>]
: inferenceClassificationType[InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader-
[]>]
: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only.[Name <String>]
: Represents the key in a key-value pair.[Value <String>]
: The value in a key-value pair.
[InternetMessageId <String>]
: The message ID in the format specified by RFC2822.[IsDeliveryReceiptRequested <Boolean?>]
: Indicates whether a read receipt is requested for the message.[IsDraft <Boolean?>]
: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet.[IsRead <Boolean?>]
: Indicates whether the message has been read.[IsReadReceiptRequested <Boolean?>]
: Indicates whether a read receipt is requested for the message.[MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty-
[]>]
: The collection of multi-value extended properties defined for the message. Nullable.[Id <String>]
: The unique identifier for an entity. Read-only.[Value <String-
[]>]
: A collection of property values.
[ParentFolderId <String>]
: The unique identifier for the message's parent mailFolder.[ReceivedDateTime <DateTime?>]
: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.[ReplyTo <IMicrosoftGraphRecipient-
[]>]
: The email addresses to use when replying.[Sender <IMicrosoftGraphRecipient>]
: recipient[SentDateTime <DateTime?>]
: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.[SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty-
[]>]
: The collection of single-value extended properties defined for the message. Nullable.[Id <String>]
: The unique identifier for an entity. Read-only.[Value <String>]
: A property value.
[Subject <String>]
: The subject of the message.[ToRecipients <IMicrosoftGraphRecipient-
[]>]
: The To: recipients for the message.[UniqueBody <IMicrosoftGraphItemBody>]
: itemBody[WebLink <String>]
: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, the browser shows the message in the Outlook on the web review pane.The message opens in the browser if you are signed in to your mailbox via Outlook on the web. You are prompted to sign in if you are not already signed in with the browser.This URL cannot be accessed from within an iFrame.
MULTIVALUEEXTENDEDPROPERTIES <IMicrosoftGraphMultiValueLegacyExtendedProperty- []
>: The collection of multi-value extended properties defined for the mailFolder.
Read-only.
Nullable.
[Id <String>]
: The unique identifier for an entity. Read-only.[Value <String-
[]>]
: A collection of property values.
SINGLEVALUEEXTENDEDPROPERTIES <IMicrosoftGraphSingleValueLegacyExtendedProperty- []
>: The collection of single-value extended properties defined for the mailFolder.
Read-only.
Nullable.
[Id <String>]
: The unique identifier for an entity. Read-only.[Value <String>]
: A property value.
RELATED LINKS
https://learn.microsoft.com/powershell/module/microsoft.graph.mail/new-mgusermailfolder