Skip to content
Smart Templates Manual Website Manual for your AI

Rights and roles

In short

Anyone who designs templates needs the role “Smart Templates Designer” in addition to their usual role. Anyone who only prints documents does not need a role of their own, but read rights to the data that appears in the document. Anyone who adds a button or creates a flow needs rights of their own in Dynamics for that, and a license for the flow.

Installing the solution

For the installation you need the role “System Administrator” in the environment. How the solution is imported is described under Installing the solution.

Designing templates

Assign the security role “Smart Templates Designer” to everyone who works in the designer and does not have the role “System Administrator”; how to do that is described step by step under Assigning a security role. The role allows you

  • to read and edit the templates, images and fonts of Smart Templates,
  • to read tables, fields, relationships and option values of Dynamics, so that the designer offers them in the area “Data”,
  • to save your own language choice,
  • to create and read the changes of the AI assistant; anyone who uses the assistant therefore needs this role,
  • to read the rows with which Smart Templates starts flows,
  • to upload, replace and delete own standards of the e-invoice (table “Smart Templates E-Rechnungsstandard”, technically st_erechnungstandard; see E-invoice: Own standards).

The role belongs to the solution and cannot be changed. If you need a modified version, copy the role and adjust the copy. A copy does not receive extensions of the role in an update; you then add new rights yourself.

The data itself, such as quotes and companies, is seen by the designer with the rights from the user’s usual role. Anyone who wants to choose a sample record needs read access to its table.

Adding a button

You add the button itself in the command designer of Power Apps. For that you need the right to edit the app in which the button is to appear. The steps are described under Adding, changing and removing a button.

Creating a flow

The flow belongs to the account with which you create it (its owner). This account needs three things:

  • A license that allows Dataverse in flows: a license for Dynamics 365 or for Power Automate Premium. Microsoft 365 alone is not enough, not even with the role “System Administrator”. If the license is missing, turning on the flow fails; the message is described under Flows: The “Create a new flow” view.
  • In Dynamics, the role “System Customizer” or “System Administrator”: Creating the flow also creates a solution of its own, a connection reference and the flow.
  • Read access for the whole organization to the table “Smart Templates Auslöser”. The role “Smart Templates Designer” includes it; details are under Printing documents.

Printing documents

For buttons in Dynamics and for flows, nobody needs a Smart Templates role. What is needed is read access to the main table of the template and to every table from which the template fetches data. If one of them is missing, no document is created; what the message says is described under When a right is missing.

  • Smart Templates reads the template itself, fonts and the images of the image library by itself when printing. The user needs no rights for that. Images from records, on the other hand, it reads with the user’s rights; without them the spot stays empty, or only the small preview image appears.
  • Rights on individual records do not abort the print: If the user may not see some rows of a list, such as line items of another business unit, they are missing from the document without a message. For a lookup, such as the customer, a warning appears. The print is aborted only if the main record itself is not readable.
  • The email actions create the email with the user’s rights.
  • Smart Templates reads the own standards of the e-invoice by itself when printing, like the template. The user needs no right on the table of standards for that.
  • A flow works with the rights of the account it belongs to. This account needs read access for the whole organization to the table “Smart Templates Auslöser”, through which Smart Templates starts the flow; without this right, the flow receives no jobs. The role “Smart Templates Designer” includes it.

Good to know

A button opens the document in a new browser tab. If the browser does not allow pop-ups for Dynamics, it does not appear. How to allow pop-ups and what the button reports when they are blocked is described under What happens on click: When the browser blocks pop-ups.

When a right is missing

What is missingWhat the designer reports
Read access to the templates“The templates could not be loaded …”
Read access to the templates for only a part, for example only for your own (level “User” instead of “Organization”)No message. If the user sees not a single template, the window “Welcome to Smart Templates” appears even though templates exist (see Managing templates: If there is no template yet); otherwise the rest are missing from the template list.
Read access to tables and fieldsIn the area “Data”: “Fields not loaded – click to try again.”
Read access to the fontsThe font selection shows only Arimo; “The font list could not be loaded” appears only under “⚙ Manage fonts”
Read access to the image libraryNo message. On the canvas, image objects from the library appear only as a blue placeholder with the short name, and images from the library in text do not appear at all. Instead of your images, the image library shows only the two tiles logo_full and stamp_paid without an image, and these two short names count as taken when uploading. In full preview and PDF, the images of the library still appear.
Right to the language choice“The language could not be saved”
Read access to business dataWhen choosing a sample record, the list shows in red “The records could not be loaded with this view. …”. If one is already stored, the designer reports once, when loading the sample data, “⚠ The sample record »…« could not be read — you do not have the read permission for it. …” (more under Data sources and relationships: When the sample record is missing or cannot be read). How the document is aborted without this right is described in the next row.
Read access to the main table of the template or to a table from which it fetches dataWhen printing, no document is created: not in full preview and PDF, not with a button, not with a flow. The reason is in English and begins with “NO ACCESS: …”. In the designer it is preceded by “PDF generation failed –” or “PDF failed –” (see Problems and messages: When no document is created), for the email purposes of a button by “The document could not be built:”. It says that a read right is missing, but does not name the table. Which read rights are needed is described under Printing documents; how the button shows the message is described under What happens on click: When the button cancels.
Right to the table of own standards of the e-invoice (uploading, deleting)In the window “Upload own standard” it says in red: “To upload a standard, you lack the right on the table »st_erechnungstandard« (…). Nothing was saved.” Deleting reports “Deleting failed”.
Right to the AI changesIn the chat, the action “Vorlage ändern” reports an error