web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to change the rete...
Power Apps
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,

I have the same question (0)
  • Javier Gallego Profile Picture
    Microsoft Employee on at

    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

  • Dave Wi Profile Picture
    on at

    Hi @FCGALLEG 

     

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

     

    Thanks,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard