Share via

Data Loss Prevention Powershell

Anonymous
2021-03-12T10:36:36.733+00:00

Hi Team,

I am using Powershell V5.1 Exchange Online Module to connect to Data Loss Prevention and create a DLP Policy.

To connect to DLP policy we must connect Connect-IPPSession session and access the security and compliance resources. and then access the DLP resources using New-DLPCompliancePolicy command and o trigger the required operations like Create, Update, remove, etc.

The Challange:

Connect-IPPSession - We are not able to find any way to connect using the certificate (Client ID & Secret/Certificate). It only supports User Principles ( Connect-IPPSSession -UserPrincipalName -ConnectionUri) which means we have to hard code Username and Password somewhere in the configuration settings. This is potentially a risk and not recommended.

Can you please help us with any other alternatives?

Thanks
Aniruddha

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

0 comments No comments

Answer accepted by question author

Vasil Michev 127K Reputation points MVP Volunteer Moderator
2021-03-12T10:59:54.06+00:00

There's no alternative currently, only the Exchange Online module supports certificate-based auth, the SCC one does not. Neither there is support for performing these operations via the Graph API.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2021-03-12T13:06:29.903+00:00

    Thanks for the Confirmation.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.