Create new navigation property to childFolders for users
Permissions
Permission type
Permissions (from least to most privileged)
Delegated (work or school account)
Contacts.ReadWrite,
Delegated (personal Microsoft account)
Contacts.ReadWrite,
Application
Contacts.ReadWrite,
Examples
Example 1: Code snippet
Import-Module Microsoft.Graph.PersonalContacts
$params = @{
displayName = "Family"
}
# A UPN can also be used as -UserId.
New-MgUserContactFolderChildFolder -UserId $userId -ContactFolderId $contactFolderId -BodyParameter $params
This example shows how to use the New-MgUserContactFolderChildFolder Cmdlet.
contactFolder
To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
Parameter properties
Type:
IMicrosoftGraphContactFolder
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
Create
Position:
Named
Mandatory:
True
Value from pipeline:
True
Value from pipeline by property name:
False
Value from remaining arguments:
False
CreateViaIdentity
Position:
Named
Mandatory:
True
Value from pipeline:
True
Value from pipeline by property name:
False
Value from remaining arguments:
False
-ChildFolders
The collection of child folders in the folder.
Navigation property.
Read-only.
Nullable.
To construct, see NOTES section for CHILDFOLDERS properties and create a hash table.
Parameter properties
Type:
IMicrosoftGraphContactFolder[]
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
CreateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
CreateViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type:
SwitchParameter
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
cf
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-ContactFolderId
The unique identifier of contactFolder
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
CreateExpanded
Position:
Named
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
Create
Position:
Named
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Contacts
The contacts in the folder.
Navigation property.
Read-only.
Nullable.
To construct, see NOTES section for CONTACTS properties and create a hash table.
Parameter properties
Type:
IMicrosoftGraphContact[]
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
CreateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
CreateViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-DisplayName
The folder's display name.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
CreateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
CreateViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Headers
Optional headers that will be added to the request.
Parameter properties
Type:
IDictionary
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
True
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Id
The unique identifier for an entity.
Read-only.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
CreateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
CreateViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Parameter properties
Type:
IPersonalContactsIdentity
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
CreateViaIdentityExpanded
Position:
Named
Mandatory:
True
Value from pipeline:
True
Value from pipeline by property name:
False
Value from remaining arguments:
False
CreateViaIdentity
Position:
Named
Mandatory:
True
Value from pipeline:
True
Value from pipeline by property name:
False
Value from remaining arguments:
False
-MultiValueExtendedProperties
The collection of multi-value extended properties defined for the contactFolder.
Read-only.
Nullable.
To construct, see NOTES section for MULTIVALUEEXTENDEDPROPERTIES properties and create a hash table.
Parameter properties
Type:
IMicrosoftGraphMultiValueLegacyExtendedProperty[]
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
CreateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
CreateViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-ParentFolderId
The ID of the folder's parent folder.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
CreateExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
CreateViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-ResponseHeadersVariable
Optional Response Headers Variable.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
RHV
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-SingleValueExtendedProperties
The collection of single-value extended properties defined for the contactFolder.
Read-only.
Nullable.
To construct, see NOTES section for SINGLEVALUEEXTENDEDPROPERTIES properties and create a hash table.
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Parameter properties
Type:
SwitchParameter
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
wi
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
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.
[(Any) <Object>]: This indicates any property can be added to this object.
[Id <String>]: The unique identifier for an entity.
Read-only.
[ChildFolders <IMicrosoftGraphContactFolder- []>]: The collection of child folders in the folder.
Navigation property.
Read-only.
Nullable.
[Contacts <IMicrosoftGraphContact- []>]: The contacts in the folder.
Navigation property.
Read-only.
Nullable.
[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.
[AssistantName <String>]: The name of the contact's assistant.
[Birthday <DateTime?>]: The contact's birthday.
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
[(Any) <Object>]: This indicates any property can be added to this object.
[City <String>]: The city.
[CountryOrRegion <String>]: The country or region.
It's a free-format string value, for example, 'United States'.
[PostalCode <String>]: The postal code.
[State <String>]: The state.
[Street <String>]: The street.
[BusinessHomePage <String>]: The business home page of the contact.
[BusinessPhones <String- []>]: The contact's business phone numbers.
[Children <String- []>]: The names of the contact's children.
[CompanyName <String>]: The name of the contact's company.
[Department <String>]: The contact's department.
[DisplayName <String>]: The contact's display name.
You can specify the display name in a create or update operation.
Note that later updates to other properties may cause an automatically generated value to overwrite the displayName value you have specified.
To preserve a pre-existing value, always include it as displayName in an update operation.
[EmailAddresses <IMicrosoftGraphEmailAddress- []>]: The contact's email addresses.
[Address <String>]: The email address of the person or entity.
[Name <String>]: The display name of the person or entity.
[Extensions <IMicrosoftGraphExtension- []>]: The collection of open extensions defined for the contact.
Read-only.
Nullable.
[Id <String>]: The unique identifier for an entity.
Read-only.
[FileAs <String>]: The name the contact is filed under.
[HomePhones <String- []>]: The contact's home phone numbers.
[ImAddresses <String- []>]: The contact's instant messaging (IM) addresses.
[Initials <String>]: The contact's initials.
[JobTitle <String>]: The contact's job title.
[Manager <String>]: The name of the contact's manager.
[MiddleName <String>]: The contact's middle name.
[MobilePhone <String>]: The contact's mobile phone number.
[MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty- []>]: The collection of multi-value extended properties defined for the contact.
Read-only.
Nullable.
[Id <String>]: The unique identifier for an entity.
Read-only.
[Value <String- []>]: A collection of property values.
[NickName <String>]: The contact's nickname.
[OfficeLocation <String>]: The location of the contact's office.
[(Any) <Object>]: This indicates any property can be added to this object.
[Id <String>]: The unique identifier for an entity.
Read-only.
[Height <Int32?>]: The height of the photo.
Read-only.
[Width <Int32?>]: The width of the photo.
Read-only.
[Profession <String>]: The contact's profession.
[SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty- []>]: The collection of single-value extended properties defined for the contact.
Read-only.
Nullable.
[Id <String>]: The unique identifier for an entity.
Read-only.
[Value <String>]: A property value.
[SpouseName <String>]: The name of the contact's spouse/partner.
[Surname <String>]: The contact's surname.
[Title <String>]: The contact's title.
[YomiCompanyName <String>]: The phonetic Japanese company name of the contact.
[YomiGivenName <String>]: The phonetic Japanese given name (first name) of the contact.
[YomiSurname <String>]: The phonetic Japanese surname (last name) of the contact.
[DisplayName <String>]: The folder's display name.
[MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty- []>]: The collection of multi-value extended properties defined for the contactFolder.
Read-only.
Nullable.
[ParentFolderId <String>]: The ID of the folder's parent folder.
[SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty- []>]: The collection of single-value extended properties defined for the contactFolder.
Read-only.
Nullable.
CHILDFOLDERS <IMicrosoftGraphContactFolder- []>: The collection of child folders in the folder.
Navigation property.
Read-only.
Nullable.
[Id <String>]: The unique identifier for an entity.
Read-only.
[ChildFolders <IMicrosoftGraphContactFolder- []>]: The collection of child folders in the folder.
Navigation property.
Read-only.
Nullable.
[Contacts <IMicrosoftGraphContact- []>]: The contacts in the folder.
Navigation property.
Read-only.
Nullable.
[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.
[AssistantName <String>]: The name of the contact's assistant.
[Birthday <DateTime?>]: The contact's birthday.
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
[(Any) <Object>]: This indicates any property can be added to this object.
[City <String>]: The city.
[CountryOrRegion <String>]: The country or region.
It's a free-format string value, for example, 'United States'.
[PostalCode <String>]: The postal code.
[State <String>]: The state.
[Street <String>]: The street.
[BusinessHomePage <String>]: The business home page of the contact.
[BusinessPhones <String- []>]: The contact's business phone numbers.
[Children <String- []>]: The names of the contact's children.
[CompanyName <String>]: The name of the contact's company.
[Department <String>]: The contact's department.
[DisplayName <String>]: The contact's display name.
You can specify the display name in a create or update operation.
Note that later updates to other properties may cause an automatically generated value to overwrite the displayName value you have specified.
To preserve a pre-existing value, always include it as displayName in an update operation.
[EmailAddresses <IMicrosoftGraphEmailAddress- []>]: The contact's email addresses.
[Address <String>]: The email address of the person or entity.
[Name <String>]: The display name of the person or entity.
[Extensions <IMicrosoftGraphExtension- []>]: The collection of open extensions defined for the contact.
Read-only.
Nullable.
[Id <String>]: The unique identifier for an entity.
Read-only.
[FileAs <String>]: The name the contact is filed under.
[HomePhones <String- []>]: The contact's home phone numbers.
[ImAddresses <String- []>]: The contact's instant messaging (IM) addresses.
[Initials <String>]: The contact's initials.
[JobTitle <String>]: The contact's job title.
[Manager <String>]: The name of the contact's manager.
[MiddleName <String>]: The contact's middle name.
[MobilePhone <String>]: The contact's mobile phone number.
[MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty- []>]: The collection of multi-value extended properties defined for the contact.
Read-only.
Nullable.
[Id <String>]: The unique identifier for an entity.
Read-only.
[Value <String- []>]: A collection of property values.
[NickName <String>]: The contact's nickname.
[OfficeLocation <String>]: The location of the contact's office.
[(Any) <Object>]: This indicates any property can be added to this object.
[Id <String>]: The unique identifier for an entity.
Read-only.
[Height <Int32?>]: The height of the photo.
Read-only.
[Width <Int32?>]: The width of the photo.
Read-only.
[Profession <String>]: The contact's profession.
[SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty- []>]: The collection of single-value extended properties defined for the contact.
Read-only.
Nullable.
[Id <String>]: The unique identifier for an entity.
Read-only.
[Value <String>]: A property value.
[SpouseName <String>]: The name of the contact's spouse/partner.
[Surname <String>]: The contact's surname.
[Title <String>]: The contact's title.
[YomiCompanyName <String>]: The phonetic Japanese company name of the contact.
[YomiGivenName <String>]: The phonetic Japanese given name (first name) of the contact.
[YomiSurname <String>]: The phonetic Japanese surname (last name) of the contact.
[DisplayName <String>]: The folder's display name.
[MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty- []>]: The collection of multi-value extended properties defined for the contactFolder.
Read-only.
Nullable.
[ParentFolderId <String>]: The ID of the folder's parent folder.
[SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty- []>]: The collection of single-value extended properties defined for the contactFolder.
Read-only.
Nullable.
CONTACTS <IMicrosoftGraphContact- []>: The contacts in the folder.
Navigation property.
Read-only.
Nullable.
[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.
[AssistantName <String>]: The name of the contact's assistant.
[Birthday <DateTime?>]: The contact's birthday.
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
[(Any) <Object>]: This indicates any property can be added to this object.
[City <String>]: The city.
[CountryOrRegion <String>]: The country or region.
It's a free-format string value, for example, 'United States'.
[PostalCode <String>]: The postal code.
[State <String>]: The state.
[Street <String>]: The street.
[BusinessHomePage <String>]: The business home page of the contact.
[BusinessPhones <String- []>]: The contact's business phone numbers.
[Children <String- []>]: The names of the contact's children.
[CompanyName <String>]: The name of the contact's company.
[Department <String>]: The contact's department.
[DisplayName <String>]: The contact's display name.
You can specify the display name in a create or update operation.
Note that later updates to other properties may cause an automatically generated value to overwrite the displayName value you have specified.
To preserve a pre-existing value, always include it as displayName in an update operation.
[EmailAddresses <IMicrosoftGraphEmailAddress- []>]: The contact's email addresses.
[Address <String>]: The email address of the person or entity.
[Name <String>]: The display name of the person or entity.
[Extensions <IMicrosoftGraphExtension- []>]: The collection of open extensions defined for the contact.
Read-only.
Nullable.
[Id <String>]: The unique identifier for an entity.
Read-only.
[FileAs <String>]: The name the contact is filed under.
[HomePhones <String- []>]: The contact's home phone numbers.
[ImAddresses <String- []>]: The contact's instant messaging (IM) addresses.
[Initials <String>]: The contact's initials.
[JobTitle <String>]: The contact's job title.
[Manager <String>]: The name of the contact's manager.
[MiddleName <String>]: The contact's middle name.
[MobilePhone <String>]: The contact's mobile phone number.
[MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty- []>]: The collection of multi-value extended properties defined for the contact.
Read-only.
Nullable.
[Id <String>]: The unique identifier for an entity.
Read-only.
[Value <String- []>]: A collection of property values.
[NickName <String>]: The contact's nickname.
[OfficeLocation <String>]: The location of the contact's office.
[(Any) <Object>]: This indicates any property can be added to this object.
[Id <String>]: The unique identifier for an entity.
Read-only.
[Height <Int32?>]: The height of the photo.
Read-only.
[Width <Int32?>]: The width of the photo.
Read-only.
[Profession <String>]: The contact's profession.
[SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty- []>]: The collection of single-value extended properties defined for the contact.
Read-only.
Nullable.
[Id <String>]: The unique identifier for an entity.
Read-only.
[Value <String>]: A property value.
[SpouseName <String>]: The name of the contact's spouse/partner.
[Surname <String>]: The contact's surname.
[Title <String>]: The contact's title.
[YomiCompanyName <String>]: The phonetic Japanese company name of the contact.
[YomiGivenName <String>]: The phonetic Japanese given name (first name) of the contact.
[YomiSurname <String>]: The phonetic Japanese surname (last name) of the contact.
[ContactFolderId <String>]: The unique identifier of contactFolder
[ContactFolderId1 <String>]: The unique identifier of contactFolder
[ContactId <String>]: The unique identifier of contact
[ExtensionId <String>]: The unique identifier of extension
[UserId <String>]: The unique identifier of user
MULTIVALUEEXTENDEDPROPERTIES <IMicrosoftGraphMultiValueLegacyExtendedProperty- []>: The collection of multi-value extended properties defined for the contactFolder.
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 contactFolder.
Read-only.
Nullable.
[Id <String>]: The unique identifier for an entity.
Read-only.