exports/v1.0-beta/ProxyCmdletDefinitions.ps1
# ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get activityStatistics from users .Description Get activityStatistics from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphActivityStatistics .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguseractivitystatistics #> function Get-MgUserActivityStatistics { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphActivityStatistics])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of activityStatistics ${ActivityStatisticsId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserActivityStatistics_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserActivityStatistics_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserActivityStatistics_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get people from users .Description Get people from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPerson1 .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserperson #> function Get-MgUserPerson { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPerson1])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of person ${PersonId}, [Parameter(ParameterSetName='Get1', Mandatory)] [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List1')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List1')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List1')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List1')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List1')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List1')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List1')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List1')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get1 = 'Microsoft.Graph.People.private\Get-MgUserPerson_Get1'; GetViaIdentity1 = 'Microsoft.Graph.People.private\Get-MgUserPerson_GetViaIdentity1'; List1 = 'Microsoft.Graph.People.private\Get-MgUserPerson_List1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get account from users .Description Get account from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUserAccountInformation .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofileaccount #> function Get-MgUserProfileAccount { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUserAccountInformation])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of userAccountInformation ${UserAccountInformationId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfileAccount_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfileAccount_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfileAccount_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get addresses from users .Description Get addresses from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemAddress .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofileaddress #> function Get-MgUserProfileAddress { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemAddress])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of itemAddress ${ItemAddressId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfileAddress_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfileAddress_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfileAddress_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get anniversaries from users .Description Get anniversaries from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAnniversary .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofileanniversary #> function Get-MgUserProfileAnniversary { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAnniversary])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personAnniversary ${PersonAnniversaryId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfileAnniversary_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfileAnniversary_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfileAnniversary_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get awards from users .Description Get awards from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAward .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofileaward #> function Get-MgUserProfileAward { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAward])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personAward ${PersonAwardId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfileAward_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfileAward_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfileAward_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get certifications from users .Description Get certifications from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonCertification .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofilecertification #> function Get-MgUserProfileCertification { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonCertification])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personCertification ${PersonCertificationId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfileCertification_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfileCertification_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfileCertification_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get educationalActivities from users .Description Get educationalActivities from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphEducationalActivity .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofileeducationalactivity #> function Get-MgUserProfileEducationalActivity { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphEducationalActivity])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of educationalActivity ${EducationalActivityId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfileEducationalActivity_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfileEducationalActivity_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfileEducationalActivity_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get emails from users .Description Get emails from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemEmail .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofileemail #> function Get-MgUserProfileEmail { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemEmail])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of itemEmail ${ItemEmailId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfileEmail_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfileEmail_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfileEmail_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get interests from users .Description Get interests from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonInterest .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofileinterest #> function Get-MgUserProfileInterest { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonInterest])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personInterest ${PersonInterestId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfileInterest_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfileInterest_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfileInterest_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get languages from users .Description Get languages from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphLanguageProficiency .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofilelanguage #> function Get-MgUserProfileLanguage { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphLanguageProficiency])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of languageProficiency ${LanguageProficiencyId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfileLanguage_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfileLanguage_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfileLanguage_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get names from users .Description Get names from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonName .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofilename #> function Get-MgUserProfileName { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonName])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personName ${PersonNameId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfileName_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfileName_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfileName_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get notes from users .Description Get notes from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAnnotation .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofilenote #> function Get-MgUserProfileNote { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAnnotation])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personAnnotation ${PersonAnnotationId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfileNote_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfileNote_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfileNote_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get patents from users .Description Get patents from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPatent .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofilepatent #> function Get-MgUserProfilePatent { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPatent])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of itemPatent ${ItemPatentId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfilePatent_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfilePatent_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfilePatent_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get phones from users .Description Get phones from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPhone .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofilephone #> function Get-MgUserProfilePhone { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPhone])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of itemPhone ${ItemPhoneId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfilePhone_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfilePhone_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfilePhone_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get positions from users .Description Get positions from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWorkPosition .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofileposition #> function Get-MgUserProfilePosition { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWorkPosition])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of workPosition ${WorkPositionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfilePosition_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfilePosition_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfilePosition_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get projects from users .Description Get projects from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphProjectParticipation .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofileproject #> function Get-MgUserProfileProject { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphProjectParticipation])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of projectParticipation ${ProjectParticipationId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfileProject_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfileProject_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfileProject_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get publications from users .Description Get publications from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPublication .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofilepublication #> function Get-MgUserProfilePublication { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPublication])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of itemPublication ${ItemPublicationId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfilePublication_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfilePublication_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfilePublication_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get skills from users .Description Get skills from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphSkillProficiency .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofileskill #> function Get-MgUserProfileSkill { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphSkillProficiency])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of skillProficiency ${SkillProficiencyId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfileSkill_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfileSkill_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfileSkill_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get webAccounts from users .Description Get webAccounts from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWebAccount .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofilewebaccount #> function Get-MgUserProfileWebAccount { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWebAccount])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of webAccount ${WebAccountId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfileWebAccount_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfileWebAccount_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfileWebAccount_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get websites from users .Description Get websites from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonWebsite .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofilewebsite #> function Get-MgUserProfileWebsite { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonWebsite])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personWebsite ${PersonWebsiteId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Filter items by property values ${Filter}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String] # Search items by search phrases ${Search}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Skip the first n items ${Skip}, [Parameter(ParameterSetName='List')] [Alias('OrderBy')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Order items by property values ${Sort}, [Parameter(ParameterSetName='List')] [Alias('Limit')] [Microsoft.Graph.PowerShell.Category('Query')] [System.Int32] # Show only the first n items ${Top}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Int32] # Sets the page size of results. ${PageSize}, [Parameter(ParameterSetName='List')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # List all pages. ${All}, [Parameter(ParameterSetName='List')] [Alias('CV')] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.String] # Specifies a count of the total number of items in a collection. # By default, this variable will be set in the global scope. ${CountVariable} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfileWebsite_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfileWebsite_GetViaIdentity'; List = 'Microsoft.Graph.People.private\Get-MgUserProfileWebsite_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Get profile from users .Description Get profile from users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphProfile .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/get-mguserprofile #> function Get-MgUserProfile { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphProfile])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Alias('Expand')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Expand related entities ${ExpandProperty}, [Parameter()] [Alias('Select')] [Microsoft.Graph.PowerShell.Category('Query')] [System.String[]] # Select properties to be returned ${Property}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Microsoft.Graph.People.private\Get-MgUserProfile_Get'; GetViaIdentity = 'Microsoft.Graph.People.private\Get-MgUserProfile_GetViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to people for users .Description Create new navigation property to people for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPerson1 .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPerson1 .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 <IMicrosoftGraphPerson1>: person [(Any) <Object>]: This indicates any property can be added to this object. [Id <String>]: Read-only. [Birthday <String>]: The person's birthday. [CompanyName <String>]: The name of the person's company. [Department <String>]: The person's department. [DisplayName <String>]: The person's display name. [EmailAddresses <IMicrosoftGraphRankedEmailAddress[]>]: [Address <String>]: [Rank <Double?>]: [GivenName <String>]: The person's given name. [IsFavorite <Boolean?>]: true if the user has flagged this person as a favorite. [MailboxType <String>]: [OfficeLocation <String>]: The location of the person's office. [PersonNotes <String>]: Free-form notes that the user has taken about this person. [PersonType <String>]: The type of person. [Phones <IMicrosoftGraphPhone1[]>]: The person's phone numbers. [Number <String>]: The phone number. [Type <String>]: phoneType [PostalAddresses <IMicrosoftGraphLocation1[]>]: The person's addresses. [Address <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [Coordinates <IMicrosoftGraphOutlookGeoCoordinates>]: outlookGeoCoordinates [(Any) <Object>]: This indicates any property can be added to this object. [Accuracy <Double?>]: The accuracy of the latitude and longitude. As an example, the accuracy can be measured in meters, such as the latitude and longitude are accurate to within 50 meters. [Altitude <Double?>]: The altitude of the location. [AltitudeAccuracy <Double?>]: The accuracy of the altitude. [Latitude <Double?>]: The latitude of the location. [Longitude <Double?>]: The longitude of the location. [DisplayName <String>]: The name associated with the location. [LocationEmailAddress <String>]: Optional email address of the location. [LocationType <String>]: locationType [LocationUri <String>]: Optional URI representing the location. [UniqueId <String>]: For internal use only. [UniqueIdType <String>]: locationUniqueIdType [Profession <String>]: The person's profession. [Sources <IMicrosoftGraphPersonDataSource[]>]: [Type <String>]: [Surname <String>]: The person's surname. [Title <String>]: [UserPrincipalName <String>]: The user principal name (UPN) of the person. The UPN is an Internet-style login name for the person based on the Internet standard RFC 822. By convention, this should map to the person's email name. The general format is alias@domain. [Websites <IMicrosoftGraphWebsite[]>]: The person's websites. [Address <String>]: The URL of the website. [DisplayName <String>]: The display name of the web site. [Type <String>]: websiteType [YomiCompany <String>]: The phonetic Japanese name of the person's company. EMAILADDRESSES <IMicrosoftGraphRankedEmailAddress[]>: . [Address <String>]: [Rank <Double?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition PHONES <IMicrosoftGraphPhone1[]>: The person's phone numbers. [Number <String>]: The phone number. [Type <String>]: phoneType POSTALADDRESSES <IMicrosoftGraphLocation1[]>: The person's addresses. [Address <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [Coordinates <IMicrosoftGraphOutlookGeoCoordinates>]: outlookGeoCoordinates [(Any) <Object>]: This indicates any property can be added to this object. [Accuracy <Double?>]: The accuracy of the latitude and longitude. As an example, the accuracy can be measured in meters, such as the latitude and longitude are accurate to within 50 meters. [Altitude <Double?>]: The altitude of the location. [AltitudeAccuracy <Double?>]: The accuracy of the altitude. [Latitude <Double?>]: The latitude of the location. [Longitude <Double?>]: The longitude of the location. [DisplayName <String>]: The name associated with the location. [LocationEmailAddress <String>]: Optional email address of the location. [LocationType <String>]: locationType [LocationUri <String>]: Optional URI representing the location. [UniqueId <String>]: For internal use only. [UniqueIdType <String>]: locationUniqueIdType SOURCES <IMicrosoftGraphPersonDataSource[]>: . [Type <String>]: WEBSITES <IMicrosoftGraphWebsite[]>: The person's websites. [Address <String>]: The URL of the website. [DisplayName <String>]: The display name of the web site. [Type <String>]: websiteType .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserperson #> function New-MgUserPerson { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPerson1])] [CmdletBinding(DefaultParameterSetName='CreateExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create1', Mandatory)] [Parameter(ParameterSetName='CreateExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPerson1] # person # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The person's birthday. ${Birthday}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The name of the person's company. ${CompanyName}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The person's department. ${Department}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The person's display name. ${DisplayName}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphRankedEmailAddress[]] # . # To construct, see NOTES section for EMAILADDRESSES properties and create a hash table. ${EmailAddresses}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The person's given name. ${GivenName}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # true if the user has flagged this person as a favorite. ${IsFavorite}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${MailboxType}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The location of the person's office. ${OfficeLocation}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Free-form notes that the user has taken about this person. ${PersonNotes}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The type of person. ${PersonType}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPhone1[]] # The person's phone numbers. # To construct, see NOTES section for PHONES properties and create a hash table. ${Phones}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphLocation1[]] # The person's addresses. # To construct, see NOTES section for POSTALADDRESSES properties and create a hash table. ${PostalAddresses}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The person's profession. ${Profession}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSource[]] # . # To construct, see NOTES section for SOURCES properties and create a hash table. ${Sources}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The person's surname. ${Surname}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Title}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The user principal name (UPN) of the person. # The UPN is an Internet-style login name for the person based on the Internet standard RFC 822. # By convention, this should map to the person's email name. # The general format is alias@domain. ${UserPrincipalName}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWebsite[]] # The person's websites. # To construct, see NOTES section for WEBSITES properties and create a hash table. ${Websites}, [Parameter(ParameterSetName='CreateExpanded1')] [Parameter(ParameterSetName='CreateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The phonetic Japanese name of the person's company. ${YomiCompany}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create1 = 'Microsoft.Graph.People.private\New-MgUserPerson_Create1'; CreateExpanded1 = 'Microsoft.Graph.People.private\New-MgUserPerson_CreateExpanded1'; CreateViaIdentity1 = 'Microsoft.Graph.People.private\New-MgUserPerson_CreateViaIdentity1'; CreateViaIdentityExpanded1 = 'Microsoft.Graph.People.private\New-MgUserPerson_CreateViaIdentityExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to account for users .Description Create new navigation property to account for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUserAccountInformation .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUserAccountInformation .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 <IMicrosoftGraphUserAccountInformation>: userAccountInformation [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [AgeGroup <String>]: [CountryCode <String>]: [PreferredLanguageTag <IMicrosoftGraphLocaleInfo>]: localeInfo [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: A name representing the user's locale in natural language, for example, 'English (United States)'. [Locale <String>]: A locale representation for the user, which includes the user's preferred language and country/region. For example, 'en-us'. The language component follows 2-letter codes as defined in ISO 639-1, and the country component follows 2-letter codes as defined in ISO 3166-1 alpha-2. [UserPrincipalName <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity PREFERREDLANGUAGETAG <IMicrosoftGraphLocaleInfo>: localeInfo [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: A name representing the user's locale in natural language, for example, 'English (United States)'. [Locale <String>]: A locale representation for the user, which includes the user's preferred language and country/region. For example, 'en-us'. The language component follows 2-letter codes as defined in ISO 639-1, and the country component follows 2-letter codes as defined in ISO 3166-1 alpha-2. SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofileaccount #> function New-MgUserProfileAccount { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUserAccountInformation])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUserAccountInformation] # userAccountInformation # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${AgeGroup}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${CountryCode}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphLocaleInfo] # localeInfo # To construct, see NOTES section for PREFERREDLANGUAGETAG properties and create a hash table. ${PreferredLanguageTag}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${UserPrincipalName}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfileAccount_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileAccount_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfileAccount_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileAccount_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to addresses for users .Description Create new navigation property to addresses for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemAddress .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemAddress .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 <IMicrosoftGraphItemAddress>: itemAddress [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Detail <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [DisplayName <String>]: [GeoCoordinates <IMicrosoftGraphGeoCoordinates>]: geoCoordinates [(Any) <Object>]: This indicates any property can be added to this object. [Altitude <Double?>]: Optional. The altitude (height), in feet, above sea level for the item. Read-only. [Latitude <Double?>]: Optional. The latitude, in decimal, for the item. Read-only. [Longitude <Double?>]: Optional. The longitude, in decimal, for the item. Read-only. CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity DETAIL <IMicrosoftGraphPhysicalAddress1>: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType GEOCOORDINATES <IMicrosoftGraphGeoCoordinates>: geoCoordinates [(Any) <Object>]: This indicates any property can be added to this object. [Altitude <Double?>]: Optional. The altitude (height), in feet, above sea level for the item. Read-only. [Latitude <Double?>]: Optional. The latitude, in decimal, for the item. Read-only. [Longitude <Double?>]: Optional. The longitude, in decimal, for the item. Read-only. INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofileaddress #> function New-MgUserProfileAddress { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemAddress])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemAddress] # itemAddress # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPhysicalAddress1] # physicalAddress # To construct, see NOTES section for DETAIL properties and create a hash table. ${Detail}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphGeoCoordinates] # geoCoordinates # To construct, see NOTES section for GEOCOORDINATES properties and create a hash table. ${GeoCoordinates}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfileAddress_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileAddress_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfileAddress_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileAddress_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to anniversaries for users .Description Create new navigation property to anniversaries for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAnniversary .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAnniversary .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 <IMicrosoftGraphPersonAnniversary>: personAnniversary [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Date <DateTime?>]: [Type <String>]: anniversaryType CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofileanniversary #> function New-MgUserProfileAnniversary { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAnniversary])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAnniversary] # personAnniversary # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${Date}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # anniversaryType ${Type}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfileAnniversary_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileAnniversary_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfileAnniversary_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileAnniversary_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to awards for users .Description Create new navigation property to awards for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAward .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAward .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 <IMicrosoftGraphPersonAward>: personAward [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Description <String>]: [DisplayName <String>]: [IssuedDate <DateTime?>]: [IssuingAuthority <String>]: [ThumbnailUrl <String>]: [WebUrl <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofileaward #> function New-MgUserProfileAward { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAward])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAward] # personAward # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Description}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${IssuedDate}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${IssuingAuthority}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ThumbnailUrl}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${WebUrl}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfileAward_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileAward_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfileAward_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileAward_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to certifications for users .Description Create new navigation property to certifications for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonCertification .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonCertification .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 <IMicrosoftGraphPersonCertification>: personCertification [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [CertificationId <String>]: [Description <String>]: [DisplayName <String>]: [EndDate <DateTime?>]: [IssuedDate <DateTime?>]: [IssuingAuthority <String>]: [IssuingCompany <String>]: [StartDate <DateTime?>]: [ThumbnailUrl <String>]: [WebUrl <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofilecertification #> function New-MgUserProfileCertification { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonCertification])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonCertification] # personCertification # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${CertificationId}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Description}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${EndDate}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${IssuedDate}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${IssuingAuthority}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${IssuingCompany}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${StartDate}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ThumbnailUrl}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${WebUrl}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfileCertification_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileCertification_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfileCertification_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileCertification_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to educationalActivities for users .Description Create new navigation property to educationalActivities for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphEducationalActivity .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphEducationalActivity .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 <IMicrosoftGraphEducationalActivity>: educationalActivity [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [CompletionMonthYear <DateTime?>]: [EndMonthYear <DateTime?>]: [Institution <IMicrosoftGraphInstitutionData>]: institutionData [(Any) <Object>]: This indicates any property can be added to this object. [Description <String>]: [DisplayName <String>]: [Location <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [WebUrl <String>]: [Program <IMicrosoftGraphEducationalActivityDetail>]: educationalActivityDetail [(Any) <Object>]: This indicates any property can be added to this object. [Abbreviation <String>]: [Activities <String[]>]: [Awards <String[]>]: [Description <String>]: [DisplayName <String>]: [FieldsOfStudy <String[]>]: [Grade <String>]: [Notes <String>]: [WebUrl <String>]: [StartMonthYear <DateTime?>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition INSTITUTION <IMicrosoftGraphInstitutionData>: institutionData [(Any) <Object>]: This indicates any property can be added to this object. [Description <String>]: [DisplayName <String>]: [Location <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [WebUrl <String>]: LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity PROGRAM <IMicrosoftGraphEducationalActivityDetail>: educationalActivityDetail [(Any) <Object>]: This indicates any property can be added to this object. [Abbreviation <String>]: [Activities <String[]>]: [Awards <String[]>]: [Description <String>]: [DisplayName <String>]: [FieldsOfStudy <String[]>]: [Grade <String>]: [Notes <String>]: [WebUrl <String>]: SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofileeducationalactivity #> function New-MgUserProfileEducationalActivity { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphEducationalActivity])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphEducationalActivity] # educationalActivity # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CompletionMonthYear}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${EndMonthYear}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInstitutionData] # institutionData # To construct, see NOTES section for INSTITUTION properties and create a hash table. ${Institution}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphEducationalActivityDetail] # educationalActivityDetail # To construct, see NOTES section for PROGRAM properties and create a hash table. ${Program}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${StartMonthYear}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfileEducationalActivity_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileEducationalActivity_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfileEducationalActivity_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileEducationalActivity_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to emails for users .Description Create new navigation property to emails for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemEmail .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemEmail .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 <IMicrosoftGraphItemEmail>: itemEmail [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Address <String>]: [DisplayName <String>]: [Type <String>]: emailType CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofileemail #> function New-MgUserProfileEmail { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemEmail])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemEmail] # itemEmail # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Address}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # emailType ${Type}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfileEmail_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileEmail_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfileEmail_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileEmail_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to interests for users .Description Create new navigation property to interests for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonInterest .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonInterest .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 <IMicrosoftGraphPersonInterest>: personInterest [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Categories <String[]>]: [CollaborationTags <String[]>]: [Description <String>]: [DisplayName <String>]: [WebUrl <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofileinterest #> function New-MgUserProfileInterest { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonInterest])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonInterest] # personInterest # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${Categories}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${CollaborationTags}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Description}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${WebUrl}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfileInterest_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileInterest_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfileInterest_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileInterest_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to languages for users .Description Create new navigation property to languages for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphLanguageProficiency .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphLanguageProficiency .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 <IMicrosoftGraphLanguageProficiency>: languageProficiency [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [DisplayName <String>]: [Proficiency <String>]: languageProficiencyLevel [Reading <String>]: languageProficiencyLevel [Spoken <String>]: languageProficiencyLevel [Tag <String>]: [Written <String>]: languageProficiencyLevel CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofilelanguage #> function New-MgUserProfileLanguage { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphLanguageProficiency])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphLanguageProficiency] # languageProficiency # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # languageProficiencyLevel ${Proficiency}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # languageProficiencyLevel ${Reading}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # languageProficiencyLevel ${Spoken}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Tag}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # languageProficiencyLevel ${Written}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfileLanguage_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileLanguage_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfileLanguage_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileLanguage_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to names for users .Description Create new navigation property to names for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonName .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonName .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 <IMicrosoftGraphPersonName>: personName [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [DisplayName <String>]: [First <String>]: [Initials <String>]: [LanguageTag <String>]: [Last <String>]: [Maiden <String>]: [Middle <String>]: [Nickname <String>]: [Pronunciation <IMicrosoftGraphYomiPersonName>]: yomiPersonName [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: [First <String>]: [Last <String>]: [Maiden <String>]: [Middle <String>]: [Suffix <String>]: [Title <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity PRONUNCIATION <IMicrosoftGraphYomiPersonName>: yomiPersonName [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: [First <String>]: [Last <String>]: [Maiden <String>]: [Middle <String>]: SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofilename #> function New-MgUserProfileName { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonName])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonName] # personName # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${First}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Initials}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${LanguageTag}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Last}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Maiden}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Middle}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Nickname}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphYomiPersonName] # yomiPersonName # To construct, see NOTES section for PRONUNCIATION properties and create a hash table. ${Pronunciation}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Suffix}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Title}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfileName_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileName_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfileName_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileName_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to notes for users .Description Create new navigation property to notes for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAnnotation .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAnnotation .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 <IMicrosoftGraphPersonAnnotation>: personAnnotation [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Detail <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [DisplayName <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity DETAIL <IMicrosoftGraphItemBody>: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofilenote #> function New-MgUserProfileNote { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAnnotation])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAnnotation] # personAnnotation # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemBody] # itemBody # To construct, see NOTES section for DETAIL properties and create a hash table. ${Detail}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfileNote_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileNote_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfileNote_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileNote_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to patents for users .Description Create new navigation property to patents for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPatent .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPatent .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 <IMicrosoftGraphItemPatent>: itemPatent [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Description <String>]: [DisplayName <String>]: [IsPending <Boolean?>]: [IssuedDate <DateTime?>]: [IssuingAuthority <String>]: [Number <String>]: [WebUrl <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofilepatent #> function New-MgUserProfilePatent { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPatent])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPatent] # itemPatent # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Description}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${IsPending}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${IssuedDate}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${IssuingAuthority}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Number}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${WebUrl}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfilePatent_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfilePatent_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfilePatent_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfilePatent_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to phones for users .Description Create new navigation property to phones for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPhone .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPhone .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 <IMicrosoftGraphItemPhone>: itemPhone [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [DisplayName <String>]: [Number <String>]: [Type <String>]: phoneType CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofilephone #> function New-MgUserProfilePhone { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPhone])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPhone] # itemPhone # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Number}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # phoneType ${Type}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfilePhone_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfilePhone_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfilePhone_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfilePhone_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to positions for users .Description Create new navigation property to positions for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWorkPosition .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWorkPosition .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 <IMicrosoftGraphWorkPosition>: workPosition [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Categories <String[]>]: [Colleagues <IMicrosoftGraphRelatedPerson[]>]: [DisplayName <String>]: [Relationship <String>]: personRelationship [UserPrincipalName <String>]: [Detail <IMicrosoftGraphPositionDetail>]: positionDetail [(Any) <Object>]: This indicates any property can be added to this object. [Company <IMicrosoftGraphCompanyDetail>]: companyDetail [(Any) <Object>]: This indicates any property can be added to this object. [Address <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [Department <String>]: [DisplayName <String>]: [OfficeLocation <String>]: [Pronunciation <String>]: [WebUrl <String>]: [Description <String>]: [EndMonthYear <DateTime?>]: [JobTitle <String>]: [Role <String>]: [StartMonthYear <DateTime?>]: [Summary <String>]: [IsCurrent <Boolean?>]: [Manager <IMicrosoftGraphRelatedPerson>]: relatedPerson COLLEAGUES <IMicrosoftGraphRelatedPerson[]>: . [DisplayName <String>]: [Relationship <String>]: personRelationship [UserPrincipalName <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity DETAIL <IMicrosoftGraphPositionDetail>: positionDetail [(Any) <Object>]: This indicates any property can be added to this object. [Company <IMicrosoftGraphCompanyDetail>]: companyDetail [(Any) <Object>]: This indicates any property can be added to this object. [Address <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [Department <String>]: [DisplayName <String>]: [OfficeLocation <String>]: [Pronunciation <String>]: [WebUrl <String>]: [Description <String>]: [EndMonthYear <DateTime?>]: [JobTitle <String>]: [Role <String>]: [StartMonthYear <DateTime?>]: [Summary <String>]: INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity MANAGER <IMicrosoftGraphRelatedPerson>: relatedPerson [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: [Relationship <String>]: personRelationship [UserPrincipalName <String>]: SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofileposition #> function New-MgUserProfilePosition { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWorkPosition])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWorkPosition] # workPosition # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${Categories}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphRelatedPerson[]] # . # To construct, see NOTES section for COLLEAGUES properties and create a hash table. ${Colleagues}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPositionDetail] # positionDetail # To construct, see NOTES section for DETAIL properties and create a hash table. ${Detail}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${IsCurrent}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphRelatedPerson] # relatedPerson # To construct, see NOTES section for MANAGER properties and create a hash table. ${Manager}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfilePosition_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfilePosition_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfilePosition_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfilePosition_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to projects for users .Description Create new navigation property to projects for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphProjectParticipation .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphProjectParticipation .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 <IMicrosoftGraphProjectParticipation>: projectParticipation [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Categories <String[]>]: [Client <IMicrosoftGraphCompanyDetail>]: companyDetail [(Any) <Object>]: This indicates any property can be added to this object. [Address <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [Department <String>]: [DisplayName <String>]: [OfficeLocation <String>]: [Pronunciation <String>]: [WebUrl <String>]: [CollaborationTags <String[]>]: [Colleagues <IMicrosoftGraphRelatedPerson[]>]: [DisplayName <String>]: [Relationship <String>]: personRelationship [UserPrincipalName <String>]: [Detail <IMicrosoftGraphPositionDetail>]: positionDetail [(Any) <Object>]: This indicates any property can be added to this object. [Company <IMicrosoftGraphCompanyDetail>]: companyDetail [Description <String>]: [EndMonthYear <DateTime?>]: [JobTitle <String>]: [Role <String>]: [StartMonthYear <DateTime?>]: [Summary <String>]: [DisplayName <String>]: [Sponsors <IMicrosoftGraphRelatedPerson[]>]: CLIENT <IMicrosoftGraphCompanyDetail>: companyDetail [(Any) <Object>]: This indicates any property can be added to this object. [Address <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [Department <String>]: [DisplayName <String>]: [OfficeLocation <String>]: [Pronunciation <String>]: [WebUrl <String>]: COLLEAGUES <IMicrosoftGraphRelatedPerson[]>: . [DisplayName <String>]: [Relationship <String>]: personRelationship [UserPrincipalName <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity DETAIL <IMicrosoftGraphPositionDetail>: positionDetail [(Any) <Object>]: This indicates any property can be added to this object. [Company <IMicrosoftGraphCompanyDetail>]: companyDetail [(Any) <Object>]: This indicates any property can be added to this object. [Address <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [Department <String>]: [DisplayName <String>]: [OfficeLocation <String>]: [Pronunciation <String>]: [WebUrl <String>]: [Description <String>]: [EndMonthYear <DateTime?>]: [JobTitle <String>]: [Role <String>]: [StartMonthYear <DateTime?>]: [Summary <String>]: INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: SPONSORS <IMicrosoftGraphRelatedPerson[]>: . [DisplayName <String>]: [Relationship <String>]: personRelationship [UserPrincipalName <String>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofileproject #> function New-MgUserProfileProject { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphProjectParticipation])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphProjectParticipation] # projectParticipation # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${Categories}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphCompanyDetail] # companyDetail # To construct, see NOTES section for CLIENT properties and create a hash table. ${Client}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${CollaborationTags}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphRelatedPerson[]] # . # To construct, see NOTES section for COLLEAGUES properties and create a hash table. ${Colleagues}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPositionDetail] # positionDetail # To construct, see NOTES section for DETAIL properties and create a hash table. ${Detail}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphRelatedPerson[]] # . # To construct, see NOTES section for SPONSORS properties and create a hash table. ${Sponsors}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfileProject_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileProject_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfileProject_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileProject_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to publications for users .Description Create new navigation property to publications for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPublication .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPublication .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 <IMicrosoftGraphItemPublication>: itemPublication [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Description <String>]: [DisplayName <String>]: [PublishedDate <DateTime?>]: [Publisher <String>]: [ThumbnailUrl <String>]: [WebUrl <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofilepublication #> function New-MgUserProfilePublication { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPublication])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPublication] # itemPublication # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Description}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${PublishedDate}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Publisher}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ThumbnailUrl}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${WebUrl}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfilePublication_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfilePublication_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfilePublication_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfilePublication_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to skills for users .Description Create new navigation property to skills for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphSkillProficiency .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphSkillProficiency .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 <IMicrosoftGraphSkillProficiency>: skillProficiency [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Categories <String[]>]: [CollaborationTags <String[]>]: [DisplayName <String>]: [Proficiency <String>]: skillProficiencyLevel [WebUrl <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofileskill #> function New-MgUserProfileSkill { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphSkillProficiency])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphSkillProficiency] # skillProficiency # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${Categories}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${CollaborationTags}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # skillProficiencyLevel ${Proficiency}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${WebUrl}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfileSkill_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileSkill_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfileSkill_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileSkill_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to webAccounts for users .Description Create new navigation property to webAccounts for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWebAccount .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWebAccount .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 <IMicrosoftGraphWebAccount>: webAccount [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Description <String>]: [Service <IMicrosoftGraphServiceInformation>]: serviceInformation [(Any) <Object>]: This indicates any property can be added to this object. [Name <String>]: [WebUrl <String>]: [StatusMessage <String>]: [UserId <String>]: [WebUrl <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SERVICE <IMicrosoftGraphServiceInformation>: serviceInformation [(Any) <Object>]: This indicates any property can be added to this object. [Name <String>]: [WebUrl <String>]: SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofilewebaccount #> function New-MgUserProfileWebAccount { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWebAccount])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWebAccount] # webAccount # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Description}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphServiceInformation] # serviceInformation # To construct, see NOTES section for SERVICE properties and create a hash table. ${Service}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${StatusMessage}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${UserId1}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${WebUrl}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfileWebAccount_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileWebAccount_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfileWebAccount_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileWebAccount_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Create new navigation property to websites for users .Description Create new navigation property to websites for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonWebsite .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonWebsite .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 <IMicrosoftGraphPersonWebsite>: personWebsite [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Categories <String[]>]: [Description <String>]: [DisplayName <String>]: [WebUrl <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/new-mguserprofilewebsite #> function New-MgUserProfileWebsite { [OutputType([Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonWebsite])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Create', Mandatory)] [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonWebsite] # personWebsite # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${Categories}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Description}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${WebUrl}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create = 'Microsoft.Graph.People.private\New-MgUserProfileWebsite_Create'; CreateExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileWebsite_CreateExpanded'; CreateViaIdentity = 'Microsoft.Graph.People.private\New-MgUserProfileWebsite_CreateViaIdentity'; CreateViaIdentityExpanded = 'Microsoft.Graph.People.private\New-MgUserProfileWebsite_CreateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property people for users .Description Delete navigation property people for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserperson #> function Remove-MgUserPerson { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of person ${PersonId}, [Parameter(ParameterSetName='Delete1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete1 = 'Microsoft.Graph.People.private\Remove-MgUserPerson_Delete1'; DeleteViaIdentity1 = 'Microsoft.Graph.People.private\Remove-MgUserPerson_DeleteViaIdentity1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property account for users .Description Delete navigation property account for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofileaccount #> function Remove-MgUserProfileAccount { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of userAccountInformation ${UserAccountInformationId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfileAccount_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfileAccount_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property addresses for users .Description Delete navigation property addresses for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofileaddress #> function Remove-MgUserProfileAddress { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of itemAddress ${ItemAddressId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfileAddress_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfileAddress_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property anniversaries for users .Description Delete navigation property anniversaries for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofileanniversary #> function Remove-MgUserProfileAnniversary { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personAnniversary ${PersonAnniversaryId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfileAnniversary_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfileAnniversary_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property awards for users .Description Delete navigation property awards for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofileaward #> function Remove-MgUserProfileAward { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personAward ${PersonAwardId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfileAward_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfileAward_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property certifications for users .Description Delete navigation property certifications for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofilecertification #> function Remove-MgUserProfileCertification { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personCertification ${PersonCertificationId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfileCertification_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfileCertification_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property educationalActivities for users .Description Delete navigation property educationalActivities for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofileeducationalactivity #> function Remove-MgUserProfileEducationalActivity { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of educationalActivity ${EducationalActivityId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfileEducationalActivity_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfileEducationalActivity_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property emails for users .Description Delete navigation property emails for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofileemail #> function Remove-MgUserProfileEmail { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of itemEmail ${ItemEmailId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfileEmail_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfileEmail_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property interests for users .Description Delete navigation property interests for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofileinterest #> function Remove-MgUserProfileInterest { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personInterest ${PersonInterestId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfileInterest_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfileInterest_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property languages for users .Description Delete navigation property languages for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofilelanguage #> function Remove-MgUserProfileLanguage { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of languageProficiency ${LanguageProficiencyId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfileLanguage_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfileLanguage_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property names for users .Description Delete navigation property names for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofilename #> function Remove-MgUserProfileName { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personName ${PersonNameId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfileName_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfileName_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property notes for users .Description Delete navigation property notes for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofilenote #> function Remove-MgUserProfileNote { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personAnnotation ${PersonAnnotationId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfileNote_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfileNote_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property patents for users .Description Delete navigation property patents for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofilepatent #> function Remove-MgUserProfilePatent { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of itemPatent ${ItemPatentId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfilePatent_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfilePatent_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property phones for users .Description Delete navigation property phones for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofilephone #> function Remove-MgUserProfilePhone { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of itemPhone ${ItemPhoneId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfilePhone_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfilePhone_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property positions for users .Description Delete navigation property positions for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofileposition #> function Remove-MgUserProfilePosition { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of workPosition ${WorkPositionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfilePosition_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfilePosition_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property projects for users .Description Delete navigation property projects for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofileproject #> function Remove-MgUserProfileProject { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of projectParticipation ${ProjectParticipationId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfileProject_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfileProject_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property publications for users .Description Delete navigation property publications for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofilepublication #> function Remove-MgUserProfilePublication { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of itemPublication ${ItemPublicationId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfilePublication_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfilePublication_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property skills for users .Description Delete navigation property skills for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofileskill #> function Remove-MgUserProfileSkill { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of skillProficiency ${SkillProficiencyId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfileSkill_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfileSkill_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property webAccounts for users .Description Delete navigation property webAccounts for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofilewebaccount #> function Remove-MgUserProfileWebAccount { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of webAccount ${WebAccountId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfileWebAccount_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfileWebAccount_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property websites for users .Description Delete navigation property websites for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofilewebsite #> function Remove-MgUserProfileWebsite { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personWebsite ${PersonWebsiteId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfileWebsite_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfileWebsite_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Delete navigation property profile for users .Description Delete navigation property profile for users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/remove-mguserprofile #> function Remove-MgUserProfile { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Header')] [System.String] # ETag ${IfMatch}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Microsoft.Graph.People.private\Remove-MgUserProfile_Delete'; DeleteViaIdentity = 'Microsoft.Graph.People.private\Remove-MgUserProfile_DeleteViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property people in users .Description Update the navigation property people in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPerson1 .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphPerson1>: person [(Any) <Object>]: This indicates any property can be added to this object. [Id <String>]: Read-only. [Birthday <String>]: The person's birthday. [CompanyName <String>]: The name of the person's company. [Department <String>]: The person's department. [DisplayName <String>]: The person's display name. [EmailAddresses <IMicrosoftGraphRankedEmailAddress[]>]: [Address <String>]: [Rank <Double?>]: [GivenName <String>]: The person's given name. [IsFavorite <Boolean?>]: true if the user has flagged this person as a favorite. [MailboxType <String>]: [OfficeLocation <String>]: The location of the person's office. [PersonNotes <String>]: Free-form notes that the user has taken about this person. [PersonType <String>]: The type of person. [Phones <IMicrosoftGraphPhone1[]>]: The person's phone numbers. [Number <String>]: The phone number. [Type <String>]: phoneType [PostalAddresses <IMicrosoftGraphLocation1[]>]: The person's addresses. [Address <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [Coordinates <IMicrosoftGraphOutlookGeoCoordinates>]: outlookGeoCoordinates [(Any) <Object>]: This indicates any property can be added to this object. [Accuracy <Double?>]: The accuracy of the latitude and longitude. As an example, the accuracy can be measured in meters, such as the latitude and longitude are accurate to within 50 meters. [Altitude <Double?>]: The altitude of the location. [AltitudeAccuracy <Double?>]: The accuracy of the altitude. [Latitude <Double?>]: The latitude of the location. [Longitude <Double?>]: The longitude of the location. [DisplayName <String>]: The name associated with the location. [LocationEmailAddress <String>]: Optional email address of the location. [LocationType <String>]: locationType [LocationUri <String>]: Optional URI representing the location. [UniqueId <String>]: For internal use only. [UniqueIdType <String>]: locationUniqueIdType [Profession <String>]: The person's profession. [Sources <IMicrosoftGraphPersonDataSource[]>]: [Type <String>]: [Surname <String>]: The person's surname. [Title <String>]: [UserPrincipalName <String>]: The user principal name (UPN) of the person. The UPN is an Internet-style login name for the person based on the Internet standard RFC 822. By convention, this should map to the person's email name. The general format is alias@domain. [Websites <IMicrosoftGraphWebsite[]>]: The person's websites. [Address <String>]: The URL of the website. [DisplayName <String>]: The display name of the web site. [Type <String>]: websiteType [YomiCompany <String>]: The phonetic Japanese name of the person's company. EMAILADDRESSES <IMicrosoftGraphRankedEmailAddress[]>: . [Address <String>]: [Rank <Double?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition PHONES <IMicrosoftGraphPhone1[]>: The person's phone numbers. [Number <String>]: The phone number. [Type <String>]: phoneType POSTALADDRESSES <IMicrosoftGraphLocation1[]>: The person's addresses. [Address <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [Coordinates <IMicrosoftGraphOutlookGeoCoordinates>]: outlookGeoCoordinates [(Any) <Object>]: This indicates any property can be added to this object. [Accuracy <Double?>]: The accuracy of the latitude and longitude. As an example, the accuracy can be measured in meters, such as the latitude and longitude are accurate to within 50 meters. [Altitude <Double?>]: The altitude of the location. [AltitudeAccuracy <Double?>]: The accuracy of the altitude. [Latitude <Double?>]: The latitude of the location. [Longitude <Double?>]: The longitude of the location. [DisplayName <String>]: The name associated with the location. [LocationEmailAddress <String>]: Optional email address of the location. [LocationType <String>]: locationType [LocationUri <String>]: Optional URI representing the location. [UniqueId <String>]: For internal use only. [UniqueIdType <String>]: locationUniqueIdType SOURCES <IMicrosoftGraphPersonDataSource[]>: . [Type <String>]: WEBSITES <IMicrosoftGraphWebsite[]>: The person's websites. [Address <String>]: The URL of the website. [DisplayName <String>]: The display name of the web site. [Type <String>]: websiteType .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserperson #> function Update-MgUserPerson { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update1', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of person ${PersonId}, [Parameter(ParameterSetName='Update1', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded1', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPerson1] # person # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The person's birthday. ${Birthday}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The name of the person's company. ${CompanyName}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The person's department. ${Department}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The person's display name. ${DisplayName}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphRankedEmailAddress[]] # . # To construct, see NOTES section for EMAILADDRESSES properties and create a hash table. ${EmailAddresses}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The person's given name. ${GivenName}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # true if the user has flagged this person as a favorite. ${IsFavorite}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${MailboxType}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The location of the person's office. ${OfficeLocation}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Free-form notes that the user has taken about this person. ${PersonNotes}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The type of person. ${PersonType}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPhone1[]] # The person's phone numbers. # To construct, see NOTES section for PHONES properties and create a hash table. ${Phones}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphLocation1[]] # The person's addresses. # To construct, see NOTES section for POSTALADDRESSES properties and create a hash table. ${PostalAddresses}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The person's profession. ${Profession}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSource[]] # . # To construct, see NOTES section for SOURCES properties and create a hash table. ${Sources}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The person's surname. ${Surname}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Title}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The user principal name (UPN) of the person. # The UPN is an Internet-style login name for the person based on the Internet standard RFC 822. # By convention, this should map to the person's email name. # The general format is alias@domain. ${UserPrincipalName}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWebsite[]] # The person's websites. # To construct, see NOTES section for WEBSITES properties and create a hash table. ${Websites}, [Parameter(ParameterSetName='UpdateExpanded1')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded1')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # The phonetic Japanese name of the person's company. ${YomiCompany}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update1 = 'Microsoft.Graph.People.private\Update-MgUserPerson_Update1'; UpdateExpanded1 = 'Microsoft.Graph.People.private\Update-MgUserPerson_UpdateExpanded1'; UpdateViaIdentity1 = 'Microsoft.Graph.People.private\Update-MgUserPerson_UpdateViaIdentity1'; UpdateViaIdentityExpanded1 = 'Microsoft.Graph.People.private\Update-MgUserPerson_UpdateViaIdentityExpanded1'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property account in users .Description Update the navigation property account in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUserAccountInformation .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphUserAccountInformation>: userAccountInformation [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [AgeGroup <String>]: [CountryCode <String>]: [PreferredLanguageTag <IMicrosoftGraphLocaleInfo>]: localeInfo [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: A name representing the user's locale in natural language, for example, 'English (United States)'. [Locale <String>]: A locale representation for the user, which includes the user's preferred language and country/region. For example, 'en-us'. The language component follows 2-letter codes as defined in ISO 639-1, and the country component follows 2-letter codes as defined in ISO 3166-1 alpha-2. [UserPrincipalName <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity PREFERREDLANGUAGETAG <IMicrosoftGraphLocaleInfo>: localeInfo [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: A name representing the user's locale in natural language, for example, 'English (United States)'. [Locale <String>]: A locale representation for the user, which includes the user's preferred language and country/region. For example, 'en-us'. The language component follows 2-letter codes as defined in ISO 639-1, and the country component follows 2-letter codes as defined in ISO 3166-1 alpha-2. SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofileaccount #> function Update-MgUserProfileAccount { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of userAccountInformation ${UserAccountInformationId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUserAccountInformation] # userAccountInformation # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${AgeGroup}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${CountryCode}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphLocaleInfo] # localeInfo # To construct, see NOTES section for PREFERREDLANGUAGETAG properties and create a hash table. ${PreferredLanguageTag}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${UserPrincipalName}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfileAccount_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileAccount_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfileAccount_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileAccount_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property addresses in users .Description Update the navigation property addresses in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemAddress .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphItemAddress>: itemAddress [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Detail <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [DisplayName <String>]: [GeoCoordinates <IMicrosoftGraphGeoCoordinates>]: geoCoordinates [(Any) <Object>]: This indicates any property can be added to this object. [Altitude <Double?>]: Optional. The altitude (height), in feet, above sea level for the item. Read-only. [Latitude <Double?>]: Optional. The latitude, in decimal, for the item. Read-only. [Longitude <Double?>]: Optional. The longitude, in decimal, for the item. Read-only. CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity DETAIL <IMicrosoftGraphPhysicalAddress1>: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType GEOCOORDINATES <IMicrosoftGraphGeoCoordinates>: geoCoordinates [(Any) <Object>]: This indicates any property can be added to this object. [Altitude <Double?>]: Optional. The altitude (height), in feet, above sea level for the item. Read-only. [Latitude <Double?>]: Optional. The latitude, in decimal, for the item. Read-only. [Longitude <Double?>]: Optional. The longitude, in decimal, for the item. Read-only. INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofileaddress #> function Update-MgUserProfileAddress { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of itemAddress ${ItemAddressId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemAddress] # itemAddress # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPhysicalAddress1] # physicalAddress # To construct, see NOTES section for DETAIL properties and create a hash table. ${Detail}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphGeoCoordinates] # geoCoordinates # To construct, see NOTES section for GEOCOORDINATES properties and create a hash table. ${GeoCoordinates}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfileAddress_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileAddress_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfileAddress_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileAddress_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property anniversaries in users .Description Update the navigation property anniversaries in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAnniversary .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphPersonAnniversary>: personAnniversary [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Date <DateTime?>]: [Type <String>]: anniversaryType CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofileanniversary #> function Update-MgUserProfileAnniversary { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personAnniversary ${PersonAnniversaryId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAnniversary] # personAnniversary # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${Date}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # anniversaryType ${Type}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfileAnniversary_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileAnniversary_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfileAnniversary_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileAnniversary_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property awards in users .Description Update the navigation property awards in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAward .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphPersonAward>: personAward [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Description <String>]: [DisplayName <String>]: [IssuedDate <DateTime?>]: [IssuingAuthority <String>]: [ThumbnailUrl <String>]: [WebUrl <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofileaward #> function Update-MgUserProfileAward { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personAward ${PersonAwardId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAward] # personAward # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Description}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${IssuedDate}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${IssuingAuthority}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ThumbnailUrl}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${WebUrl}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfileAward_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileAward_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfileAward_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileAward_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property certifications in users .Description Update the navigation property certifications in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonCertification .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphPersonCertification>: personCertification [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [CertificationId <String>]: [Description <String>]: [DisplayName <String>]: [EndDate <DateTime?>]: [IssuedDate <DateTime?>]: [IssuingAuthority <String>]: [IssuingCompany <String>]: [StartDate <DateTime?>]: [ThumbnailUrl <String>]: [WebUrl <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofilecertification #> function Update-MgUserProfileCertification { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personCertification ${PersonCertificationId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonCertification] # personCertification # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${CertificationId}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Description}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${EndDate}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${IssuedDate}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${IssuingAuthority}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${IssuingCompany}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${StartDate}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ThumbnailUrl}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${WebUrl}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfileCertification_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileCertification_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfileCertification_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileCertification_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property educationalActivities in users .Description Update the navigation property educationalActivities in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphEducationalActivity .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphEducationalActivity>: educationalActivity [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [CompletionMonthYear <DateTime?>]: [EndMonthYear <DateTime?>]: [Institution <IMicrosoftGraphInstitutionData>]: institutionData [(Any) <Object>]: This indicates any property can be added to this object. [Description <String>]: [DisplayName <String>]: [Location <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [WebUrl <String>]: [Program <IMicrosoftGraphEducationalActivityDetail>]: educationalActivityDetail [(Any) <Object>]: This indicates any property can be added to this object. [Abbreviation <String>]: [Activities <String[]>]: [Awards <String[]>]: [Description <String>]: [DisplayName <String>]: [FieldsOfStudy <String[]>]: [Grade <String>]: [Notes <String>]: [WebUrl <String>]: [StartMonthYear <DateTime?>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition INSTITUTION <IMicrosoftGraphInstitutionData>: institutionData [(Any) <Object>]: This indicates any property can be added to this object. [Description <String>]: [DisplayName <String>]: [Location <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [WebUrl <String>]: LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity PROGRAM <IMicrosoftGraphEducationalActivityDetail>: educationalActivityDetail [(Any) <Object>]: This indicates any property can be added to this object. [Abbreviation <String>]: [Activities <String[]>]: [Awards <String[]>]: [Description <String>]: [DisplayName <String>]: [FieldsOfStudy <String[]>]: [Grade <String>]: [Notes <String>]: [WebUrl <String>]: SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofileeducationalactivity #> function Update-MgUserProfileEducationalActivity { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of educationalActivity ${EducationalActivityId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphEducationalActivity] # educationalActivity # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CompletionMonthYear}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${EndMonthYear}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInstitutionData] # institutionData # To construct, see NOTES section for INSTITUTION properties and create a hash table. ${Institution}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphEducationalActivityDetail] # educationalActivityDetail # To construct, see NOTES section for PROGRAM properties and create a hash table. ${Program}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${StartMonthYear}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfileEducationalActivity_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileEducationalActivity_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfileEducationalActivity_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileEducationalActivity_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property emails in users .Description Update the navigation property emails in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemEmail .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphItemEmail>: itemEmail [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Address <String>]: [DisplayName <String>]: [Type <String>]: emailType CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofileemail #> function Update-MgUserProfileEmail { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of itemEmail ${ItemEmailId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemEmail] # itemEmail # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Address}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # emailType ${Type}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfileEmail_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileEmail_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfileEmail_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileEmail_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property interests in users .Description Update the navigation property interests in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonInterest .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphPersonInterest>: personInterest [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Categories <String[]>]: [CollaborationTags <String[]>]: [Description <String>]: [DisplayName <String>]: [WebUrl <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofileinterest #> function Update-MgUserProfileInterest { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personInterest ${PersonInterestId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonInterest] # personInterest # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${Categories}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${CollaborationTags}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Description}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${WebUrl}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfileInterest_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileInterest_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfileInterest_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileInterest_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property languages in users .Description Update the navigation property languages in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphLanguageProficiency .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphLanguageProficiency>: languageProficiency [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [DisplayName <String>]: [Proficiency <String>]: languageProficiencyLevel [Reading <String>]: languageProficiencyLevel [Spoken <String>]: languageProficiencyLevel [Tag <String>]: [Written <String>]: languageProficiencyLevel CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofilelanguage #> function Update-MgUserProfileLanguage { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of languageProficiency ${LanguageProficiencyId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphLanguageProficiency] # languageProficiency # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # languageProficiencyLevel ${Proficiency}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # languageProficiencyLevel ${Reading}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # languageProficiencyLevel ${Spoken}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Tag}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # languageProficiencyLevel ${Written}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfileLanguage_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileLanguage_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfileLanguage_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileLanguage_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property names in users .Description Update the navigation property names in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonName .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphPersonName>: personName [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [DisplayName <String>]: [First <String>]: [Initials <String>]: [LanguageTag <String>]: [Last <String>]: [Maiden <String>]: [Middle <String>]: [Nickname <String>]: [Pronunciation <IMicrosoftGraphYomiPersonName>]: yomiPersonName [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: [First <String>]: [Last <String>]: [Maiden <String>]: [Middle <String>]: [Suffix <String>]: [Title <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity PRONUNCIATION <IMicrosoftGraphYomiPersonName>: yomiPersonName [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: [First <String>]: [Last <String>]: [Maiden <String>]: [Middle <String>]: SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofilename #> function Update-MgUserProfileName { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personName ${PersonNameId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonName] # personName # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${First}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Initials}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${LanguageTag}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Last}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Maiden}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Middle}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Nickname}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphYomiPersonName] # yomiPersonName # To construct, see NOTES section for PRONUNCIATION properties and create a hash table. ${Pronunciation}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Suffix}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Title}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfileName_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileName_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfileName_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileName_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property notes in users .Description Update the navigation property notes in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAnnotation .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphPersonAnnotation>: personAnnotation [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Detail <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [DisplayName <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity DETAIL <IMicrosoftGraphItemBody>: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofilenote #> function Update-MgUserProfileNote { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personAnnotation ${PersonAnnotationId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAnnotation] # personAnnotation # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemBody] # itemBody # To construct, see NOTES section for DETAIL properties and create a hash table. ${Detail}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfileNote_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileNote_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfileNote_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileNote_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property patents in users .Description Update the navigation property patents in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPatent .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphItemPatent>: itemPatent [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Description <String>]: [DisplayName <String>]: [IsPending <Boolean?>]: [IssuedDate <DateTime?>]: [IssuingAuthority <String>]: [Number <String>]: [WebUrl <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofilepatent #> function Update-MgUserProfilePatent { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of itemPatent ${ItemPatentId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPatent] # itemPatent # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Description}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${IsPending}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${IssuedDate}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${IssuingAuthority}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Number}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${WebUrl}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfilePatent_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfilePatent_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfilePatent_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfilePatent_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property phones in users .Description Update the navigation property phones in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPhone .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphItemPhone>: itemPhone [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [DisplayName <String>]: [Number <String>]: [Type <String>]: phoneType CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofilephone #> function Update-MgUserProfilePhone { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of itemPhone ${ItemPhoneId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPhone] # itemPhone # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Number}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # phoneType ${Type}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfilePhone_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfilePhone_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfilePhone_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfilePhone_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property positions in users .Description Update the navigation property positions in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWorkPosition .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphWorkPosition>: workPosition [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Categories <String[]>]: [Colleagues <IMicrosoftGraphRelatedPerson[]>]: [DisplayName <String>]: [Relationship <String>]: personRelationship [UserPrincipalName <String>]: [Detail <IMicrosoftGraphPositionDetail>]: positionDetail [(Any) <Object>]: This indicates any property can be added to this object. [Company <IMicrosoftGraphCompanyDetail>]: companyDetail [(Any) <Object>]: This indicates any property can be added to this object. [Address <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [Department <String>]: [DisplayName <String>]: [OfficeLocation <String>]: [Pronunciation <String>]: [WebUrl <String>]: [Description <String>]: [EndMonthYear <DateTime?>]: [JobTitle <String>]: [Role <String>]: [StartMonthYear <DateTime?>]: [Summary <String>]: [IsCurrent <Boolean?>]: [Manager <IMicrosoftGraphRelatedPerson>]: relatedPerson COLLEAGUES <IMicrosoftGraphRelatedPerson[]>: . [DisplayName <String>]: [Relationship <String>]: personRelationship [UserPrincipalName <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity DETAIL <IMicrosoftGraphPositionDetail>: positionDetail [(Any) <Object>]: This indicates any property can be added to this object. [Company <IMicrosoftGraphCompanyDetail>]: companyDetail [(Any) <Object>]: This indicates any property can be added to this object. [Address <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [Department <String>]: [DisplayName <String>]: [OfficeLocation <String>]: [Pronunciation <String>]: [WebUrl <String>]: [Description <String>]: [EndMonthYear <DateTime?>]: [JobTitle <String>]: [Role <String>]: [StartMonthYear <DateTime?>]: [Summary <String>]: INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity MANAGER <IMicrosoftGraphRelatedPerson>: relatedPerson [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: [Relationship <String>]: personRelationship [UserPrincipalName <String>]: SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofileposition #> function Update-MgUserProfilePosition { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of workPosition ${WorkPositionId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWorkPosition] # workPosition # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${Categories}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphRelatedPerson[]] # . # To construct, see NOTES section for COLLEAGUES properties and create a hash table. ${Colleagues}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPositionDetail] # positionDetail # To construct, see NOTES section for DETAIL properties and create a hash table. ${Detail}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${IsCurrent}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphRelatedPerson] # relatedPerson # To construct, see NOTES section for MANAGER properties and create a hash table. ${Manager}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfilePosition_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfilePosition_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfilePosition_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfilePosition_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property projects in users .Description Update the navigation property projects in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphProjectParticipation .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphProjectParticipation>: projectParticipation [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Categories <String[]>]: [Client <IMicrosoftGraphCompanyDetail>]: companyDetail [(Any) <Object>]: This indicates any property can be added to this object. [Address <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [Department <String>]: [DisplayName <String>]: [OfficeLocation <String>]: [Pronunciation <String>]: [WebUrl <String>]: [CollaborationTags <String[]>]: [Colleagues <IMicrosoftGraphRelatedPerson[]>]: [DisplayName <String>]: [Relationship <String>]: personRelationship [UserPrincipalName <String>]: [Detail <IMicrosoftGraphPositionDetail>]: positionDetail [(Any) <Object>]: This indicates any property can be added to this object. [Company <IMicrosoftGraphCompanyDetail>]: companyDetail [Description <String>]: [EndMonthYear <DateTime?>]: [JobTitle <String>]: [Role <String>]: [StartMonthYear <DateTime?>]: [Summary <String>]: [DisplayName <String>]: [Sponsors <IMicrosoftGraphRelatedPerson[]>]: CLIENT <IMicrosoftGraphCompanyDetail>: companyDetail [(Any) <Object>]: This indicates any property can be added to this object. [Address <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [Department <String>]: [DisplayName <String>]: [OfficeLocation <String>]: [Pronunciation <String>]: [WebUrl <String>]: COLLEAGUES <IMicrosoftGraphRelatedPerson[]>: . [DisplayName <String>]: [Relationship <String>]: personRelationship [UserPrincipalName <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity DETAIL <IMicrosoftGraphPositionDetail>: positionDetail [(Any) <Object>]: This indicates any property can be added to this object. [Company <IMicrosoftGraphCompanyDetail>]: companyDetail [(Any) <Object>]: This indicates any property can be added to this object. [Address <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [Department <String>]: [DisplayName <String>]: [OfficeLocation <String>]: [Pronunciation <String>]: [WebUrl <String>]: [Description <String>]: [EndMonthYear <DateTime?>]: [JobTitle <String>]: [Role <String>]: [StartMonthYear <DateTime?>]: [Summary <String>]: INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: SPONSORS <IMicrosoftGraphRelatedPerson[]>: . [DisplayName <String>]: [Relationship <String>]: personRelationship [UserPrincipalName <String>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofileproject #> function Update-MgUserProfileProject { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of projectParticipation ${ProjectParticipationId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphProjectParticipation] # projectParticipation # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${Categories}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphCompanyDetail] # companyDetail # To construct, see NOTES section for CLIENT properties and create a hash table. ${Client}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${CollaborationTags}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphRelatedPerson[]] # . # To construct, see NOTES section for COLLEAGUES properties and create a hash table. ${Colleagues}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPositionDetail] # positionDetail # To construct, see NOTES section for DETAIL properties and create a hash table. ${Detail}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphRelatedPerson[]] # . # To construct, see NOTES section for SPONSORS properties and create a hash table. ${Sponsors}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfileProject_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileProject_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfileProject_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileProject_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property publications in users .Description Update the navigation property publications in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPublication .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphItemPublication>: itemPublication [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Description <String>]: [DisplayName <String>]: [PublishedDate <DateTime?>]: [Publisher <String>]: [ThumbnailUrl <String>]: [WebUrl <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofilepublication #> function Update-MgUserProfilePublication { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of itemPublication ${ItemPublicationId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPublication] # itemPublication # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Description}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${PublishedDate}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Publisher}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${ThumbnailUrl}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${WebUrl}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfilePublication_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfilePublication_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfilePublication_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfilePublication_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property skills in users .Description Update the navigation property skills in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphSkillProficiency .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphSkillProficiency>: skillProficiency [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Categories <String[]>]: [CollaborationTags <String[]>]: [DisplayName <String>]: [Proficiency <String>]: skillProficiencyLevel [WebUrl <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofileskill #> function Update-MgUserProfileSkill { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of skillProficiency ${SkillProficiencyId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphSkillProficiency] # skillProficiency # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${Categories}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${CollaborationTags}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # skillProficiencyLevel ${Proficiency}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${WebUrl}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfileSkill_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileSkill_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfileSkill_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileSkill_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property webAccounts in users .Description Update the navigation property webAccounts in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWebAccount .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphWebAccount>: webAccount [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Description <String>]: [Service <IMicrosoftGraphServiceInformation>]: serviceInformation [(Any) <Object>]: This indicates any property can be added to this object. [Name <String>]: [WebUrl <String>]: [StatusMessage <String>]: [UserId <String>]: [WebUrl <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SERVICE <IMicrosoftGraphServiceInformation>: serviceInformation [(Any) <Object>]: This indicates any property can be added to this object. [Name <String>]: [WebUrl <String>]: SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofilewebaccount #> function Update-MgUserProfileWebAccount { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of webAccount ${WebAccountId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWebAccount] # webAccount # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Description}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphServiceInformation] # serviceInformation # To construct, see NOTES section for SERVICE properties and create a hash table. ${Service}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${StatusMessage}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${UserId1}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${WebUrl}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfileWebAccount_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileWebAccount_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfileWebAccount_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileWebAccount_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property websites in users .Description Update the navigation property websites in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonWebsite .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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 <IMicrosoftGraphPersonWebsite>: personWebsite [(Any) <Object>]: This indicates any property can be added to this object. [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Categories <String[]>]: [Description <String>]: [DisplayName <String>]: [WebUrl <String>]: CREATEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity INFERENCE <IMicrosoftGraphInferenceData>: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition LASTMODIFIEDBY <IMicrosoftGraphIdentitySet>: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity SOURCE <IMicrosoftGraphPersonDataSources>: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofilewebsite #> function Update-MgUserProfileWebsite { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of personWebsite ${PersonWebsiteId}, [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonWebsite] # personWebsite # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # allowedAudiences ${AllowedAudiences}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String[]] # . ${Categories}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for CREATEDBY properties and create a hash table. ${CreatedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${CreatedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${Description}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${DisplayName}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphInferenceData] # inferenceData # To construct, see NOTES section for INFERENCE properties and create a hash table. ${Inference}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphIdentitySet] # identitySet # To construct, see NOTES section for LASTMODIFIEDBY properties and create a hash table. ${LastModifiedBy}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.DateTime] # . ${LastModifiedDateTime}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonDataSources] # personDataSources # To construct, see NOTES section for SOURCE properties and create a hash table. ${Source}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # . ${WebUrl}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfileWebsite_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileWebsite_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfileWebsite_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfileWebsite_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # Copyright Microsoft Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ---------------------------------------------------------------------------------- <# .Synopsis Update the navigation property profile in users .Description Update the navigation property profile in users .Example PS C:\> {{ Add code here }} {{ Add output here }} .Example PS C:\> {{ Add code here }} {{ Add output here }} .Inputs Microsoft.Graph.PowerShell.Models.IMicrosoftGraphProfile .Inputs Microsoft.Graph.PowerShell.Models.IPeopleIdentity .Outputs System.Boolean .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. ACCOUNT <IMicrosoftGraphUserAccountInformation[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [AgeGroup <String>]: [CountryCode <String>]: [PreferredLanguageTag <IMicrosoftGraphLocaleInfo>]: localeInfo [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: A name representing the user's locale in natural language, for example, 'English (United States)'. [Locale <String>]: A locale representation for the user, which includes the user's preferred language and country/region. For example, 'en-us'. The language component follows 2-letter codes as defined in ISO 639-1, and the country component follows 2-letter codes as defined in ISO 3166-1 alpha-2. [UserPrincipalName <String>]: ADDRESSES <IMicrosoftGraphItemAddress[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Detail <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [DisplayName <String>]: [GeoCoordinates <IMicrosoftGraphGeoCoordinates>]: geoCoordinates [(Any) <Object>]: This indicates any property can be added to this object. [Altitude <Double?>]: Optional. The altitude (height), in feet, above sea level for the item. Read-only. [Latitude <Double?>]: Optional. The latitude, in decimal, for the item. Read-only. [Longitude <Double?>]: Optional. The longitude, in decimal, for the item. Read-only. ANNIVERSARIES <IMicrosoftGraphPersonAnniversary[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Date <DateTime?>]: [Type <String>]: anniversaryType AWARDS <IMicrosoftGraphPersonAward[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Description <String>]: [DisplayName <String>]: [IssuedDate <DateTime?>]: [IssuingAuthority <String>]: [ThumbnailUrl <String>]: [WebUrl <String>]: BODYPARAMETER <IMicrosoftGraphProfile>: profile [(Any) <Object>]: This indicates any property can be added to this object. [Id <String>]: Read-only. [Account <IMicrosoftGraphUserAccountInformation[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [AgeGroup <String>]: [CountryCode <String>]: [PreferredLanguageTag <IMicrosoftGraphLocaleInfo>]: localeInfo [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: A name representing the user's locale in natural language, for example, 'English (United States)'. [Locale <String>]: A locale representation for the user, which includes the user's preferred language and country/region. For example, 'en-us'. The language component follows 2-letter codes as defined in ISO 639-1, and the country component follows 2-letter codes as defined in ISO 3166-1 alpha-2. [UserPrincipalName <String>]: [Addresses <IMicrosoftGraphItemAddress[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [Id <String>]: Read-only. [Detail <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [DisplayName <String>]: [GeoCoordinates <IMicrosoftGraphGeoCoordinates>]: geoCoordinates [(Any) <Object>]: This indicates any property can be added to this object. [Altitude <Double?>]: Optional. The altitude (height), in feet, above sea level for the item. Read-only. [Latitude <Double?>]: Optional. The latitude, in decimal, for the item. Read-only. [Longitude <Double?>]: Optional. The longitude, in decimal, for the item. Read-only. [Anniversaries <IMicrosoftGraphPersonAnniversary[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [Id <String>]: Read-only. [Date <DateTime?>]: [Type <String>]: anniversaryType [Awards <IMicrosoftGraphPersonAward[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [Id <String>]: Read-only. [Description <String>]: [DisplayName <String>]: [IssuedDate <DateTime?>]: [IssuingAuthority <String>]: [ThumbnailUrl <String>]: [WebUrl <String>]: [Certifications <IMicrosoftGraphPersonCertification[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [Id <String>]: Read-only. [CertificationId <String>]: [Description <String>]: [DisplayName <String>]: [EndDate <DateTime?>]: [IssuedDate <DateTime?>]: [IssuingAuthority <String>]: [IssuingCompany <String>]: [StartDate <DateTime?>]: [ThumbnailUrl <String>]: [WebUrl <String>]: [EducationalActivities <IMicrosoftGraphEducationalActivity[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [Id <String>]: Read-only. [CompletionMonthYear <DateTime?>]: [EndMonthYear <DateTime?>]: [Institution <IMicrosoftGraphInstitutionData>]: institutionData [(Any) <Object>]: This indicates any property can be added to this object. [Description <String>]: [DisplayName <String>]: [Location <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [WebUrl <String>]: [Program <IMicrosoftGraphEducationalActivityDetail>]: educationalActivityDetail [(Any) <Object>]: This indicates any property can be added to this object. [Abbreviation <String>]: [Activities <String[]>]: [Awards <String[]>]: [Description <String>]: [DisplayName <String>]: [FieldsOfStudy <String[]>]: [Grade <String>]: [Notes <String>]: [WebUrl <String>]: [StartMonthYear <DateTime?>]: [Emails <IMicrosoftGraphItemEmail[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [Id <String>]: Read-only. [Address <String>]: [DisplayName <String>]: [Type <String>]: emailType [Interests <IMicrosoftGraphPersonInterest[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [Id <String>]: Read-only. [Categories <String[]>]: [CollaborationTags <String[]>]: [Description <String>]: [DisplayName <String>]: [WebUrl <String>]: [Languages <IMicrosoftGraphLanguageProficiency[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [Id <String>]: Read-only. [DisplayName <String>]: [Proficiency <String>]: languageProficiencyLevel [Reading <String>]: languageProficiencyLevel [Spoken <String>]: languageProficiencyLevel [Tag <String>]: [Written <String>]: languageProficiencyLevel [Names <IMicrosoftGraphPersonName[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [Id <String>]: Read-only. [DisplayName <String>]: [First <String>]: [Initials <String>]: [LanguageTag <String>]: [Last <String>]: [Maiden <String>]: [Middle <String>]: [Nickname <String>]: [Pronunciation <IMicrosoftGraphYomiPersonName>]: yomiPersonName [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: [First <String>]: [Last <String>]: [Maiden <String>]: [Middle <String>]: [Suffix <String>]: [Title <String>]: [Notes <IMicrosoftGraphPersonAnnotation[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [Id <String>]: Read-only. [Detail <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [DisplayName <String>]: [Patents <IMicrosoftGraphItemPatent[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [Id <String>]: Read-only. [Description <String>]: [DisplayName <String>]: [IsPending <Boolean?>]: [IssuedDate <DateTime?>]: [IssuingAuthority <String>]: [Number <String>]: [WebUrl <String>]: [Phones <IMicrosoftGraphItemPhone[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [Id <String>]: Read-only. [DisplayName <String>]: [Number <String>]: [Type <String>]: phoneType [Positions <IMicrosoftGraphWorkPosition[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [Id <String>]: Read-only. [Categories <String[]>]: [Colleagues <IMicrosoftGraphRelatedPerson[]>]: [DisplayName <String>]: [Relationship <String>]: personRelationship [UserPrincipalName <String>]: [Detail <IMicrosoftGraphPositionDetail>]: positionDetail [(Any) <Object>]: This indicates any property can be added to this object. [Company <IMicrosoftGraphCompanyDetail>]: companyDetail [(Any) <Object>]: This indicates any property can be added to this object. [Address <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [Department <String>]: [DisplayName <String>]: [OfficeLocation <String>]: [Pronunciation <String>]: [WebUrl <String>]: [Description <String>]: [EndMonthYear <DateTime?>]: [JobTitle <String>]: [Role <String>]: [StartMonthYear <DateTime?>]: [Summary <String>]: [IsCurrent <Boolean?>]: [Manager <IMicrosoftGraphRelatedPerson>]: relatedPerson [Projects <IMicrosoftGraphProjectParticipation[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [Id <String>]: Read-only. [Categories <String[]>]: [Client <IMicrosoftGraphCompanyDetail>]: companyDetail [CollaborationTags <String[]>]: [Colleagues <IMicrosoftGraphRelatedPerson[]>]: [Detail <IMicrosoftGraphPositionDetail>]: positionDetail [DisplayName <String>]: [Sponsors <IMicrosoftGraphRelatedPerson[]>]: [Publications <IMicrosoftGraphItemPublication[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [Id <String>]: Read-only. [Description <String>]: [DisplayName <String>]: [PublishedDate <DateTime?>]: [Publisher <String>]: [ThumbnailUrl <String>]: [WebUrl <String>]: [Skills <IMicrosoftGraphSkillProficiency[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [Id <String>]: Read-only. [Categories <String[]>]: [CollaborationTags <String[]>]: [DisplayName <String>]: [Proficiency <String>]: skillProficiencyLevel [WebUrl <String>]: [WebAccounts <IMicrosoftGraphWebAccount[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [Id <String>]: Read-only. [Description <String>]: [Service <IMicrosoftGraphServiceInformation>]: serviceInformation [(Any) <Object>]: This indicates any property can be added to this object. [Name <String>]: [WebUrl <String>]: [StatusMessage <String>]: [UserId <String>]: [WebUrl <String>]: [Websites <IMicrosoftGraphPersonWebsite[]>]: [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [Id <String>]: Read-only. [Categories <String[]>]: [Description <String>]: [DisplayName <String>]: [WebUrl <String>]: CERTIFICATIONS <IMicrosoftGraphPersonCertification[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [CertificationId <String>]: [Description <String>]: [DisplayName <String>]: [EndDate <DateTime?>]: [IssuedDate <DateTime?>]: [IssuingAuthority <String>]: [IssuingCompany <String>]: [StartDate <DateTime?>]: [ThumbnailUrl <String>]: [WebUrl <String>]: EDUCATIONALACTIVITIES <IMicrosoftGraphEducationalActivity[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [CompletionMonthYear <DateTime?>]: [EndMonthYear <DateTime?>]: [Institution <IMicrosoftGraphInstitutionData>]: institutionData [(Any) <Object>]: This indicates any property can be added to this object. [Description <String>]: [DisplayName <String>]: [Location <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [WebUrl <String>]: [Program <IMicrosoftGraphEducationalActivityDetail>]: educationalActivityDetail [(Any) <Object>]: This indicates any property can be added to this object. [Abbreviation <String>]: [Activities <String[]>]: [Awards <String[]>]: [Description <String>]: [DisplayName <String>]: [FieldsOfStudy <String[]>]: [Grade <String>]: [Notes <String>]: [WebUrl <String>]: [StartMonthYear <DateTime?>]: EMAILS <IMicrosoftGraphItemEmail[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Address <String>]: [DisplayName <String>]: [Type <String>]: emailType INPUTOBJECT <IPeopleIdentity>: Identity Parameter [ActivityStatisticsId <String>]: key: id of activityStatistics [EducationalActivityId <String>]: key: id of educationalActivity [ItemAddressId <String>]: key: id of itemAddress [ItemEmailId <String>]: key: id of itemEmail [ItemPatentId <String>]: key: id of itemPatent [ItemPhoneId <String>]: key: id of itemPhone [ItemPublicationId <String>]: key: id of itemPublication [LanguageProficiencyId <String>]: key: id of languageProficiency [PersonAnniversaryId <String>]: key: id of personAnniversary [PersonAnnotationId <String>]: key: id of personAnnotation [PersonAwardId <String>]: key: id of personAward [PersonCertificationId <String>]: key: id of personCertification [PersonId <String>]: key: id of person [PersonInterestId <String>]: key: id of personInterest [PersonNameId <String>]: key: id of personName [PersonWebsiteId <String>]: key: id of personWebsite [ProjectParticipationId <String>]: key: id of projectParticipation [SharedInsightId <String>]: key: id of sharedInsight [SkillProficiencyId <String>]: key: id of skillProficiency [TrendingId <String>]: key: id of trending [UsedInsightId <String>]: key: id of usedInsight [UserAccountInformationId <String>]: key: id of userAccountInformation [UserId <String>]: key: id of user [WebAccountId <String>]: key: id of webAccount [WorkPositionId <String>]: key: id of workPosition INTERESTS <IMicrosoftGraphPersonInterest[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Categories <String[]>]: [CollaborationTags <String[]>]: [Description <String>]: [DisplayName <String>]: [WebUrl <String>]: LANGUAGES <IMicrosoftGraphLanguageProficiency[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [DisplayName <String>]: [Proficiency <String>]: languageProficiencyLevel [Reading <String>]: languageProficiencyLevel [Spoken <String>]: languageProficiencyLevel [Tag <String>]: [Written <String>]: languageProficiencyLevel NAMES <IMicrosoftGraphPersonName[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [DisplayName <String>]: [First <String>]: [Initials <String>]: [LanguageTag <String>]: [Last <String>]: [Maiden <String>]: [Middle <String>]: [Nickname <String>]: [Pronunciation <IMicrosoftGraphYomiPersonName>]: yomiPersonName [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: [First <String>]: [Last <String>]: [Maiden <String>]: [Middle <String>]: [Suffix <String>]: [Title <String>]: NOTES <IMicrosoftGraphPersonAnnotation[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Detail <IMicrosoftGraphItemBody>]: itemBody [(Any) <Object>]: This indicates any property can be added to this object. [Content <String>]: The content of the item. [ContentType <String>]: bodyType [DisplayName <String>]: PATENTS <IMicrosoftGraphItemPatent[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Description <String>]: [DisplayName <String>]: [IsPending <Boolean?>]: [IssuedDate <DateTime?>]: [IssuingAuthority <String>]: [Number <String>]: [WebUrl <String>]: PHONES <IMicrosoftGraphItemPhone[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [DisplayName <String>]: [Number <String>]: [Type <String>]: phoneType POSITIONS <IMicrosoftGraphWorkPosition[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Categories <String[]>]: [Colleagues <IMicrosoftGraphRelatedPerson[]>]: [DisplayName <String>]: [Relationship <String>]: personRelationship [UserPrincipalName <String>]: [Detail <IMicrosoftGraphPositionDetail>]: positionDetail [(Any) <Object>]: This indicates any property can be added to this object. [Company <IMicrosoftGraphCompanyDetail>]: companyDetail [(Any) <Object>]: This indicates any property can be added to this object. [Address <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [Department <String>]: [DisplayName <String>]: [OfficeLocation <String>]: [Pronunciation <String>]: [WebUrl <String>]: [Description <String>]: [EndMonthYear <DateTime?>]: [JobTitle <String>]: [Role <String>]: [StartMonthYear <DateTime?>]: [Summary <String>]: [IsCurrent <Boolean?>]: [Manager <IMicrosoftGraphRelatedPerson>]: relatedPerson PROJECTS <IMicrosoftGraphProjectParticipation[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Categories <String[]>]: [Client <IMicrosoftGraphCompanyDetail>]: companyDetail [(Any) <Object>]: This indicates any property can be added to this object. [Address <IMicrosoftGraphPhysicalAddress1>]: physicalAddress [(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'. [PostOfficeBox <String>]: [PostalCode <String>]: The postal code. [State <String>]: The state. [Street <String>]: The street. [Type <String>]: physicalAddressType [Department <String>]: [DisplayName <String>]: [OfficeLocation <String>]: [Pronunciation <String>]: [WebUrl <String>]: [CollaborationTags <String[]>]: [Colleagues <IMicrosoftGraphRelatedPerson[]>]: [DisplayName <String>]: [Relationship <String>]: personRelationship [UserPrincipalName <String>]: [Detail <IMicrosoftGraphPositionDetail>]: positionDetail [(Any) <Object>]: This indicates any property can be added to this object. [Company <IMicrosoftGraphCompanyDetail>]: companyDetail [Description <String>]: [EndMonthYear <DateTime?>]: [JobTitle <String>]: [Role <String>]: [StartMonthYear <DateTime?>]: [Summary <String>]: [DisplayName <String>]: [Sponsors <IMicrosoftGraphRelatedPerson[]>]: PUBLICATIONS <IMicrosoftGraphItemPublication[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Description <String>]: [DisplayName <String>]: [PublishedDate <DateTime?>]: [Publisher <String>]: [ThumbnailUrl <String>]: [WebUrl <String>]: SKILLS <IMicrosoftGraphSkillProficiency[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Categories <String[]>]: [CollaborationTags <String[]>]: [DisplayName <String>]: [Proficiency <String>]: skillProficiencyLevel [WebUrl <String>]: WEBACCOUNTS <IMicrosoftGraphWebAccount[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Description <String>]: [Service <IMicrosoftGraphServiceInformation>]: serviceInformation [(Any) <Object>]: This indicates any property can be added to this object. [Name <String>]: [WebUrl <String>]: [StatusMessage <String>]: [UserId <String>]: [WebUrl <String>]: WEBSITES <IMicrosoftGraphPersonWebsite[]>: . [AllowedAudiences <String>]: allowedAudiences [CreatedBy <IMicrosoftGraphIdentitySet>]: identitySet [(Any) <Object>]: This indicates any property can be added to this object. [Application <IMicrosoftGraphIdentity>]: identity [(Any) <Object>]: This indicates any property can be added to this object. [DisplayName <String>]: The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. [Id <String>]: Unique identifier for the identity. [Device <IMicrosoftGraphIdentity>]: identity [User <IMicrosoftGraphIdentity>]: identity [CreatedDateTime <DateTime?>]: [Inference <IMicrosoftGraphInferenceData>]: inferenceData [(Any) <Object>]: This indicates any property can be added to this object. [ConfidenceScore <Double?>]: [UserHasVerifiedAccuracy <Boolean?>]: [LastModifiedBy <IMicrosoftGraphIdentitySet>]: identitySet [LastModifiedDateTime <DateTime?>]: [Source <IMicrosoftGraphPersonDataSources>]: personDataSources [(Any) <Object>]: This indicates any property can be added to this object. [Type <String[]>]: [Id <String>]: Read-only. [Categories <String[]>]: [Description <String>]: [DisplayName <String>]: [WebUrl <String>]: .Link https://docs.microsoft.com/en-us/powershell/module/microsoft.graph.people/update-mguserprofile #> function Update-MgUserProfile { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Graph.PowerShell.Profile('v1.0-beta')] param( [Parameter(ParameterSetName='Update', Mandatory)] [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Graph.PowerShell.Category('Path')] [System.String] # key: id of user ${UserId}, [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Path')] [Microsoft.Graph.PowerShell.Models.IPeopleIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='UpdateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphProfile] # profile # To construct, see NOTES section for BODYPARAMETER properties and create a hash table. ${BodyParameter}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphUserAccountInformation[]] # . # To construct, see NOTES section for ACCOUNT properties and create a hash table. ${Account}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.Collections.Hashtable] # Additional Parameters ${AdditionalProperties}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemAddress[]] # . # To construct, see NOTES section for ADDRESSES properties and create a hash table. ${Addresses}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAnniversary[]] # . # To construct, see NOTES section for ANNIVERSARIES properties and create a hash table. ${Anniversaries}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAward[]] # . # To construct, see NOTES section for AWARDS properties and create a hash table. ${Awards}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonCertification[]] # . # To construct, see NOTES section for CERTIFICATIONS properties and create a hash table. ${Certifications}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphEducationalActivity[]] # . # To construct, see NOTES section for EDUCATIONALACTIVITIES properties and create a hash table. ${EducationalActivities}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemEmail[]] # . # To construct, see NOTES section for EMAILS properties and create a hash table. ${Emails}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [System.String] # Read-only. ${Id}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonInterest[]] # . # To construct, see NOTES section for INTERESTS properties and create a hash table. ${Interests}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphLanguageProficiency[]] # . # To construct, see NOTES section for LANGUAGES properties and create a hash table. ${Languages}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonName[]] # . # To construct, see NOTES section for NAMES properties and create a hash table. ${Names}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonAnnotation[]] # . # To construct, see NOTES section for NOTES properties and create a hash table. ${Notes}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPatent[]] # . # To construct, see NOTES section for PATENTS properties and create a hash table. ${Patents}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPhone[]] # . # To construct, see NOTES section for PHONES properties and create a hash table. ${Phones}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWorkPosition[]] # . # To construct, see NOTES section for POSITIONS properties and create a hash table. ${Positions}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphProjectParticipation[]] # . # To construct, see NOTES section for PROJECTS properties and create a hash table. ${Projects}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphItemPublication[]] # . # To construct, see NOTES section for PUBLICATIONS properties and create a hash table. ${Publications}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphSkillProficiency[]] # . # To construct, see NOTES section for SKILLS properties and create a hash table. ${Skills}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphWebAccount[]] # . # To construct, see NOTES section for WEBACCOUNTS properties and create a hash table. ${WebAccounts}, [Parameter(ParameterSetName='UpdateExpanded')] [Parameter(ParameterSetName='UpdateViaIdentityExpanded')] [Microsoft.Graph.PowerShell.Category('Body')] [Microsoft.Graph.PowerShell.Models.IMicrosoftGraphPersonWebsite[]] # . # To construct, see NOTES section for WEBSITES properties and create a hash table. ${Websites}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [Microsoft.Graph.PowerShell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Graph.PowerShell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Update = 'Microsoft.Graph.People.private\Update-MgUserProfile_Update'; UpdateExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfile_UpdateExpanded'; UpdateViaIdentity = 'Microsoft.Graph.People.private\Update-MgUserProfile_UpdateViaIdentity'; UpdateViaIdentityExpanded = 'Microsoft.Graph.People.private\Update-MgUserProfile_UpdateViaIdentityExpanded'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # SIG # Begin signature block # MIIjkwYJKoZIhvcNAQcCoIIjhDCCI4ACAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDFgh8vY7CCvANO # XEJKJcfmvYaFcgLs6ZsO3rUfo0tluKCCDYUwggYDMIID66ADAgECAhMzAAABiK9S # 1rmSbej5AAAAAAGIMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD # VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p # bmcgUENBIDIwMTEwHhcNMjAwMzA0MTgzOTQ4WhcNMjEwMzAzMTgzOTQ4WjB0MQsw # CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u # ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy # b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB # AQCSCNryE+Cewy2m4t/a74wZ7C9YTwv1PyC4BvM/kSWPNs8n0RTe+FvYfU+E9uf0 # t7nYlAzHjK+plif2BhD+NgdhIUQ8sVwWO39tjvQRHjP2//vSvIfmmkRoML1Ihnjs # 9kQiZQzYRDYYRp9xSQYmRwQjk5hl8/U7RgOiQDitVHaU7BT1MI92lfZRuIIDDYBd # vXtbclYJMVOwqZtv0O9zQCret6R+fRSGaDNfEEpcILL+D7RV3M4uaJE4Ta6KAOdv # V+MVaJp1YXFTZPKtpjHO6d9pHQPZiG7NdC6QbnRGmsa48uNQrb6AfmLKDI1Lp31W # MogTaX5tZf+CZT9PSuvjOCLNAgMBAAGjggGCMIIBfjAfBgNVHSUEGDAWBgorBgEE # AYI3TAgBBggrBgEFBQcDAzAdBgNVHQ4EFgQUj9RJL9zNrPcL10RZdMQIXZN7MG8w # VAYDVR0RBE0wS6RJMEcxLTArBgNVBAsTJE1pY3Jvc29mdCBJcmVsYW5kIE9wZXJh # dGlvbnMgTGltaXRlZDEWMBQGA1UEBRMNMjMwMDEyKzQ1ODM4NjAfBgNVHSMEGDAW # gBRIbmTlUAXTgqoXNzcitW2oynUClTBUBgNVHR8ETTBLMEmgR6BFhkNodHRwOi8v # d3d3Lm1pY3Jvc29mdC5jb20vcGtpb3BzL2NybC9NaWNDb2RTaWdQQ0EyMDExXzIw # MTEtMDctMDguY3JsMGEGCCsGAQUFBwEBBFUwUzBRBggrBgEFBQcwAoZFaHR0cDov # L3d3dy5taWNyb3NvZnQuY29tL3BraW9wcy9jZXJ0cy9NaWNDb2RTaWdQQ0EyMDEx # XzIwMTEtMDctMDguY3J0MAwGA1UdEwEB/wQCMAAwDQYJKoZIhvcNAQELBQADggIB # ACnXo8hjp7FeT+H6iQlV3CcGnkSbFvIpKYafgzYCFo3UHY1VHYJVb5jHEO8oG26Q # qBELmak6MTI+ra3WKMTGhE1sEIlowTcp4IAs8a5wpCh6Vf4Z/bAtIppP3p3gXk2X # 8UXTc+WxjQYsDkFiSzo/OBa5hkdW1g4EpO43l9mjToBdqEPtIXsZ7Hi1/6y4gK0P # mMiwG8LMpSn0n/oSHGjrUNBgHJPxgs63Slf58QGBznuXiRaXmfTUDdrvhRocdxIM # i8nXQwWACMiQzJSRzBP5S2wUq7nMAqjaTbeXhJqD2SFVHdUYlKruvtPSwbnqSRWT # GI8s4FEXt+TL3w5JnwVZmZkUFoioQDMMjFyaKurdJ6pnzbr1h6QW0R97fWc8xEIz # LIOiU2rjwWAtlQqFO8KNiykjYGyEf5LyAJKAO+rJd9fsYR+VBauIEQoYmjnUbTXM # SY2Lf5KMluWlDOGVh8q6XjmBccpaT+8tCfxpaVYPi1ncnwTwaPQvVq8RjWDRB7Pa # 8ruHgj2HJFi69+hcq7mWx5nTUtzzFa7RSZfE5a1a5AuBmGNRr7f8cNfa01+tiWjV # Kk1a+gJUBSP0sIxecFbVSXTZ7bqeal45XSDIisZBkWb+83TbXdTGMDSUFKTAdtC+ # r35GfsN8QVy59Hb5ZYzAXczhgRmk7NyE6jD0Ym5TKiW5MIIHejCCBWKgAwIBAgIK # YQ6Q0gAAAAAAAzANBgkqhkiG9w0BAQsFADCBiDELMAkGA1UEBhMCVVMxEzARBgNV # BAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jv # c29mdCBDb3Jwb3JhdGlvbjEyMDAGA1UEAxMpTWljcm9zb2Z0IFJvb3QgQ2VydGlm # aWNhdGUgQXV0aG9yaXR5IDIwMTEwHhcNMTEwNzA4MjA1OTA5WhcNMjYwNzA4MjEw # OTA5WjB+MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UE # BxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSgwJgYD # VQQDEx9NaWNyb3NvZnQgQ29kZSBTaWduaW5nIFBDQSAyMDExMIICIjANBgkqhkiG # 9w0BAQEFAAOCAg8AMIICCgKCAgEAq/D6chAcLq3YbqqCEE00uvK2WCGfQhsqa+la # UKq4BjgaBEm6f8MMHt03a8YS2AvwOMKZBrDIOdUBFDFC04kNeWSHfpRgJGyvnkmc # 6Whe0t+bU7IKLMOv2akrrnoJr9eWWcpgGgXpZnboMlImEi/nqwhQz7NEt13YxC4D # dato88tt8zpcoRb0RrrgOGSsbmQ1eKagYw8t00CT+OPeBw3VXHmlSSnnDb6gE3e+ # lD3v++MrWhAfTVYoonpy4BI6t0le2O3tQ5GD2Xuye4Yb2T6xjF3oiU+EGvKhL1nk # kDstrjNYxbc+/jLTswM9sbKvkjh+0p2ALPVOVpEhNSXDOW5kf1O6nA+tGSOEy/S6 # A4aN91/w0FK/jJSHvMAhdCVfGCi2zCcoOCWYOUo2z3yxkq4cI6epZuxhH2rhKEmd # X4jiJV3TIUs+UsS1Vz8kA/DRelsv1SPjcF0PUUZ3s/gA4bysAoJf28AVs70b1FVL # 5zmhD+kjSbwYuER8ReTBw3J64HLnJN+/RpnF78IcV9uDjexNSTCnq47f7Fufr/zd # sGbiwZeBe+3W7UvnSSmnEyimp31ngOaKYnhfsi+E11ecXL93KCjx7W3DKI8sj0A3 # T8HhhUSJxAlMxdSlQy90lfdu+HggWCwTXWCVmj5PM4TasIgX3p5O9JawvEagbJjS # 4NaIjAsCAwEAAaOCAe0wggHpMBAGCSsGAQQBgjcVAQQDAgEAMB0GA1UdDgQWBBRI # bmTlUAXTgqoXNzcitW2oynUClTAZBgkrBgEEAYI3FAIEDB4KAFMAdQBiAEMAQTAL # BgNVHQ8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAfBgNVHSMEGDAWgBRyLToCMZBD # uRQFTuHqp8cx0SOJNDBaBgNVHR8EUzBRME+gTaBLhklodHRwOi8vY3JsLm1pY3Jv # c29mdC5jb20vcGtpL2NybC9wcm9kdWN0cy9NaWNSb29DZXJBdXQyMDExXzIwMTFf # MDNfMjIuY3JsMF4GCCsGAQUFBwEBBFIwUDBOBggrBgEFBQcwAoZCaHR0cDovL3d3 # dy5taWNyb3NvZnQuY29tL3BraS9jZXJ0cy9NaWNSb29DZXJBdXQyMDExXzIwMTFf # MDNfMjIuY3J0MIGfBgNVHSAEgZcwgZQwgZEGCSsGAQQBgjcuAzCBgzA/BggrBgEF # BQcCARYzaHR0cDovL3d3dy5taWNyb3NvZnQuY29tL3BraW9wcy9kb2NzL3ByaW1h # cnljcHMuaHRtMEAGCCsGAQUFBwICMDQeMiAdAEwAZQBnAGEAbABfAHAAbwBsAGkA # YwB5AF8AcwB0AGEAdABlAG0AZQBuAHQALiAdMA0GCSqGSIb3DQEBCwUAA4ICAQBn # 8oalmOBUeRou09h0ZyKbC5YR4WOSmUKWfdJ5DJDBZV8uLD74w3LRbYP+vj/oCso7 # v0epo/Np22O/IjWll11lhJB9i0ZQVdgMknzSGksc8zxCi1LQsP1r4z4HLimb5j0b # pdS1HXeUOeLpZMlEPXh6I/MTfaaQdION9MsmAkYqwooQu6SpBQyb7Wj6aC6VoCo/ # KmtYSWMfCWluWpiW5IP0wI/zRive/DvQvTXvbiWu5a8n7dDd8w6vmSiXmE0OPQvy # CInWH8MyGOLwxS3OW560STkKxgrCxq2u5bLZ2xWIUUVYODJxJxp/sfQn+N4sOiBp # mLJZiWhub6e3dMNABQamASooPoI/E01mC8CzTfXhj38cbxV9Rad25UAqZaPDXVJi # hsMdYzaXht/a8/jyFqGaJ+HNpZfQ7l1jQeNbB5yHPgZ3BtEGsXUfFL5hYbXw3MYb # BL7fQccOKO7eZS/sl/ahXJbYANahRr1Z85elCUtIEJmAH9AAKcWxm6U/RXceNcbS # oqKfenoi+kiVH6v7RyOA9Z74v2u3S5fi63V4GuzqN5l5GEv/1rMjaHXmr/r8i+sL # gOppO6/8MO0ETI7f33VtY5E90Z1WTk+/gFcioXgRMiF670EKsT/7qMykXcGhiJtX # cVZOSEXAQsmbdlsKgEhr/Xmfwb1tbWrJUnMTDXpQzTGCFWQwghVgAgEBMIGVMH4x # CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRt # b25kMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01p # Y3Jvc29mdCBDb2RlIFNpZ25pbmcgUENBIDIwMTECEzMAAAGIr1LWuZJt6PkAAAAA # AYgwDQYJYIZIAWUDBAIBBQCgga4wGQYJKoZIhvcNAQkDMQwGCisGAQQBgjcCAQQw # HAYKKwYBBAGCNwIBCzEOMAwGCisGAQQBgjcCARUwLwYJKoZIhvcNAQkEMSIEINZ+ # MKKYJkd/ZlnAFKfbU0Yr1HAs/709K45EprxSxegQMEIGCisGAQQBgjcCAQwxNDAy # oBSAEgBNAGkAYwByAG8AcwBvAGYAdKEagBhodHRwOi8vd3d3Lm1pY3Jvc29mdC5j # b20wDQYJKoZIhvcNAQEBBQAEggEAYrjf9Q4A+fdoqe9fSgeDq/pT1RzXMsjyAsjH # WALdI3O8POkOXf2U6s8G6vm6YkHap9Yg7WrLbTi1AD71D9pIKAV8fvb5An4WOhuR # s6ai1gAhjA738LhUxYOSv1pIPUsYs/VhcpKAckVpZIE6CjzMZOXjVKYwUJ1sFC0Y # sfLu2Hr2dllGIHI4t51PrhzKCqtcufn+Ndmco+kEXd54dJVN+WJLx24BpuzVqkJz # BFemSWNAlf0mlJL920eQqzCzLKOe+gQ81CC7X+RtMU69pZG9MCem1pSGZmrMMpQ6 # 4VJ6nzHgY8RdeCWJCoL23gJFwFcUKFq6INrsh/Q6tlzaon4ta6GCEu4wghLqBgor # BgEEAYI3AwMBMYIS2jCCEtYGCSqGSIb3DQEHAqCCEscwghLDAgEDMQ8wDQYJYIZI # AWUDBAIBBQAwggFVBgsqhkiG9w0BCRABBKCCAUQEggFAMIIBPAIBAQYKKwYBBAGE # WQoDATAxMA0GCWCGSAFlAwQCAQUABCDsHChSV19MgK0RH0dYAcQ9Pq0UouduKCe+ # Eq4F3fTTEgIGYBAHwWzcGBMyMDIxMDEyODIwMjIwNS4yNzJaMASAAgH0oIHUpIHR # MIHOMQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMH # UmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSkwJwYDVQQL # EyBNaWNyb3NvZnQgT3BlcmF0aW9ucyBQdWVydG8gUmljbzEmMCQGA1UECxMdVGhh # bGVzIFRTUyBFU046Nzg4MC1FMzkwLTgwMTQxJTAjBgNVBAMTHE1pY3Jvc29mdCBU # aW1lLVN0YW1wIFNlcnZpY2Wggg5BMIIE9TCCA92gAwIBAgITMwAAASigDoHhNtVP # wgAAAAABKDANBgkqhkiG9w0BAQsFADB8MQswCQYDVQQGEwJVUzETMBEGA1UECBMK # V2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0 # IENvcnBvcmF0aW9uMSYwJAYDVQQDEx1NaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0Eg # MjAxMDAeFw0xOTEyMTkwMTE1MDBaFw0yMTAzMTcwMTE1MDBaMIHOMQswCQYDVQQG # EwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwG # A1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSkwJwYDVQQLEyBNaWNyb3NvZnQg # T3BlcmF0aW9ucyBQdWVydG8gUmljbzEmMCQGA1UECxMdVGhhbGVzIFRTUyBFU046 # Nzg4MC1FMzkwLTgwMTQxJTAjBgNVBAMTHE1pY3Jvc29mdCBUaW1lLVN0YW1wIFNl # cnZpY2UwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCdkbHW91Tbhj7N # vw4KXPYLe+yxtCT5A+FVk5RCS5Ks50yZfkaGX4jsDeolnz7uJP5I/J8GO6by7NTr # AcuPeMrrIOKxy8BzVCT7cNU3OeDDi4HXKLAODcZIu93w8qlsA7YznZOh+5DXMwT6 # gAw+gffKLe+/8EgAgSSMZvagFLnarkuX3MwhdPvmllGrw7uOlN3L+hxIyHVdmXSU # 1CoOFlCHU2DEFyNPNvqkrOOVgWY3CvfP7SH8fLqvKvJLFhffs1IxkxYjGih4Z+3E # gqBI+xNbVZltPCEqUuu/FhT9vgNDkMGlnCSjQAivifi2uy89mxrqQonThs+Vw3sH # NZQ/Zyz3AgMBAAGjggEbMIIBFzAdBgNVHQ4EFgQUhOLyg/F+tTeb1AHDTnR/UATL # pvIwHwYDVR0jBBgwFoAU1WM6XIoxkPNDe3xGG8UzaFqFbVUwVgYDVR0fBE8wTTBL # oEmgR4ZFaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraS9jcmwvcHJvZHVjdHMv # TWljVGltU3RhUENBXzIwMTAtMDctMDEuY3JsMFoGCCsGAQUFBwEBBE4wTDBKBggr # BgEFBQcwAoY+aHR0cDovL3d3dy5taWNyb3NvZnQuY29tL3BraS9jZXJ0cy9NaWNU # aW1TdGFQQ0FfMjAxMC0wNy0wMS5jcnQwDAYDVR0TAQH/BAIwADATBgNVHSUEDDAK # BggrBgEFBQcDCDANBgkqhkiG9w0BAQsFAAOCAQEAi19mRxiFC4A5P4nHB1lMsIw8 # gLAR5YZJrZgaeJZXcC93TaNG12WR4kmQfnNis7z6mOuAZRAo0vz6rq9pvVGk9TdA # XlKMER0E/PMHc3feIGKil5iw21UfMnlYAZHD/yYlVm13UM3M9REx4Fq4frswPAcF # IAGhycPp12HHCLg4DyTNVE3jZfUeTr3/us0dhOWSOA6yKr0uIx+ELKDD059uwIze # 1WbeGpqEcTCxHEAEu7z09SVFGkRaRR5pFGFZZ9WDLMP//+vevGkb8t3JgpUuOLsZ # JGiC24YdYdPXo2Yx4axJ/pPTHFZFormO9uIyf+e7cpTOwP48yFjY9RfFZYZMsjCC # BnEwggRZoAMCAQICCmEJgSoAAAAAAAIwDQYJKoZIhvcNAQELBQAwgYgxCzAJBgNV # BAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4w # HAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xMjAwBgNVBAMTKU1pY3Jvc29m # dCBSb290IENlcnRpZmljYXRlIEF1dGhvcml0eSAyMDEwMB4XDTEwMDcwMTIxMzY1 # NVoXDTI1MDcwMTIxNDY1NVowfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hp # bmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jw # b3JhdGlvbjEmMCQGA1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENBIDIwMTAw # ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCpHQ28dxGKOiDs/BOX9fp/ # aZRrdFQQ1aUKAIKF++18aEssX8XD5WHCdrc+Zitb8BVTJwQxH0EbGpUdzgkTjnxh # MFmxMEQP8WCIhFRDDNdNuDgIs0Ldk6zWczBXJoKjRQ3Q6vVHgc2/JGAyWGBG8lhH # hjKEHnRhZ5FfgVSxz5NMksHEpl3RYRNuKMYa+YaAu99h/EbBJx0kZxJyGiGKr0tk # iVBisV39dx898Fd1rL2KQk1AUdEPnAY+Z3/1ZsADlkR+79BL/W7lmsqxqPJ6Kgox # 8NpOBpG2iAg16HgcsOmZzTznL0S6p/TcZL2kAcEgCZN4zfy8wMlEXV4WnAEFTyJN # AgMBAAGjggHmMIIB4jAQBgkrBgEEAYI3FQEEAwIBADAdBgNVHQ4EFgQU1WM6XIox # kPNDe3xGG8UzaFqFbVUwGQYJKwYBBAGCNxQCBAweCgBTAHUAYgBDAEEwCwYDVR0P # BAQDAgGGMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAU1fZWy4/oolxiaNE9 # lJBb186aGMQwVgYDVR0fBE8wTTBLoEmgR4ZFaHR0cDovL2NybC5taWNyb3NvZnQu # Y29tL3BraS9jcmwvcHJvZHVjdHMvTWljUm9vQ2VyQXV0XzIwMTAtMDYtMjMuY3Js # MFoGCCsGAQUFBwEBBE4wTDBKBggrBgEFBQcwAoY+aHR0cDovL3d3dy5taWNyb3Nv # ZnQuY29tL3BraS9jZXJ0cy9NaWNSb29DZXJBdXRfMjAxMC0wNi0yMy5jcnQwgaAG # A1UdIAEB/wSBlTCBkjCBjwYJKwYBBAGCNy4DMIGBMD0GCCsGAQUFBwIBFjFodHRw # Oi8vd3d3Lm1pY3Jvc29mdC5jb20vUEtJL2RvY3MvQ1BTL2RlZmF1bHQuaHRtMEAG # CCsGAQUFBwICMDQeMiAdAEwAZQBnAGEAbABfAFAAbwBsAGkAYwB5AF8AUwB0AGEA # dABlAG0AZQBuAHQALiAdMA0GCSqGSIb3DQEBCwUAA4ICAQAH5ohRDeLG4Jg/gXED # PZ2joSFvs+umzPUxvs8F4qn++ldtGTCzwsVmyWrf9efweL3HqJ4l4/m87WtUVwgr # UYJEEvu5U4zM9GASinbMQEBBm9xcF/9c+V4XNZgkVkt070IQyK+/f8Z/8jd9Wj8c # 8pl5SpFSAK84Dxf1L3mBZdmptWvkx872ynoAb0swRCQiPM/tA6WWj1kpvLb9BOFw # nzJKJ/1Vry/+tuWOM7tiX5rbV0Dp8c6ZZpCM/2pif93FSguRJuI57BlKcWOdeyFt # w5yjojz6f32WapB4pm3S4Zz5Hfw42JT0xqUKloakvZ4argRCg7i1gJsiOCC1JeVk # 7Pf0v35jWSUPei45V3aicaoGig+JFrphpxHLmtgOR5qAxdDNp9DvfYPw4TtxCd9d # dJgiCGHasFAeb73x4QDf5zEHpJM692VHeOj4qEir995yfmFrb3epgcunCaw5u+zG # y9iCtHLNHfS4hQEegPsbiSpUObJb2sgNVZl6h3M7COaYLeqN4DMuEin1wC9UJyH3 # yKxO2ii4sanblrKnQqLJzxlBTeCG+SqaoxFmMNO7dDJL32N79ZmKLxvHIa9Zta7c # RDyXUHHXodLFVeNp3lfB0d4wwP3M5k37Db9dT+mdHhk4L7zPWAUu7w2gUDXa7wkn # HNWzfjUeCLraNtvTX4/edIhJEqGCAs8wggI4AgEBMIH8oYHUpIHRMIHOMQswCQYD # VQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9uZDEe # MBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSkwJwYDVQQLEyBNaWNyb3Nv # ZnQgT3BlcmF0aW9ucyBQdWVydG8gUmljbzEmMCQGA1UECxMdVGhhbGVzIFRTUyBF # U046Nzg4MC1FMzkwLTgwMTQxJTAjBgNVBAMTHE1pY3Jvc29mdCBUaW1lLVN0YW1w # IFNlcnZpY2WiIwoBATAHBgUrDgMCGgMVADE9SxvygBI9F7Ii/Z+5sZl9Wn2boIGD # MIGApH4wfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNV # BAcTB1JlZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEmMCQG # A1UEAxMdTWljcm9zb2Z0IFRpbWUtU3RhbXAgUENBIDIwMTAwDQYJKoZIhvcNAQEF # BQACBQDjvSkJMCIYDzIwMjEwMTI4MTYxNDAxWhgPMjAyMTAxMjkxNjE0MDFaMHQw # OgYKKwYBBAGEWQoEATEsMCowCgIFAOO9KQkCAQAwBwIBAAICNI8wBwIBAAICEgQw # CgIFAOO+eokCAQAwNgYKKwYBBAGEWQoEAjEoMCYwDAYKKwYBBAGEWQoDAqAKMAgC # AQACAwehIKEKMAgCAQACAwGGoDANBgkqhkiG9w0BAQUFAAOBgQDJ+asHQ9jVe18N # 5z02JvoXhsmPP847PLbSIpMv6YxLFHHzrbugbpgYvVqy8MkkyFQwcYVf+2T0g03u # +UMn1d6Q0SF7vZM0hbTH/OhMMtNwGwGRfnXPu8sGz0mrsTElqAY80dSrxikXnBeA # 8xMl5w7SsL+nt+Uzbi6OfZHYOW9KETGCAw0wggMJAgEBMIGTMHwxCzAJBgNVBAYT # AlVTMRMwEQYDVQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYD # VQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xJjAkBgNVBAMTHU1pY3Jvc29mdCBU # aW1lLVN0YW1wIFBDQSAyMDEwAhMzAAABKKAOgeE21U/CAAAAAAEoMA0GCWCGSAFl # AwQCAQUAoIIBSjAaBgkqhkiG9w0BCQMxDQYLKoZIhvcNAQkQAQQwLwYJKoZIhvcN # AQkEMSIEIGsyYbQ0XBSneKI/+2spvBpj4aDO2rlVd9NTm0uYqYwnMIH6BgsqhkiG # 9w0BCRACLzGB6jCB5zCB5DCBvQQgvEVqi68FUnfv3BsQ3wakuG9bT14aDxawuteb # 1dboFNowgZgwgYCkfjB8MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3Rv # bjEQMA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0 # aW9uMSYwJAYDVQQDEx1NaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0EgMjAxMAITMwAA # ASigDoHhNtVPwgAAAAABKDAiBCDuLOzRmJ+mWrNIx7BC/dS9Vq81lrsMO3wBAkCh # zWPHNzANBgkqhkiG9w0BAQsFAASCAQA7o4OYOKuuP8JVbmxIIZNK4XyjVwWeKDg6 # P70jw5EO2RXmj0+RbSowl88XwmNh9JZQNv2FOdEkxXBK9mniWeZmkZlRFNf7GpjG # 6E9ACay5u1lr4w0dcchi2pQ0U3VcqN51JOMLIDIY6kM3f1gQSdONsu/GxMjMbjhX # ejdo2RMu4aBuxtGJcGwfEawqToo0EhVFfq4J5LItNQX2gJPRYdb/wbh/C7PLfJAP # HDU6DkCENBwYz9aF3+o4ShQvCULdZ8sUd48vVEznIEGMDpnZFJYo2SeErqLWZf7H # FtwHAIO9+prf1skXqinMGtuive52AXksreLhrGFC/OrwxLkE00Mr # SIG # End signature block |