Skip to content

Reference

ledger.listUserRights

GET /v2/users/{user-id}/rights — enumerate rights with identity-provider-id query (SDK sends empty string).

Adds identity-provider-id= empty query identical getUser (list-user-rights.ts).

Receiver: await canton.ledger.listUserRights

Setup

import { Canton } from '@fairmint/canton-node-sdk';

const canton = new Canton({
  network: 'devnet',
  provider: '5n',
  partyId: 'OWN_PARTY_ID',
});

Minimal example

const r = await canton.ledger.listUserRights({ userId: 'alice' });

Parameters — ListUserRightsParams

  • userId (required)

Returns — ListUserRightsResponse

Rights enumeration (rights entries typed Canton codegen exports).

Auth and party

Readable identities aligning bearer ParticipantAdmin or delegated ACL nuances Canton exposes.

Source

operations/v2/users/list-user-rights.ts