# Daml assistant permission

**URL:** <https://forum.canton.network/t/daml-assistant-permission/2504>\
**Category:** App Development\
**Tags:** daml, daml-sdk\
**Created:** [April 22, 2021, 10:57am UTC](https://forum.canton.network/t/daml-assistant-permission/2504 "2021-04-22T10:57:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frankie](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/frankie/32/646_2.png) [@Frankie](https://forum.canton.network/u/Frankie)\
**Post date:** [April 22, 2021, 10:57am UTC](https://forum.canton.network/t/daml-assistant-permission/2504/1 "2021-04-22T10:57:16Z")

</div>

For daml ledger commands in Daml Assistant, what permission do they need? Do they always require admin=true token? Or each command has different permission requirement?

BTW, congratulations on the Series D funding. :capybara: 🥳 🥳 🥳

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [April 22, 2021, 12:00pm UTC](https://forum.canton.network/t/daml-assistant-permission/2504/2 "2021-04-22T12:00:41Z")

</div>

It depends on the command. `daml ledger` commands map pretty directly to the underlying Ledger API calls. You can find the table of required permissions for the Ledger API at [Authorization — Daml SDK 1.12.0 documentation](https://docs.daml.com/app-dev/authorization.html#access-tokens-and-claims). Putting that together you get the following:

1. `daml ledger list-parties` maps to the `PartyManagementService` so requires `admin=true`.
2. `daml ledger allocate-parties` also maps to the `PartyManagementService` so also requires `admin=true`.
3. `daml ledger upload-dar` maps to the `PackageManagementService` so also needs `admin=true`.
4. `daml ledger fetch-dar` maps to the `PackageService` so it only requires a public token (meaning no admin token or actAs, readAs necessary).

---

<div class="post-metadata">

**Author:** ![Frankie](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/frankie/32/646_2.png) [@Frankie](https://forum.canton.network/u/Frankie)\
**Post date:** [April 22, 2021, 12:35pm UTC](https://forum.canton.network/t/daml-assistant-permission/2504/3 "2021-04-22T12:35:12Z")

</div>

Just noticed that there is a new claim called public. What does the token look like in this case? A token without admin, readAs and actAs fields?

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [April 22, 2021, 12:38pm UTC](https://forum.canton.network/t/daml-assistant-permission/2504/4 "2021-04-22T12:38:56Z")

</div>

> [@Frankie](#):
>
> A token without admin, readAs and actAs fields?

A token without a requirement for `admin`, `readAs` or `actAs`. If they are present this is still a valid token but they are not required. You only need a non-expired token and if you have `ledgerId` and `participantId` in the token, they will be validated (but it’s fine to omit them).
