New-MgUserOutlookMasterCategory
Create new navigation property to extensions for users
Note
To view the beta release of this cmdlet, view New-MgBetaUserOutlookMasterCategory
Syntax
New-MgUserOutlookMasterCategory
-UserId <String>
[-AdditionalProperties <Hashtable>]
[-Id <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-MgUserOutlookMasterCategory
-UserId <String>
-BodyParameter <Hashtable>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-MgUserOutlookMasterCategory
-InputObject <IUsersIdentity>
[-AdditionalProperties <Hashtable>]
[-Id <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-MgUserOutlookMasterCategory
-InputObject <IUsersIdentity>
-BodyParameter <Hashtable>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Create new navigation property to extensions for users
Examples
Example 1: Code snippet
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-BodyParameter
extension
Type: | Hashtable |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
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 |
-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: | IUsersIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
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.IUsersIdentity
System.Collections.Hashtable
Outputs
System.String
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.
INPUTOBJECT <IUsersIdentity>
: Identity Parameter
[AttachmentBaseId <String>]
: The unique identifier of attachmentBase[AttachmentSessionId <String>]
: The unique identifier of attachmentSession[ChecklistItemId <String>]
: The unique identifier of checklistItem[DirectoryObjectId <String>]
: The unique identifier of directoryObject[ExtensionId <String>]
: The unique identifier of extension[LicenseDetailsId <String>]
: The unique identifier of licenseDetails[LinkedResourceId <String>]
: The unique identifier of linkedResource[OAuth2PermissionGrantId <String>]
: The unique identifier of oAuth2PermissionGrant[OutlookCategoryId <String>]
: The unique identifier of outlookCategory[ProfilePhotoId <String>]
: The unique identifier of profilePhoto[TodoTaskId <String>]
: The unique identifier of todoTask[TodoTaskListId <String>]
: The unique identifier of todoTaskList[UserId <String>]
: The unique identifier of user