User to party mappings

HI
Understand that post canton 2.0 , we have user and parties separated out. Are there any non admin api to get the list of parties associated with a given user. I understand, we have com/daml/ledger/api/v1/admin/party_management_service.proto exposing a bunch of admin api, but am looking for non-admin/privilege method to access the party details for a given user.
Any suggestion/pointers?

Hi @brijg11,

We do not have another way than using the user management service, it will give you information about the user that is authenticated without the participant_admin right, but none other. Can you give us a bit more detail on the use case you are looking for such a method?

Kind Regards,
Mate

Thanks Mate. Just to confirm you are suggesting that user management service, could be used without granting the participant_admin rights to the user? Wondering in that case, why the api is marked as admin.

com/daml/ledger/api/v1/admin/user_management_service.proto

https://docs.daml.com/app-dev/grpc/proto-docs.html#com-daml-ledger-api-v1-admin-usermanagementservice

I only wanted to point out that it can be used without participant_admin to get the information about the user that is authenticated and making an GetUserRequest or a ListUserRightsRequest with an empty string for the user_id parameter. Anything else requires the participant_admin rights.

1 Like