New-MgBetaComplianceEdiscoveryCaseLegalHoldUserSource
Adds a userSource to a legalHold object.
Syntax
New-MgBetaComplianceEdiscoveryCaseLegalHoldUserSource
-CaseId <String>
-LegalHoldId <String>
[-ResponseHeadersVariable <String>]
[-AdditionalProperties <Hashtable>]
[-CreatedBy <IMicrosoftGraphIdentitySet>]
[-CreatedDateTime <DateTime>]
[-DisplayName <String>]
[-Email <String>]
[-HoldStatus <String>]
[-Id <String>]
[-IncludedSources <String>]
[-SiteWebUrl <String>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-MgBetaComplianceEdiscoveryCaseLegalHoldUserSource
-CaseId <String>
-LegalHoldId <String>
-BodyParameter <IMicrosoftGraphEdiscoveryUserSource>
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-MgBetaComplianceEdiscoveryCaseLegalHoldUserSource
-InputObject <IComplianceIdentity>
[-ResponseHeadersVariable <String>]
[-AdditionalProperties <Hashtable>]
[-CreatedBy <IMicrosoftGraphIdentitySet>]
[-CreatedDateTime <DateTime>]
[-DisplayName <String>]
[-Email <String>]
[-HoldStatus <String>]
[-Id <String>]
[-IncludedSources <String>]
[-SiteWebUrl <String>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-MgBetaComplianceEdiscoveryCaseLegalHoldUserSource
-InputObject <IComplianceIdentity>
-BodyParameter <IMicrosoftGraphEdiscoveryUserSource>
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Adds a userSource to a legalHold object.
Examples
Example 1: Code snippet
Import-Module Microsoft.Graph.Beta.Compliance
$params = @{
email = "adelev@contoso.com"
includedSources = "mailbox"
}
New-MgBetaComplianceEdiscoveryCaseLegalHoldUserSource -CaseId $caseId -LegalHoldId $legalHoldId -BodyParameter $params
This example shows how to use the New-MgBetaComplianceEdiscoveryCaseLegalHoldUserSource Cmdlet.
Parameters
-AdditionalProperties
Additional Parameters
Type: | Hashtable |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-BodyParameter
userSource To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
Type: | IMicrosoftGraphEdiscoveryUserSource |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-CaseId
The unique identifier of case
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CreatedBy
identitySet To construct, see NOTES section for CREATEDBY properties and create a hash table.
Type: | IMicrosoftGraphIdentitySet |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CreatedDateTime
The date and time the dataSource was created.
Type: | DateTime |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisplayName
The display name of the dataSource, and is the name of the SharePoint site.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Email address of the user's mailbox.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Headers
Optional headers that will be added to the request.
Type: | IDictionary |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-HoldStatus
dataSourceHoldStatus
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Id
The unique identifier for an entity. Read-only.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IncludedSources
sourceType
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: | IComplianceIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-LegalHoldId
The unique identifier of legalHold
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProgressAction
{{ Fill ProgressAction Description }}
Type: | ActionPreference |
Aliases: | proga |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResponseHeadersVariable
Optional Response Headers Variable.
Type: | String |
Aliases: | RHV |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SiteWebUrl
The URL of the user's OneDrive for Business site. Read-only.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Microsoft.Graph.Beta.PowerShell.Models.IComplianceIdentity
Microsoft.Graph.Beta.PowerShell.Models.IMicrosoftGraphEdiscoveryUserSource
System.Collections.IDictionary
Outputs
Microsoft.Graph.Beta.PowerShell.Models.IMicrosoftGraphEdiscoveryUserSource
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 <IMicrosoftGraphEdiscoveryUserSource>
: userSource
[(Any) <Object>]
: This indicates any property can be added to this object.[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 display name of the identity. The display name might not always be available or up to date. For example, if a user changes their display name the API might 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. When the unique identifier is unavailable, the displayName property is provided for the identity, but the id property isn't included in the response.
[Device <IMicrosoftGraphIdentity>]
: identity[User <IMicrosoftGraphIdentity>]
: identity
[CreatedDateTime <DateTime?>]
: The date and time the dataSource was created.[DisplayName <String>]
: The display name of the dataSource, and is the name of the SharePoint site.[HoldStatus <String>]
: dataSourceHoldStatus[Id <String>]
: The unique identifier for an entity. Read-only.[Email <String>]
: Email address of the user's mailbox.[IncludedSources <String>]
: sourceType[SiteWebUrl <String>]
: The URL of the user's OneDrive for Business site. 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 display name of the identity. The display name might not always be available or up to date. For example, if a user changes their display name the API might 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. When the unique identifier is unavailable, the displayName property is provided for the identity, but the id property isn't included in the response.
[Device <IMicrosoftGraphIdentity>]
: identity[User <IMicrosoftGraphIdentity>]
: identity
INPUTOBJECT <IComplianceIdentity>
: Identity Parameter
[AuthoredNoteId <String>]
: The unique identifier of authoredNote[CaseId <String>]
: The unique identifier of case[CaseOperationId <String>]
: The unique identifier of caseOperation[CustodianId <String>]
: The unique identifier of custodian[DataSourceId <String>]
: The unique identifier of dataSource[LegalHoldId <String>]
: The unique identifier of legalHold[NoncustodialDataSourceId <String>]
: The unique identifier of noncustodialDataSource[ReviewSetId <String>]
: The unique identifier of reviewSet[ReviewSetQueryId <String>]
: The unique identifier of reviewSetQuery[SiteSourceId <String>]
: The unique identifier of siteSource[SourceCollectionId <String>]
: The unique identifier of sourceCollection[SubjectRightsRequestId <String>]
: The unique identifier of subjectRightsRequest[TagId <String>]
: The unique identifier of tag[TagId1 <String>]
: The unique identifier of tag[UnifiedGroupSourceId <String>]
: The unique identifier of unifiedGroupSource[UserId <String>]
: The unique identifier of user[UserSourceId <String>]
: The unique identifier of userSource