Before the AI Writes to Polarion: Three Things to Settle
Before an AI assistant writes to Polarion, settle three things: what it may change, who says yes, and how you get back.
Say you have a handful of requirements that need to be ready for review next week. Some descriptions are thin, and a few have no assignee. It's the kind of work you'd happily hand to an AI assistant.
While the assistant only reads, a bad answer mostly costs you time. Once it can write, a bad answer ends up in your project, where others may build on it.
So before that first write, I'd settle three things: what the assistant may change, who says yes, and how you get back. We'll use this one task. Other risks, such as prompt injection through text in a work item, aren't covered here.

What may the assistant change?
Start by writing it down in one sentence. For our task: the assistant may edit the description and assignee of these requirements. The status stays with me.
Polarion won't know about that sentence. It knows the user behind the access token and what that user may do. So the next question is whose token the assistant gets.

When it works for you
If you work with the assistant yourself, you'll usually want it to act as you, with a personal access token from your own account.

It then has your permissions, so if you're an administrator, think about that before you connect it. Polarion's history will show your name: it records which user made a change, not which tool. How much you check before a write is your choice, and more on that below. Either way, read first and know how to get back.
When it works on its own
For automations, shared setups or jobs that run while nobody watches, I'd create a functional account: a separate Polarion user with a small role in one project. If only the AI uses it, you can tell its changes apart from yours.
For this user, you can set a limit in Polarion's permissions management, including which REST operations a role may use. In the group "REST API Endpoints", start with "Permission to GET". Add PATCH when the job needs to edit, and leave DELETE closed. Avoid grants on global roles, and check what the user's other roles allow.

The REST operations are only half of it. The user also needs permission on the work item and its fields. On the 2612 early-access system, GET and PATCH alone still refused a description change. It worked once the user also had the project_assignable role, and with that role the status could be changed too. An explicit deny on “Permission to MODIFY field 'Status'” for that role stopped this: description and assignee changes still worked, while workflow actions and a direct status change were refused. The list of available workflow actions still showed them, so go by what happens when you try. Your roles may differ. Siemens documents how to restrict who may change a field.
Whatever you set up, try it with that user's token: one change that should work, and a few that shouldn't, such as a status change or a delete.
Who says yes?
Who checks the assistant's changes before they land in Polarion?
You decide that. Everything I say here about polarion-mcp refers to version 1.7.1, the latest release when I wrote this. Out of the box, it offers all its operations, writes included, and the server doesn't ask for confirmation. Your AI client may still ask. From there, I see three ways to set it up.

Read only. Let the assistant read your requirements and tell you what it would change.
Write with checks. Try this in a demo project with copies of your requirements. The only write operation left is patchWorkItem, which changes one existing work item per call. A script can still call it many times, but creating, deleting and the bulk update are gone. These settings don't keep the assistant inside the demo project, though. The token's user decides which projects it can reach.
Let the AI work. Here the restriction belongs in Polarion, which authorizes each call. If your client also runs tools without asking, the AI can do through this server whatever the token's user may, without asking you. With your own token, that's everything you can do, so this is where a functional account with a tight role pays off. Try its limit first and look at the results afterwards. For an unattended job, I'd also name who reviews the changes. If you can't make the limit tight enough, keep that job read-only.
What the AI can do: in the MCP server, with
MCP_PROFILE or MCP_TOOLS.What you approve: mainly in your AI client.
MCP_PROFILE=safe adds a question from the server, but not before every single write, and your client has to be able to show it.Single fields such as the status: in Polarion.
patchWorkItem can change the status too, and the server has no setting per field.Once you're confident, move to your real project and add operations when a task needs them. These settings only limit this server, so the token can still do over REST whatever its user can.
When you approve a write yourself, ask for a dry run first and check the work items, fields and new values. For our task, anything beyond description and assignee is a clear no. The later write may still differ from the preview or fail.
Whichever way you go, keep the first batches small and open the changed items in Polarion afterwards.
How do you get back?
Sooner or later you'll approve something you shouldn't have. A description loses an important condition, and someone notices two days later. Then what?
Find out before it happens. In the Polarion 2612 early-access build, the history of a work item shows what was removed and added, by which user, when and in which revision.

Going back by hand works. Open the old revision, copy the old text into the current item and save. A normal paste can bring the old view's styling along, so check the formatting afterwards.
patchWorkItem. Finding the revision took several tries, and this was the item's latest change, made the same day. If there were later edits, make sure they aren't overwritten, and check which revision the assistant picks. Read the dry run too, and check that it contains only the old values, with nothing extra added.Either way, someone first has to notice the problem.
So rehearse it. Change five demo requirements on purpose and restore them, by hand and through the assistant, descriptions and assignees included. Take a baseline first to see what differs. If you can't get back comfortably there, you're not ready to let the assistant write in a real project. For a safe place to try, you can run Polarion locally in Docker. The setup is in the polarion-docker repository.
Ready for the first write?
Before the first write in your real project, tick these five:
- You've written down which items and fields the assistant may change.
- You've decided whether it acts as you or as a functional account. A functional account has a small role without delete, and you've tried what its token can do.
- It has worked read-only first, then with a narrow tool list in a demo project.
- You've decided how much you approve. Either you check items, fields and values before each write, or the AI works on its own within a Polarion limit you've tried, and you or a named person reviews the results.
- You've changed something in a demo project and restored it.
Then start small: one requirement, one description. Look at the result in Polarion before you do the next.
These three things don't tell you whether you can trust the Polarion system underneath, especially with an upgrade coming. The next part of this series covers what to check before you upgrade, and how to show that your requirements came through.
Who gets to say yes to an AI's changes in your team?
Polarion is a trademark of Siemens. This blog is independent and not affiliated with Siemens. Behavior depends on your version and configuration, so check it on your own system.