Plug-in trace logs in Dataverse go blank for custom roles in January 2027: what to grant before then
From January 5, 2027, Dataverse blanks three plug-in trace log columns for anyone who isn't a System Administrator or System Customizer. Here's who needs the new prvViewPluginTraceLogSecureContent privilege, and why the secrets in those columns need rotating anyway.
part 25 of 25 · Running enterprise platforms wellthe ideaSame trace row, fewer readers. The new privilege decides who sees the detail.
after reading, you can- Work out who loses trace detail, including the integration accounts nobody thinks about
- Set up a small role that carries prvViewPluginTraceLogSecureContent for the people who need it
- Move plug-in secrets out of step configuration into Key Vault, then rotate what was exposed
From January 5, 2027, Dataverse starts blanking three columns in the plug-indefinitionCustom .NET code that Dataverse runs when a record changes, say when someone saves an account. Developers register each one against a table and a message, and it runs whenever that message hits that table. trace logdefinitionThe PluginTraceLog table, where Dataverse saves the notes a plug-in writes through its tracing service. A daily job deletes rows older than 24 hours. for anyone who isn't a System Administrator or System Customizer. Developers and support staff on custom roles will open a failed plug-in's trace and find the useful part empty. Decide who still needs those columns and add the new privilege to their role before the rollout reaches your region.
From January, only admins and the people you pick can read the sensitive parts of a plug-in's debug log
Dynamics 365 and Power Apps run on a database called Dataverse. Developers add custom code to it, called plug-ins, and when a plug-in runs it can write notes about what it did into a log. Two of those log fields can also hold a copy of the settings the plug-in was given, and those settings sometimes include passwords or keys. Right now anyone allowed to read the log sees all of it. From January 2027 only admins, customizers and people you pick will see those three fields. Everyone else still sees that a plug-in ran and whether it failed, just without the detail.
Think of a building's maintenance logbook. Anyone with a key to the office can flip through it, and some engineers have been writing the alarm code next to each repair. The building manager now staples those pages shut. You can still see which machine broke and when, but only staff on the manager's list can open the stapled pages.
- Dynamics 365 and Power Platform admins
- Plug-in developers and ISVs
- Support teams who read trace logs
- Security and audit teams
- Partners who support a client's CRM
Why does a debug log need locking down?
Plug-ins get registered with two configuration strings. Microsoft's developer docs tell you to put anything you don't mind people seeing in the unsecure one and sensitive data in the secure one, and they say the secure string is stored in a separate table only system administrators can read. Trace rows carry both strings too: Microsoft's docs describe those two columns as the configuration passed to the plug-in step. So a support analyst who could never open the secure configurationdefinitionA string passed to a plug-in step for sensitive settings. At its source only system administrators can read it, but trace rows have carried a copy. directly could read it in a trace, as long as their role let them read trace logs.
Microsoft says it plainly in the notice: these columns can hold plug-in configuration values and other sensitive data, and today any user who can read plug-in trace logs can see them. The Message Block column carries a risk of its own, because it holds whatever the developer chose to trace. A line that dumps a request body or a connection string during a late-night fix can stay in the code long after the fix.
The notice is tagged as a user and admin impact change, and there's no CVE attached. The risk is quieter than a vulnerability. Trace logs get read by developers, support staff, partner consultants and integration accounts, and every one of those roles is a place a key can leak from.
-
01 A plug-in step runs
Each time the step fires, Dataverse gives the plug-in both configuration strings, and the code calls Trace() wherever the developer left a note.
-
02 A trace row is written
With logging switched on, the notes end up in Message Block. The same row has columns for both configuration strings as well.
-
03 Someone opens the trace
They might use the Plug-in Trace Log tile, the Web API or a community viewer such as XrmToolBox's Plugin Trace Viewer.
-
04 Dataverse checks the role
System Administrator, System Customizer or a role holding prvViewPluginTraceLogSecureContent gets all three columns.
-
05 Everyone else gets blanks
The row still opens. Type name, message, entity and exception details stay visible, but the three columns come back empty.
For engineers: Microsoft's tracing page says a caller without the right role gets null for these columns from the app tile, the Web API or a community tool. It also says the System Administrator role counts when it comes through a team, so users who get admin rights through team membership aren't caught out.
What exactly is Microsoft changing?
The change at a glance
The trace text your code wrote with Trace(). It's capped at 10 KB per row, so it keeps the most recent lines. After the change it's empty for anyone without the right role.
The unsecure string from the step registration. Developers are told it's for values they don't mind others seeing, so go and check what yours actually holds.
The secure string. At its source only system administrators could ever read it, so the copy in trace rows was the weak spot.
A new privilege you can add to a security role. It lets that role read the three columns without handing out System Administrator or System Customizer.
Type name, message name, primary entity and exception details are still readable under the caller's normal table privileges. You can see what failed, just not the trace text.
System Administrator and System Customizer aren't affected, so most developers who already hold one of those roles won't notice anything.
| Who | Today, per the notice | After the rollout | What to do |
|---|---|---|---|
| System Administrator, directly or through a team | Everything | Everything | Nothing |
| System Customizer | Everything | Everything | Nothing, but check whether they really need the role |
| Custom role that reads trace logs, with the new privilege | Everything | Everything | Add the privilege before January 5, 2027 |
| Custom role that reads trace logs, without it | Everything | Row opens, three columns empty | Decide: grant the privilege or accept the blanks |
| Role with no read access to the trace table | Nothing | Nothing | Nothing |
Dates to plan around
- Sep 14, 2026Learn tracing page updated
That page already describes restricted columns, but it names System Administrator only.
- Dec 3, 2026MC1577303 published
Microsoft's notice names the three columns, both roles and the new privilege. It also says the change goes out region by region.
- Jan 5, 2027Rollout starts by region
Microsoft hasn't said which regions go first, so add the privilege before this date.
- Mar 31, 2027Fully enforced
Every region has the restriction by now.
The regional rollout cuts both ways. A tenant in a late region might keep full access until March, while its partner's support team works in a tenant that changed in January. If you support several clients, expect the same role to behave differently from one tenant to the next for about three months.
Who needs to do what before January 5?
What to do now, by role
- Ask your Dynamics admin or partner one question: who reads our plug-in trace logs, and do they still need the full detail?
- Agree that granting the new privilege goes through the same approval as any other access request.
- If a partner supports your CRM, ask them how they'll debug failed plug-ins once the detail is hidden.
- List the security roles with read access to the Plug-in Trace Log table, then the users and teams holding them.
- Create one small role that carries only prvViewPluginTraceLogSecureContent, and assign it to named people instead of widening a broad support role.
- Check application users and integration accounts that pull trace logs through the Web API. They'll get nulls too.
- Test with a non-admin account in a sandbox once your region has the change.
- Search plug-in code for Trace() calls that write tokens, connection strings, request bodies or personal data, and remove them.
- Move secrets out of step configuration into Azure Key Vault, and have the plug-in fetch them through Power Platform managed identity.
- Don't build exception messages from secrets. Exception details stay visible to everyone who can read the row.
- Treat any secret that has ever sat in a step's configuration as exposed to every trace-log reader, and plan a rotation.
- Add the new privilege to Dataverse access reviews. Whoever holds it can read whatever developers traced.
- Ask whether trace exports, ticket attachments or spreadsheets from past incidents still hold configuration values.
# Sign in as a test user who isn't an admin # Try it once Microsoft lists your region GET <org-url>/api/data/v9.2/plugintracelogs ?$select=typename,messagename, messageblock,configuration&$top=1 # example output for a user without the privilege { "typename": "Contoso.Plugins.AccountSync", "messagename": "Update", "messageblock": null, "configuration": null }
If the test user still gets text back after Microsoft says your region has the change, check which roles reach them through teams before raising a ticket. Privileges add up across every role a user holds, so one forgotten team membership is enough to hand someone the privilege.
Where can trace text still turn up?
The notice covers three columns in one table. Trace text travels further than that, and Microsoft's docs describe at least three other places it appears. The notice doesn't mention any of them, so don't assume they change.
| Where | Who sees it | Covered by the notice? | What we'd do |
|---|---|---|---|
| Plug-in Trace Log table | Users whose role can read it | Yes, the three columns | Grant the new privilege to named people only |
| Error dialog for a failed synchronous plug-in | The user who hit the error, through Download Log File | Not mentioned | Keep secrets out of Trace() calls entirely |
| System job details for a failed asynchronous plug-in | Users who can open that system job | Not mentioned | Same: fix it in the code |
| Web API error response | The calling app or user, in the TraceText annotation of Microsoft's example | Not mentioned | Check what your integrations log from error bodies |
| Application Insights, through ILogger | Whoever has access to that Azure resource | No, it's outside Dataverse | Review Azure access on the resource |
| Exports from community tools | Whoever holds the file | No | Find old exports in tickets and shared drives |
The error dialog is the one that catches teams out. Microsoft's tracing page says a synchronous plug-in that throws shows the signed-in user an error with a Download Log File button, and that file holds the exception and the trace output. That's an ordinary business user, and nothing in the notice talks about it.
Application Insights is a separate case. Plug-ins that use the ILogger interface write to your own Azure resource when the integration is turned on, and Microsoft says that telemetry is never sent to Microsoft. Access there follows Azure permissions, so a Dataverse role change does nothing for it. If your developers log the same detail through both channels, review who can query that resource too.
Exports are the copies nobody tracks. The XrmToolBox Plugin Trace Viewer, a community tool Microsoft points to but doesn't support, can export trace rows with their details to Excel. A spreadsheet attached to a support ticket two years ago keeps whatever was in Message Block that day, long after Dataverse's 24-hour cleanup.
Harden so the next one hurts less
Hiding the columns only changes who reads the traces. What lasts is fixing what gets written, so secrets stop landing where a trace can copy them. Here's the order we'd work in.
Before: secrets ride along in every trace row
The API key sits in the step's secure configuration. Trace rows carry a copy in their Secure Configuration column, and any role that can read trace logs can read the key.
After: secrets in Key Vault, traces kept thin
The key lives in Azure Key Vault, and the plug-in fetches it at run time through Power Platform managed identity. Traces carry IDs and steps only, and the three columns open only for a small named role.
- API keys and passwords go in secure step configuration, and trace rows can carry a copy
- Trace() dumps request bodies to help with a fix
- Trace logging left on All in production for weeks
- A broad support role reads every trace
- Trace exports pasted into tickets
- Secrets stay in Key Vault, and the plug-in fetches them at run time through managed identity
- Traces log record IDs and step names, never payloads
- Logging on Exceptions, or Off, except while someone is debugging
- The new privilege sits in one small role that gets reviewed like any other access
- Tickets link to the trace row instead of copying it
Durable fixes, in the order we'd do them
- 01Find secrets in step configuration
Open each registered step in the Plug-in Registration tool and read both configuration fields. Anything that looks like a key, password or connection string goes on a list with its owner.
- 02Move them to Key Vault
Set up Power Platform managed identity for the plug-in and grant it access to Azure Key Vault, so it fetches secrets at run time with no stored credential. It needs a signed assembly plus an app registration or user-assigned managed identity. Key Vault environment variables won't help here. Microsoft documents them for flows, custom connectors and Copilot Studio agents, and plug-ins aren't on that list.
- 03Rotate what was exposed
Once a key has sat in a trace-readable column, assume someone could have seen it. Rotate it after the code change is live, not before, or the plug-in breaks.
- 04Clean up what code traces
Review Trace() calls in code review the way you'd review log statements in a web app. Keep record IDs, step names and timings. Drop payloads and anything a customer typed.
- 05Turn logging down
Microsoft warns against leaving trace logging on for long because of performance. Use Exceptions in production, or Off, and switch to All only while someone is debugging.
- 06Keep the privilege small
Give prvViewPluginTraceLogSecureContent through its own role, assign it to named people, and put that role into your regular access reviews.
If it goes wrong
When support can't debug, or someone finds a secret in a trace
Two things go wrong with a change like this. Support loses the detail it needs in the middle of an incident, or the review turns up a secret that's been sitting in trace logs. Work through the phases in order.
- 01Triagefirst hour
- If support can't read traces during an incident, have a System Administrator or System Customizer pull the row for now.
- Check whether Microsoft has switched the user's region yet. Then check their teams, since a team role may already carry the privilege.
- 02Restore accesssame day
- Assign the small trace-reader role to the people working the incident, and note when to take it away.
- Don't hand out System Administrator to fix a debugging gap. The new privilege exists so you don't have to.
- 03Check for exposurefirst day
- If a key or password turns up in a trace or step configuration, list every role, team and integration that could read trace logs.
- Look for copies outside Dataverse: ticket attachments, exported spreadsheets, Application Insights queries.
- 04Rotate and fixthis week
- Move the secret into Key Vault, deploy the plug-in change, then rotate the old value at the system that issued it.
- Remove the Trace() line that wrote it, and look for the same pattern in other plug-ins.
- 05Report and learnthis month
- If the secret opened customer or regulated data, bring in security and legal to decide who needs to be told.
- Put trace content on the code review checklist. Add the new privilege to access reviews so nobody keeps it for good.
What this could look like: three typical setups
Three illustrative situations
- the setup
- A retailer's Dynamics 365 Customer Service is supported by a partner whose analysts hold a custom Support Engineer role. It reads trace logs so they can debug failed plug-ins without admin rights.
- what happens
- The rollout reaches the tenant mid-month. A sync plug-in fails, the analyst opens the trace and finds Message Block empty. The ticket waits while someone hunts for an admin.
- what to do
- Create a trace-reader role with only the new privilege and assign it to the named analysts before January 5. Leave the broad support role alone so the privilege stays easy to review.
- the setup
- A distributor's order plug-in calls a shipping API. The developer stored the API key in the step's secure configuration, as the docs suggest, and trace logging has been on All since a fix two years ago.
- what happens
- Trace rows carried the key in their Secure Configuration column, and any trace-log reader could open them. The change hides it from January, but the key has been readable for two years.
- what to do
- Move the key into Key Vault and have the plug-in fetch it through managed identity. Deploy, then rotate the key with the shipping provider and set logging back to Exceptions.
- the setup
- A manufacturer's integration team has an application user that reads plugintracelogs through the Web API every hour and pushes failures into their monitoring dashboard, Message Block included.
- what happens
- After the rollout the feed keeps running, but the message text comes back null. Nobody gets an error, and the dashboard shows failures with no detail.
- what to do
- Decide whether the feed needs trace text at all. If it does, add the privilege to that application user's role. If it doesn't, drop the column from the query so nobody wonders where it went.
Dataverse security roles are identity work, and we'd treat them that way: one small role per job, reviewed on a schedule, with secrets kept out of places that get copied. See our Dynamics 365 work, our Power Platform work, the engineers we place on Dynamics projects, or start with a free assessment.
What to take from this
- 01
From January 5, 2027, Message Block, Configuration and Secure Configuration in plug-in trace logs go blank for anyone without System Administrator, System Customizer or prvViewPluginTraceLogSecureContent.
- 02
Find every role and integration that reads trace logs, and give the new privilege through one small role to named people.
- 03
Hiding the columns doesn't undo past exposure. Move secrets from step configuration into Key Vault, then rotate them.
- 04
The trace table isn't the only copy. Error dialogs and old exports can carry the same text, so fix what your code writes as well as who reads it.
01What's changing in Dataverse plug-in trace logs on January 5, 2027?
From January 5, 2027, three PluginTraceLog columns, Message Block, Configuration and Secure Configuration, become readable only by users with System Administrator, System Customizer or a role holding prvViewPluginTraceLogSecureContent. Everyone else still opens the rows but sees those columns empty. It rolls out by region and is fully enforced by March 31, 2027.
02I'm a System Administrator or System Customizer. Do I need to do anything?
No. Microsoft says both roles keep access. Its tracing page also says System Administrator counts when it comes through a team. The people to check are developers, support staff and integration accounts on custom roles that read trace logs.
03How do I give someone access to the hidden trace log columns?
Add the prvViewPluginTraceLogSecureContent privilege to a security role, then assign that role to the person who needs it. Microsoft's notice sends you to its Create or edit a security role article for the clicks. We'd keep the privilege in a small role of its own, so it stands out in access reviews, and we'd get it done before January 5, 2027.
04Will my plug-ins stop working?
No. The change is about who can read trace rows, and nothing in the notice touches how plug-ins run. What breaks is debugging and any report or feed that reads those three columns as a user without the privilege.
05Does this hide trace text in error dialogs and system jobs too?
The notice only names the three PluginTraceLog columns. Microsoft's docs say a failed synchronous plug-in offers the user a log file with the trace output, and a failed asynchronous one shows it in the system job. The notice doesn't say those change, so keep secrets out of Trace() calls whatever happens.
06Should I still rotate secrets that sat in plug-in secure configuration once the change is live?
If anyone outside the admin group could read trace logs while tracing was on, yes. Microsoft's notice says anyone who can read trace logs can see those columns today, so assume the value could have been seen. Move it into Azure Key Vault, with the plug-in fetching it through managed identity, then rotate.
07Microsoft's tracing page names only System Administrator. Which one do I go by?
The tracing page on Learn was last updated in September and describes the rule with System Administrator alone. The December Message Center post adds System Customizer and the new privilege. We'd plan from the notice and test with a non-admin account once the rollout reaches your region.
Three questions, about a minute
Pick an answer and we'll tell you if it's right, and why it is or isn't. The score stays in this browser.
-
Q1In February a developer on a custom role sees a trace's exception but empty Message Block and Configuration. An admin sees both. Why?
show the answer
B. Their roles don't include prvViewPluginTraceLogSecureContent yet An admin sees text in the same row, so logging worked and the plug-in did trace. The developer is missing exactly the restricted columns, which is what a role without the new privilege gets after the rollout.
-
Q2An API key has sat in a step's secure configuration for two years, with tracing on All. The change is now enforced. What's left to do?
show the answer
D. Move the key to Key Vault, deploy, then rotate it Hiding the columns only protects future reads. Anyone with trace access could have read the key before, so it moves to Key Vault and the old value gets rotated once the new code is live.
-
Q3Your support analysts need trace detail during incidents. Which grant gives them that with the least extra access?
show the answer
A. A small role carrying only the new privilege, given to named analysts The new privilege exists so you don't have to hand out admin or customizer roles to debug plug-ins. Its own role keeps it easy to see and review.