New-MgComplianceEdiscoveryCaseLegalHoldUserSource

Adds a userSource to a legalHold object.

Syntax

New-MgComplianceEdiscoveryCaseLegalHoldUserSource
   -CaseId <String>
   -LegalHoldId <String>
   [-AdditionalProperties <Hashtable>]
   [-CreatedBy <IMicrosoftGraphIdentitySet>]
   [-CreatedDateTime <DateTime>]
   [-DisplayName <String>]
   [-Email <String>]
   [-HoldStatus <String>]
   [-Id <String>]
   [-IncludedSources <String>]
   [-SiteWebUrl <String>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-MgComplianceEdiscoveryCaseLegalHoldUserSource
   -CaseId <String>
   -LegalHoldId <String>
   -BodyParameter <IMicrosoftGraphEdiscoveryUserSource>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-MgComplianceEdiscoveryCaseLegalHoldUserSource
   -InputObject <IComplianceIdentity>
   [-AdditionalProperties <Hashtable>]
   [-CreatedBy <IMicrosoftGraphIdentitySet>]
   [-CreatedDateTime <DateTime>]
   [-DisplayName <String>]
   [-Email <String>]
   [-HoldStatus <String>]
   [-Id <String>]
   [-IncludedSources <String>]
   [-SiteWebUrl <String>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-MgComplianceEdiscoveryCaseLegalHoldUserSource
   -InputObject <IComplianceIdentity>
   -BodyParameter <IMicrosoftGraphEdiscoveryUserSource>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Adds a userSource to a legalHold object.

Examples

Example 1: Using the New-MgComplianceEdiscoveryCaseLegalHoldUserSource Cmdlet

Import-Module Microsoft.Graph.Compliance
$params = @{
	Email = "adelev@contoso.com"
	IncludedSources = "mailbox"
}
New-MgComplianceEdiscoveryCaseLegalHoldUserSource -CaseId $caseId -LegalHoldId $legalHoldId -BodyParameter $params

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

Parameters

-AdditionalProperties

Additional Parameters

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

-BodyParameter

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

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

-CaseId

key: id of case

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-CreatedBy

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

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

-CreatedDateTime

The date and time the dataSource was created.

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

-DisplayName

The display name of the dataSource. This will be the name of the SharePoint site.

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

-Email

Email address of the user's mailbox.

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

-HoldStatus

dataSourceHoldStatus

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

-Id

The unique identifier for an entity. Read-only.

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

-IncludedSources

sourceType

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

-InputObject

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

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

-LegalHoldId

key: id of legalHold

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Graph.PowerShell.Models.IComplianceIdentity

Microsoft.Graph.PowerShell.Models.IMicrosoftGraphEdiscoveryUserSource

Outputs

Microsoft.Graph.PowerShell.Models.IMicrosoftGraphEdiscoveryUserSource

Notes

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

BODYPARAMETER <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. This property is read-only.
      • [Id <String>]: The identifier of the identity. This property is read-only.
    • [Device <IMicrosoftGraphIdentity>]: identity
    • [User <IMicrosoftGraphIdentity>]: identity
  • [CreatedDateTime <DateTime?>]: The date and time the dataSource was created.
  • [DisplayName <String>]: The display name of the dataSource. This will be 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. This property is read-only.
    • [Id <String>]: The identifier of the identity. This property is read-only.
  • [Device <IMicrosoftGraphIdentity>]: identity
  • [User <IMicrosoftGraphIdentity>]: identity

INPUTOBJECT <IComplianceIdentity>: Identity Parameter

  • [CaseId <String>]: key: id of case
  • [CaseOperationId <String>]: key: id of caseOperation
  • [CustodianId <String>]: key: id of custodian
  • [DataSourceId <String>]: key: id of dataSource
  • [LegalHoldId <String>]: key: id of legalHold
  • [NoncustodialDataSourceId <String>]: key: id of noncustodialDataSource
  • [ReviewSetId <String>]: key: id of reviewSet
  • [ReviewSetQueryId <String>]: key: id of reviewSetQuery
  • [SiteSourceId <String>]: key: id of siteSource
  • [SourceCollectionId <String>]: key: id of sourceCollection
  • [TagId <String>]: key: id of tag
  • [TagId1 <String>]: key: id of tag
  • [UnifiedGroupSourceId <String>]: key: id of unifiedGroupSource
  • [UserSourceId <String>]: key: id of userSource