Make an app read-only for a team
Every app is connected read and write. To let a team look things up without changing anything, allow the app and deny the tools that change data. The example here gives a Sales group read-only Xero, so they can check an invoice’s status without raising one. The same steps work for any app.
-
Find the tools that change data. On the app’s page in the console, every tool that creates, changes or deletes something is marked Changes data. The docs list them too: Xero’s tools. In Xero, their names start with
create_,update_,authorise_orvoid_. -
Allow the app for the group. On Xero’s page, add Sales,
*, Allow. -
Deny the tools that change data. Add one rule for each start: Sales,
create_*, Deny; thenupdate_*,authorise_*andvoid_*. At the group’s level a deny beats an allow, so these win. -
Check one person. In Who can use what, pick someone in Sales. Every Xero tool marked Changes data should be denied, by the rules you just added.
Why deny, rather than allow only the reads
A tool the group has no rule for isn’t refused: the rules for Everyone decide it. Turning an app on allows everyone every tool, so a group allowed only its reading tools could still use the rest. Denying the tools that change data closes that, whatever the rules for everyone say, and a new tool that only reads is available to the team straight away.
If you would rather nothing new appears until you’ve looked at it, list the reading tools by name instead. Do it in this order, so that Sales can’t change data at any point in between: each change applies in seconds.
- Delete the rule for Everyone, or replace it with rules that name each tool everyone may use. Not a pattern such as
list_*: a new tool that matches it would reach Sales without review, because a tool Sales has no rule for falls through to the rules for everyone. This changes the app for everyone outside a group with its own rules: they get only the tools you named, or nothing. - Add one rule for each reading tool: Sales,
list_invoices, Allow, and so on. - Delete the rule from step 2, Sales,
*, Allow. While it stays, it matches every tool you didn’t name. Keep the deny rules from step 3: they still refuse the tools that change data, and cost nothing. - In Who can use what, pick someone in Sales and check that the only tools allowed are the ones you named. Every other tool should be denied, including one that changes nothing and that no Sales rule names, such as
list_itemsif you didn’t add it.
A person who needs more
To let one person in Sales raise invoices, give them a rule of their own: that person, create_invoice, Allow. A person’s own rules beat their group’s. See Access rules.