New-MgUserOutlookMasterCategory

Create an outlookCategory object in the user's master list of categories.

Syntax

New-MgUserOutlookMasterCategory
   -UserId <String>
   [-AdditionalProperties <Hashtable>]
   [-Color <String>]
   [-DisplayName <String>]
   [-Id <String>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-MgUserOutlookMasterCategory
   -UserId <String>
   -BodyParameter <IMicrosoftGraphOutlookCategory>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-MgUserOutlookMasterCategory
   -InputObject <IUsersIdentity>
   [-AdditionalProperties <Hashtable>]
   [-Color <String>]
   [-DisplayName <String>]
   [-Id <String>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-MgUserOutlookMasterCategory
   -InputObject <IUsersIdentity>
   -BodyParameter <IMicrosoftGraphOutlookCategory>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Create an outlookCategory object in the user's master list of categories.

Examples

Example 1: Using the New-MgUserOutlookMasterCategory Cmdlet

Import-Module Microsoft.Graph.Users
$params = @{
	DisplayName = "Project expenses"
	Color = "preset9"
}
# A UPN can also be used as -UserId.
New-MgUserOutlookMasterCategory -UserId $userId -BodyParameter $params

This example shows how to use the New-MgUserOutlookMasterCategory Cmdlet. To learn about permissions for this resource, see the permissions reference.

Parameters

-AdditionalProperties

Additional Parameters

Type:Hashtable
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-BodyParameter

outlookCategory To construct, please use Get-Help -Online and see NOTES section for BODYPARAMETER properties and create a hash table.

Type:IMicrosoftGraphOutlookCategory
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-Color

categoryColor

Type:String
Position:Named
Default value:None
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
Accept pipeline input:False
Accept wildcard characters:False

-DisplayName

A unique name that identifies a category in the user's mailbox. After a category is created, the name cannot be changed. Read-only.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Id

The unique idenfier for an entity. Read-only.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Identity Parameter To construct, please use Get-Help -Online and see NOTES section for INPUTOBJECT properties and create a hash table.

Type:IUsersIdentity
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-UserId

key: id of user

Type:String
Position:Named
Default value:None
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
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOutlookCategory

Microsoft.Graph.PowerShell.Models.IUsersIdentity

Outputs

Microsoft.Graph.PowerShell.Models.IMicrosoftGraphOutlookCategory

Notes

ALIASES

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 <IMicrosoftGraphOutlookCategory>: outlookCategory

  • [(Any) <Object>]: This indicates any property can be added to this object.
  • [Id <String>]: The unique idenfier for an entity. Read-only.
  • [Color <String>]: categoryColor
  • [DisplayName <String>]: A unique name that identifies a category in the user's mailbox. After a category is created, the name cannot be changed. Read-only.

INPUTOBJECT <IUsersIdentity>: Identity Parameter

  • [AttachmentBaseId <String>]: key: id of attachmentBase
  • [AttachmentId <String>]: key: id of attachment
  • [AttachmentSessionId <String>]: key: id of attachmentSession
  • [ChecklistItemId <String>]: key: id of checklistItem
  • [DirectoryObjectId <String>]: key: id of directoryObject
  • [ExtensionId <String>]: key: id of extension
  • [LicenseDetailsId <String>]: key: id of licenseDetails
  • [LinkedResourceId <String>]: key: id of linkedResource
  • [MultiValueLegacyExtendedPropertyId <String>]: key: id of multiValueLegacyExtendedProperty
  • [NotificationId <String>]: key: id of notification
  • [OAuth2PermissionGrantId <String>]: key: id of oAuth2PermissionGrant
  • [OutlookCategoryId <String>]: key: id of outlookCategory
  • [OutlookTaskFolderId <String>]: key: id of outlookTaskFolder
  • [OutlookTaskGroupId <String>]: key: id of outlookTaskGroup
  • [OutlookTaskId <String>]: key: id of outlookTask
  • [ProfilePhotoId <String>]: key: id of profilePhoto
  • [SingleValueLegacyExtendedPropertyId <String>]: key: id of singleValueLegacyExtendedProperty
  • [TodoTaskId <String>]: key: id of todoTask
  • [TodoTaskListId <String>]: key: id of todoTaskList
  • [UserId <String>]: key: id of user