Search code examples
ibm-cloudhyperledger-fabricibm-blockchain

User does not have attribute 'hf.AffiliationMgr'


I am trying to run the following command against a hyperledger 1.0 instance: fabric-ca-client affiliation list --caname PeerOrg1CA the response I get is: Error: Response from server: Error Code: 0 - User does not have attribute 'hf.AffiliationMgr'

The user I am running the command with is the admin user for that CA. I would like to be able to manage user affiliations. The documentation is a bit fuzzy on this.

How do I alter the affiliation for the admin user?


Solution

  • You adjust the hf.AffiliationMgr attribute within the fabric-ca-server-config.yaml manually. Or you can pass it in as a flag when you register the admin identity with the id.attrs.