Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/In Canton 3.x, how do I use the admin console to list contracts visible to a given user?Forum ↗

In Canton 3.x, how do I use the admin console to list contracts visible to a given user?

App Development3 posts88 viewsLast activity Feb 2025
DA
Daniel_PorterOP
Feb 2025

I have created a user and added actAs rights to a particular party. I’m trying to see any contracts visible to that user. Auth is not turned on on the PN.

What’s the recommended way to read this in the admin console?

WA
WallaceKelly
Feb 2025

Does ledger_api.acs.of_party(…) meet your needs?

Oh, wait. You said “… to that user.” Is that important to you? Would you need to first call ledger_api.users.rights.list(…) on the user to get all the parties?

DA
Daniel_Porter
Feb 2025

For posterity’s sake: We ended up writing a pretty involved unit test here. We were working on this scenario:

  1. I create a party on the default IDP,
  2. give a user readAs rights to that party,
  3. then move that party to a different IDP

The user retains readAs rights, but do those readAs rights actually work? We’re using these features in an unintuitive way, so not obvious if the tech will support it.

We’ve written most of the unit test and confirmed the user retains readAs rights, working on actually performing the reads now.

← Back to Discussions