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 / Enabling Audit through...
Power Apps
Answered

Enabling Audit through Dataverse API

(0) ShareShare
ReportReport
Posted on by 17

We have a need to better audit security role assignments/adjustments.  Once enabled on the security role entity, there's rich information that flows into the Office 365 logs that matches my expectations perfectly. 

 

I have found a simple way via the Dataverse API to enable audit for the environment itself as part of our automated environment setup process, but haven't found a simple way to enable audit on specific entities via the Dataverse Web API.

 

It appears you have to pull the table definition, update the value from false to true, post the entire entity definition back and then somehow publish/activate the changes - but have largely unsuccessful in getting that change to reflect in the entity definition.

 

Any hints/pointers?

I have the same question (0)
  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Hello,

    It looks like it's doable. Check this KB article - https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/create-update-entity-definitions-using-web-api#update-table-definitions it's possible to update table's metadata using WebApi.

  • power-guy Profile Picture
    17 on at

    Thanks @a33ik, I had followed this guide and could see the definition had changed when re-pulled via the API but could never find a way to get it reflected in the table definition itself (when viewed through Dataverse table browser or Dynamics customization). 

     

    I'll continue playing around with it to see if I can get to solution.  Appreciate you sharing your thoughts. 

  • Verified answer
    a33ik Profile Picture
    3,306 Most Valuable Professional on at

    I would also recommend publishing the entity. I might make your update visible in the maker interface.

  • power-guy Profile Picture
    17 on at

    The combo of these things is now working!  Thanks @a33ik!

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