OneDriveSharedByMemberOf
Parameter of DlpCompliancePolicy
Applies to : Security & Compliance
Description
The OneDriveSharedByMemberOf parameter specifies the distribution groups or mail-enabled security groups to include in the DLP policy (the OneDrive sites of group members are included in the policy). You identify the groups by email address.
To use this parameter, one of the following statements must be true:
- The policy already includes OneDrive sites (in the output of Get-DlpCOmpliancePolicy, the OneDriveLocation property value is All, which is the default value).
- Use
-AddOneDriveLocation Allin the same command with this parameter.
To enter multiple values, use the following syntax: <value1>,<value2>,...<valueX>. If the values contain spaces or otherwise require quotation marks, use the following syntax: "<value1>","<value2>",..."<valueX>".
You can't use this parameter with the ExceptIfOneDriveSharedBy or ExceptIfOneDriveSharedByMemberOf parameters.
You can't use this parameter to specify Microsoft 365 Groups.
Characteristics
- Type
RecipientIdParameter[]- Parameter sets
- (All)
Apply
This value type (RecipientIdParameter[]) must be built by hand: see the examples on the policy page and the Microsoft documentation.