Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Governance and Administ...
Unanswered

How to change the retention period in CDS?

(0) ShareShare
ReportReport
Posted on by

Hello,

 

As I see, that default retention period for the Audit logs is 30 days as mentioned here : https://docs.microsoft.com/en-us/power-platform/admin/audit-data-user-activity#startstop-auditing-and-set-retention-policy

 

It states, that to change the retention period it requires to create Web API C# project and run the Web API that changes the retention period.

 

Is this possible via PowerShell Command? If not, is there any reference link that suggest step by step process to update retention policy for the Audit logs in CDS - can you please help with the same?

 

Thanks,

Categories:
  • Dave Wi Profile Picture
    on at
    @Re: How to change the retention period in CDS?

    Hi @FCGALLEG 

     

    That's for Audit logs in Office 365, while my concern is for the CDS - any clue?

     

    Thanks,

  • Javier Gallego Profile Picture
    on at
    Re: How to change the retention period in CDS?

    Hi Dave8, 

     

    Please, check this document:

    https://docs.microsoft.com/en-us/microsoft-365/compliance/audit-log-retention-policies?view=o365-worldwide

     

    I hope it helps you.

     

    Javier

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Featured topics